#734 Error opening output files: Invalid argument

*170.73* Posted at: 2 hours ago 👁4

预处理阶段出错:Error opening output file D:/win-videotrans/tmp/661ef278d2/en.wav.

Error opening output files: Invalid argument:

Traceback (most recent call last):

File "videotrans\util\help_ffmpeg.py", line 275, in runffmpeg

File "subprocess.py", line 524, in run

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-y', '-i', 'D:/win-videotrans/tmp/28、POV:Youre A Millionaire In Miami.mp4', '-vn', '-ac', '2', '-c:a', 'pcm_s16le', 'D:/win-videotrans/tmp/661ef278d2/en.wav']' returned non-zero exit status 4294967274.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 64, in run

File "videotrans\task\trans_create.py", line 292, in prepare

File "videotrans\task\trans_create.py", line 646, in _split_audio_byraw

File "videotrans\util\help_ffmpeg.py", line 315, in runffmpeg

RuntimeError: Error opening output file D:/win-videotrans/tmp/661ef278d2/en.wav.

Error opening output files: Invalid argument

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是由于FFmpeg无法在指定路径创建音频文件导致的,通常与文件路径权限或磁盘空间有关。

问题分析:

从错误信息可以看到,FFmpeg在尝试从视频文件中提取音频时,无法在 D:/win-videotrans/tmp/661ef278d2/en.wav 路径创建输出文件。错误代码4294967274通常表示文件系统权限问题或路径无效。

解决方案:

1. 检查输出目录权限

  • 确保 D:/win-videotrans/tmp/ 目录存在且软件有写入权限
  • 如果使用系统盘(C盘),建议将软件移动到D盘或其他非系统盘
  • 尝试以管理员身份运行软件

2. 检查磁盘空间

  • 确认D盘有足够的剩余空间(至少2GB以上)

3. 修改软件设置

  • 在软件界面中,点击右下角的"设置"按钮
  • 将"临时文件目录"修改为一个更简单的路径,例如:
  • D:/video_temp
  • D:/pyvideotrans_tmp
  • 确保新路径的文件夹已创建且可写入

4. 检查防病毒软件

  • 暂时关闭Windows Defender或其他防病毒软件,看是否被阻止
  • 将pyVideoTrans添加到防病毒软件的白名单中

5. 重新启动软件

  • 修改设置后,完全关闭软件再重新启动

如果问题仍然存在,请检查软件目录下的 logs 文件夹,打开以当前日期命名的日志文件,复制底部30-50行内容,以便进一步分析问题。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions