#1683 TaskCfg(cache_folder='E:/pyvideotrans/tmp9588/speech2text', target_dir='E:/win-pyvideotrans-v3.86/output/recogn', remove

140.245* Posted at: 8 days ago 👁28

预处理阶段出错:运行时错误:opening output file E:/pyvideotrans/tmp9588/speech2text/EP19-1764448335.9916532.wav. opening output files: Invalid argument:
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 227, in runffmpeg
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-i', 'E:/video/YTTLJ2019/EP19.mp4', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', 'E:/pyvideotrans/tmp9588/speech2text/EP19-1764448335.9916532.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 67, in run
File "videotrans\task\_speech2text.py", line 49, in prepare
File "videotrans\util\help_ffmpeg.py", line 612, in conver_to_16k
File "videotrans\util\help_ffmpeg.py", line 272, in runffmpeg
RuntimeError: opening output file E:/pyvideotrans/tmp9588/speech2text/EP19-1764448335.9916532.wav. opening output files: Invalid argument

TaskCfg(cache_folder='E:/pyvideotrans/tmp9588/speech2text', target_dir='E:/win-pyvideotrans-v3.86/output/recogn', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='E:/win-pyvideotrans-v3.86/output/recogn/EP19.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='EP19', shibie_audio='E:/pyvideotrans/tmp9588/speech2text/EP19-1764448335.9916532.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=2, model_name='SenseVoiceSmall', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='E:/video/YTTLJ2019/EP19.mp4', basename='EP19.mp4', ext='mp4', dirname='E:/video/YTTLJ2019', shound_del_name=None, uuid='f5b69bac6e', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/pyvideotrans

1 Replies

此错误是由于输出文件路径 E:/pyvideotrans/tmp9588/speech2text/EP19-1764448335.9916532.wav 包含无效字符或路径过长导致的。

解决方案:

  1. 检查软件安装路径:确保 pyVideoTrans 解压路径不包含中文、空格或特殊符号。当前路径 E:/pyvideotrans 看起来正常。
  2. 检查输入文件路径:将视频文件 EP19.mp4 移动到更短的路径,如 D:/EP19.mp4,然后重新处理。
  3. 清理临时文件:删除 E:/pyvideotrans/tmp9588 文件夹,然后重新启动软件。
  4. 检查磁盘权限:确保对 E 盘有完整的读写权限。
  5. 检查磁盘空间:确认 E 盘有足够的剩余空间。

这是 FFmpeg 在处理长路径或特殊字符时常见的错误。将视频文件移动到根目录下的简单路径通常能解决此问题。

如果问题依旧,请提供完整的日志文件(位于 E:/pyvideotrans/logs/ 目录下)。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions