#4383 TaskCfgSTT(is_cuda=True, uuid='90e5c416ef', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/15200/90e5c416ef', target_di

103.172* Posted at: 2 hours ago 👁9

预处理阶段出错 opening output file E:/win-pyvideotrans-v3.99-428/tmp/15200/90e5c416ef/4. Operators-1777717918.1931195.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', 'E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/2 - Core Basics/4. Operators.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', '-af', 'volume=2.0,alimiter=limit=1.0', 'E:/win-pyvideotrans-v3.99-428/tmp/15200/90e5c416ef/4. Operators-1777717918.1931195.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/15200/90e5c416ef/4. Operators-1777717918.1931195.wav. opening output files: Invalid argument
TaskCfgSTT(is_cuda=True, uuid='90e5c416ef', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/15200/90e5c416ef', target_dir='E:/_pyVideotrans 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:/_pyVideotrans Output/recogn/4. Operators.srt', target_wav=None, target_wav_output=None, name='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/2 - Core Basics/4. Operators.mp4', noextname='4. Operators', basename='4. Operators.mp4', ext='mp4', dirname='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/2 - Core Basics', shound_del_name=None, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio='E:/win-pyvideotrans-v3.99-428/tmp/15200/90e5c416ef/4. Operators-1777717918.1931195.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=True)


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

1 Replies

由于输入视频文件路径中含有中文和空格,导致 FFmpeg 命令行在创建输出文件时失败(Invalid argument)。这在 Windows 系统中尤为常见,即使路径被引号包围也可能触发编码兼容性问题。

解决方案

  1. 将原始视频 E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/2 - Core Basics/4. Operators.mp4 复制或移动到不含中文、空格的浅层目录,例如 D:\videos
  2. 将文件重命名为简短的英文名,如 video1.mp4
  3. 在 pyVideoTrans 中重新选择该文件,再执行语音转录或视频翻译。

请查阅相关文档:

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