#6020 预处理阶段出错 opening output file E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c/1-1784726322.090549.wav. opening output fil

8.221* Posted at: 7 hours ago

预处理阶段出错 opening output file E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c/1-1784726322.090549.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', 'C:/Users/c/Downloads/1.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', 'E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c/1-1784726322.090549.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\_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 E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c/1-1784726322.090549.wav. opening output files: Invalid argument
cfg=TaskCfgSTT(uuid='585a5e9c5c', name='C:/Users/c/Downloads/1.mp4', dirname='C:/Users/c/Downloads', noextname='1', basename='1.mp4', ext='mp4', target_dir='E:/ShiPinFanYi-pyVideoTrans/output/recogn', cache_folder='E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c', 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='E:/ShiPinFanYi-pyVideoTrans/output/recogn/1.srt', target_wav=None, target_wav_output=None, detect_language='zh-cn', recogn_type=2, model_name='1.7B', shibie_audio='E:/ShiPinFanYi-pyVideoTrans/tmp/23376/585a5e9c5c/1-1784726322.090549.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.19045-SP0
version:v4.06
frozen:True
language:zh
root_dir:E:/ShiPinFanYi-pyVideoTrans

1 Replies

核心原因:FFmpeg 在写入临时音频文件时因路径或权限问题失败,返回 Invalid argument 错误。通常由以下三种情况之一引起:临时文件夹异常、磁盘空间不足、或杀毒软件拦截了写操作。

解决方案(按顺序操作):

  1. 清理临时文件夹
    完全关闭软件,手动进入 E:/ShiPinFanYi-pyVideoTrans/tmp/ 文件夹,彻底删除该文件夹下的所有内容(若提示文件占用,可重启电脑后再删除),然后重新启动软件。
  2. 检查磁盘空间
    确保 E: 盘有足够的剩余空间(至少 10GB),临时文件需要写入该盘。
  3. 移动软件到更短路径
    将整个 pyVideoTrans 文件夹复制到盘符根目录,例如 E:/pyVideoTrans(避免路径中包含下划线以外的特殊字符),然后重新运行。
  4. 添加杀毒软件白名单
    E:/ShiPinFanYi-pyVideoTrans 整个目录添加到 Windows Defender、360、腾讯管家等杀毒软件的排除白名单中,避免拦截 FFmpeg 的文件写操作。
  5. 检查视频文件完整性
    尝试用播放器确认 C:/Users/c/Downloads/1.mp4 能否正常播放。如果文件损坏,FFmpeg 也可能报此类错误。

如果以上步骤仍无法解决,请提供日志文件 logs/20250622.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