#4099 TaskCfgVTT(is_cuda=True, uuid='5f43002eb3', cache_folder='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3', target_dir='F

240e:b8f* Posted at: 6 hours ago 👁12

合并阶段出错 5f43002eb3 split no voice error:initializing the muxer for ffmpeg: Invalid argument opening output file ffmpeg. opening output files: Invalid argument
Traceback (most recent call last):
File "videotrans\task\job.py", line 324, in run
File "videotrans\task\trans_create.py", line 802, in assembling
File "videotrans\task\trans_create.py", line 1268, in _join_video_audio_srt
File "videotrans\util\help_misc.py", line 299, in is_novoice_mp4
RuntimeError: 5f43002eb3 split no voice error:initializing the muxer for ffmpeg: Invalid argument opening output file ffmpeg. opening output files: Invalid argument
TaskCfgVTT(is_cuda=True, uuid='5f43002eb3', cache_folder='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3', target_dir='F:/Season 02/_video_out/S2 (4)-mkv', source_language='英语', source_language_code='en', source_sub='F:/Season 02/_video_out/S2 (4)-mkv/en.srt', source_wav='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3/en.wav', source_wav_output='F:/Season 02/_video_out/S2 (4)-mkv/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/Season 02/_video_out/S2 (4)-mkv/zh-cn.srt', target_wav='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3/target.wav', target_wav_output='F:/Season 02/_video_out/S2 (4)-mkv/zh-cn.m4a', name='F:/Season 02/S2 (4).mkv', noextname='S2 (4)', basename='S2 (4).mkv', ext='mkv', dirname='F:/Season 02', shound_del_name=None, translate_type=13, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/Season 02/_video_out/S2 (4)-mkv/S2 (4).mp4', novoice_mp4='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3/novoice.mp4', is_separate=True, embed_bgm=True, instrument='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3/instrument.wav', vocal='F:/win-pyvideotrans-v3.99/tmp/10520/5f43002eb3/vocal.wav', back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=True, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.99

1 Replies

这是由于文件路径过长或包含特殊字符(如空格和括号)导致 ffmpeg 命令执行失败。

解决方案:

  1. 简化文件路径和名称:将原始视频文件 S2 (4).mkv 移动到更浅的目录(例如 D:\videos),并重命名为一个简短、仅包含英文字母或数字的名称(例如 s2e4.mkv)。
  2. 检查输出目录:确保输出目录 F:/Season 02/_video_out/S2 (4)-mkv 的路径总长度也未超过 Windows 系统限制(通常 260 个字符)。同样建议使用简短路径。
  3. 重新处理:完成上述修改后,在软件主界面勾选 清理已生成 复选框,然后重新选择处理该视频。

根本原因:Windows 系统对命令行长度有严格限制。当输入/输出文件的完整路径(包含盘符、文件夹名和文件名)过长,或包含空格、括号等特殊符号时,传递给 ffmpeg 的命令可能超出限制,导致 Invalid argument 错误。

请查阅相关文档:

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