#3867 TaskCfgVTT(is_cuda=True, uuid='5a28af6c72', cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/2744/5a28

31.94* Posted at: 2 days ago 👁21

合并阶段出错 最后一步字幕配音嵌入时出错
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 261, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1774879671.167376.txt', '-i', 'novoice.mp4', '-i', 'origin_audio.m4a', '-i', 'shuang.srt', '-map', '0:v', '-map', '1:a', '-map', '2:s', '-c:v', 'hevc_nvenc', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=chi', '-movflags', '+faststart', '-cq', '23', '-preset', 'p2', '-t', '11965.866000', 'laste_target.mp4']' returned non-zero exit status 4294967274.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 261, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1774879671.167376.txt', '-i', 'novoice.mp4', '-i', 'origin_audio.m4a', '-i', 'shuang.srt', '-map', '0:v', '-map', '1:a', '-map', '2:s', '-c:v', 'libx265', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=chi', '-movflags', '+faststart', '-crf', '23', '-preset', 'veryfast', '-t', '11965.866000', 'laste_target.mp4']' returned non-zero exit status 4294967274.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1525, in _join_video_audio_srt
File "videotrans\util\help_ffmpeg.py", line 302, in runffmpeg
File "videotrans\util\help_ffmpeg.py", line 307, in runffmpeg
RuntimeError: submitting a packet to the muxer: Invalid argument muxing a packet

During handling of the above exception, another exception occurred:

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 1528, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错
TaskCfgVTT(is_cuda=True, uuid='5a28af6c72', cache_folder='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/2744/5a28af6c72', target_dir='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4', source_language='英语', source_language_code='en', source_sub='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4/en.srt', source_wav='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/2744/5a28af6c72/en.wav', source_wav_output='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4/zh-cn.srt', target_wav='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/2744/5a28af6c72/target.wav', target_wav_output='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4/zh-cn.m4a', name='C:/Users/savior/Desktop/1/51-2. Introduction to RAG Implementation.mp4', noextname='51-2. Introduction to RAG Implementation', basename='51-2. Introduction to RAG Implementation.mp4', ext='mp4', dirname='C:/Users/savior/Desktop/1', shound_del_name=None, translate_type=5, tts_type=10, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='aozi.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', 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='C:/Users/savior/Desktop/_video_out/51-2. Introduction to RAG Implementation-mp4/51-2. Introduction to RAG Implementation.mp4', novoice_mp4='D:/project/Videotrans/win-pyvideotrans-v3.98-327/tmp/2744/5a28af6c72/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=4, only_out_mp4=False, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/project/Videotrans/win-pyvideotrans-v3.98-327

1 Replies

这是由于 FFmpeg 在合并视频、音频和字幕时遇到无效参数导致的,通常与文件路径过长、文件名包含特殊字符或字幕文件格式问题有关。

解决方案:

  1. 缩短文件路径和名称:将原始视频文件移动到更浅的目录(例如 D:\video),并重命名为简短、仅包含英文字母和数字的名称(例如 rag.mp4)。避免使用中文、空格、点号(.)和特殊符号。
  2. 检查字幕文件:确保生成的 shuang.srt 字幕文件格式正确,没有损坏或包含异常字符。可以尝试用文本编辑器打开该文件检查。
  3. 调整输出设置

    • 在“菜单-工具-高级选项”中,尝试将“264/265编码”从 265 切换为 264
    • 如果启用了“视频慢速”功能,请取消勾选,因为它会产生大量临时文件并增加出错概率。
  4. 清理缓存后重试:在主界面左上角勾选“清理已生成”,然后重新处理视频。

如果问题依旧,请提供软件根目录下 logs 文件夹中最新日志文件的底部约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.

Related resource