#4441 TaskCfgSTT(is_cuda=True, uuid='cba94326ed', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/82980/cba94326ed', target_di

129.128* Posted at: 2 hours ago 👁13

预处理阶段出错 opening output file E:/win-pyvideotrans-v3.99-428/tmp/82980/cba94326ed/5-1778041503.3838947.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:/Zge/5.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', '-af', 'volume=2.0,alimiter=limit=1.0', 'E:/win-pyvideotrans-v3.99-428/tmp/82980/cba94326ed/5-1778041503.3838947.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/82980/cba94326ed/5-1778041503.3838947.wav. opening output files: Invalid argument
TaskCfgSTT(is_cuda=True, uuid='cba94326ed', cache_folder='E:/win-pyvideotrans-v3.99-428/tmp/82980/cba94326ed', 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/5.srt', target_wav=None, target_wav_output=None, name='F:/Zge/5.mp4', noextname='5', basename='5.mp4', ext='mp4', dirname='F:/Zge', shound_del_name=None, detect_language='zh-cn', recogn_type=2, model_name='1.7B', shibie_audio='E:/win-pyvideotrans-v3.99-428/tmp/82980/cba94326ed/5-1778041503.3838947.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 将视频转换为 16k 音频时无法写入临时文件,最可能的原因是目标目录不存在或权限不足。

  1. 关闭软件,找到 E:\win-pyvideotrans-v3.99-428 目录,右键 sp.exe → 选择“以管理员身份运行”。
  2. 如果仍失败,请尝试在软件主界面中点击“输出到..”按钮,将输出目录修改到一个简单路径(例如 E:\outputD:\output),确保有写入权限且路径不含空格。
  3. 检查杀毒软件或安全防护是否拦截了软件创建临时文件夹,如有,请将软件安装目录加入白名单。
  4. 也可尝试删除 E:\win-pyvideotrans-v3.99-428\tmp 文件夹内的所有内容,再重新处理。

请查阅相关文档:

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