#4438 TaskCfgSTT(is_cuda=True, uuid='e39c922b0e', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e', target_di

129.128* Posted at: 3 hours ago 👁11

预处理阶段出错 opening output file E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e/大直播-20250323-大A到底啥成色-1778028685.1222436.wav. opening output files: Invalid argument
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 57, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-i', 'F:/Z哥大直播2025.3.16到2026.4.26/大直播-20250323-大A到底啥成色.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', '-af', 'volume=2.0,alimiter=limit=1.0', 'E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e/大直播-20250323-大A到底啥成色-1778028685.1222436.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 61, in run
File "videotrans\task\_speech2text.py", line 54, in prepare
File "videotrans\util\help_ffmpeg.py", line 467, in conver_to_16k
File "videotrans\util\help_ffmpeg.py", line 86, in runffmpeg
RuntimeError: opening output file E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e/大直播-20250323-大A到底啥成色-1778028685.1222436.wav. opening output files: Invalid argument
TaskCfgSTT(is_cuda=True, uuid='e39c922b0e', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e', target_dir='E:/win-pyvideotrans-v3.99-428/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='E:/win-pyvideotrans-v3.99-428/output/recogn/大直播-20250323-大A到底啥成色.srt', target_wav=None, target_wav_output=None, name='F:/Z哥大直播2025.3.16到2026.4.26/大直播-20250323-大A到底啥成色.mp4', noextname='大直播-20250323-大A到底啥成色', basename='大直播-20250323-大A到底啥成色.mp4', ext='mp4', dirname='F:/Z哥大直播2025.3.16到2026.4.26', shound_del_name=None, detect_language='zh-cn', recogn_type=2, model_name='1.7B', shibie_audio='E:/win-pyvideotrans-v3.99-428/tmp/85624/e39c922b0e/大直播-20250323-大A到底啥成色-1778028685.1222436.wav', remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.99-428

1 Replies

这是由于输出文件的路径中包含中文或过长导致的 ffmpeg 处理错误(Invalid argument)。Windows 下命令行对非 ASCII 字符和超长路径支持较差。

解决方案:

  1. 将视频文件重命名为简短的英文或数字名称(如 video1.mp4)。
  2. 将视频移动到磁盘根目录下的浅层文件夹(如 D:\videos\),避免路径过长(建议总长度不超过 200 字符)。
  3. 重新打开软件,选择移动并重命名后的视频文件,再次执行任务。
  4. 如果仍报错,请检查软件所在的 tmp 目录是否可写入(尝试以管理员权限运行软件或更换安装目录)。

请查阅相关文档:

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.

Related resource