#4440 TaskCfgSTT(is_cuda=True, uuid='0d7a7de6c5', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/51880/0d7a7de6c5', target_di

129.128* Posted at: 2 hours ago 👁10

预处理阶段出错 opening output file E:/win-pyvideotrans-v3.99-428/tmp/51880/0d7a7de6c5/250323大A成色-1778032774.0974102.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哥/250323大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/51880/0d7a7de6c5/250323大A成色-1778032774.0974102.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/51880/0d7a7de6c5/250323大A成色-1778032774.0974102.wav. opening output files: Invalid argument
TaskCfgSTT(is_cuda=True, uuid='0d7a7de6c5', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/51880/0d7a7de6c5', target_dir='E:/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:/output/recogn/250323大A成色.srt', target_wav=None, target_wav_output=None, name='F:/Z哥/250323大A成色.mp4', noextname='250323大A成色', basename='250323大A成色.mp4', ext='mp4', dirname='F:/Z哥', shound_del_name=None, detect_language='zh-cn', recogn_type=2, model_name='1.7B', shibie_audio='E:/win-pyvideotrans-v3.99-428/tmp/51880/0d7a7de6c5/250323大A成色-1778032774.0974102.wav', remove_noise=False, 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 处理失败。从错误日志看,输入文件路径 F:/Z哥/250323大A成色.mp4 以及输出临时路径 E:/win-pyvideotrans-v3.99-428/tmp/.../250323大A成色-*.wav 均含有中文,而 ffmpeg 在 Windows 上对含有非 ASCII 字符的路径容易产生“Invalid argument”错误。

解决方案:

  1. 将视频文件重命名为纯英文名称,例如 250323_stock.mp4
  2. 将视频移动到浅层的纯英文路径(如 E:\videos),避免路径中出现中文字符或特殊符号。
  3. 软件安装目录也应保持纯英文,当前 E:/win-pyvideotrans-v3.99-428 没有问题,但若你设置了自定义输出目录,也需确保不含中文。
  4. 重新启动软件,加载重命名后的视频文件,然后再次运行。

请查阅相关文档:

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