#6062 预处理阶段出错 opening output file C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2/7376509629313977607-1

2406:da14* Posted at: 1 hour ago

预处理阶段出错 opening output file C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2/7376509629313977607-1784906362.3813252.wav. opening output files: Invalid argument
Traceback (most recent call last):

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

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

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-i', 'C:/Users/q7313/Downloads/7376509629313977607/7376509629313977607.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', 'C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2/7376509629313977607-1784906362.3813252.wav']' returned non-zero exit status 4294967274.

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

Traceback (most recent call last):

File "videotrans\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\help_ffmpeg.py", line 460, in conver_to_16k

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

videotrans.configure.excepts.FFmpegError: opening output file C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2/7376509629313977607-1784906362.3813252.wav. opening output files: Invalid argument
cfg=TaskCfgSTT(uuid='2b2d1b48c2', name='C:/Users/q7313/Downloads/7376509629313977607/7376509629313977607.mp4', dirname='C:/Users/q7313/Downloads/7376509629313977607', noextname='7376509629313977607', basename='7376509629313977607.mp4', ext='mp4', target_dir='C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/output/recogn', cache_folder='C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2', 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='C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/output/recogn/7376509629313977607.srt', target_wav=None, target_wav_output=None, detect_language='ja', recogn_type=0, model_name='large-v3-turbo', shibie_audio='C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626/tmp/9524/2b2d1b48c2/7376509629313977607-1784906362.3813252.wav', remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:C:/Users/q7313/Desktop/win-pyvideotrans-v4.03-0626

1 Replies

ffmpeg 返回 Invalid argument 错误,通常由以下原因之一导致:输出文件的目录未创建或不可写、文件名包含无效字符、磁盘空间不足,或文件路径位于系统盘(C 盘)且被权限限制。

解决方法

  1. 将软件移至非系统盘英文目录:解压到 D:\pyVideoTrans 或类似路径,避免使用 Desktop 等系统文件夹,然后重新启动软件后重试。
  2. 清理临时目录:手动删除 软件目录/tmp/ 文件夹下的所有内容,确保没有残留锁定文件。
  3. 检查磁盘空间:确认 C 盘和软件所在盘有足够剩余空间。
  4. 升级软件版本:你当前使用的 v4.03 版本较旧,建议下载最新 v4.07 完整版并覆盖安装,部分路径兼容性问题在新版中已修复。

如果以上均无效,请提供 logs/ 目录下最新的 .log 文件内容(约末尾30行),以便进一步定位。

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

Dondate via PayPal

Related resource