#6710 预处理阶段出错 opening output file D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7/200.Creatin

125.67.**0 Posted at: 5 hours ago

预处理阶段出错 opening output file D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399-1787035079.214079.wav. opening output files: Invalid argument
Traceback (most recent call last):

File "videotrans\util\_ffmpeg_runner.py", line 49, in runffmpeg

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

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-i', 'D:/BaiduNetdiskDownload/Youtube/houpaixude/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', 'D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399-1787035079.214079.wav']' returned non-zero exit status 4294967274.

The above exception was the direct cause of the following exception:

Traceback (most recent
......
\task\job.py", line 35, in run

File "videotrans\task\job.py", line 77, in process_task

File "videotrans\task\speech2text.py", line 61, in prepare

File "videotrans\util\_ffmpeg_audio.py", line 24, in conver_to_16k

File "videotrans\util\_ffmpeg_runner.py", line 78, in runffmpeg

videotrans.configure.excepts.FFmpegError: opening output file D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399-1787035079.214079.wav. opening output files: Invalid argument
cfg=TaskCfgSTT(uuid='7dbba1edc7', name='D:/BaiduNetdiskDownload/Youtube/houpaixude/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399.mp4', dirname='D:/BaiduNetdiskDownload/Youtube/houpaixude', noextname='200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399', basename='200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399.mp4', ext='mp4', target_dir='D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/output/recogn', cache_folder='D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7', is_cuda=True, 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='D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/output/recogn/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399.srt', target_wav=None, target_wav_output=None, detect_language='en', recogn_type=0, model_name='distil-large-v3.5', shibie_audio='D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/tmp/10780/7dbba1edc7/200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399-1787035079.214079.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26100-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

#1 DeepSeek reply at 5 hours ago

这是 FFmpeg 在预处理阶段无法创建输出 WAV 文件导致的,根因是临时输出文件路径过长或包含非法字符/空格,最终触发了 Windows 的 Invalid argument(路径无效)错误。
你的视频文件名 200.Creating or Extracting Rhythm or Groove in Rapid Composer.f399.mp4 较长,且叠加了很深的软件安装目录和临时目录后,总路径长度超过了 Windows 默认 260 字符限制,FFmpeg 便无法写入输出文件。

解决方法:

  1. 移动视频文件
    将视频文件移动到浅层目录并重命名为简短字母数字,例如:D:/v/200.mp4
  2. 缩短软件安装路径
    建议将 pyVideoTrans 也放到短路径下,例如:D:/pyvideotrans/,不要放在 BaiduNetdiskDownload 这类深层目录中。
  3. 不要使用带空格和超长名称的源文件路径
    如果必须保留原文件名,请先将文件复制/移动到短路径后再处理。
  4. 更新软件版本
    你当前使用的是 v4.07,建议升级到最新版 v4.10,一些长路径相关问题已在新版中优化。

请查阅相关文档:

Thinking...
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.

Dondate via ko-fi.com

Related resource