#2231 TaskCfg(cache_folder='C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2', target_dir='F:/xr教程/Mfalme St

202.107* Posted at: 2 days ago 👁21

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 364, in runffmpeg
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/compose1766480076.486668.txt', '-i', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/novoice.mp4', '-i', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/origin_audio.m4a', '-map', '0:v', '-map', '1:a', '-c:v', 'hevc_nvenc', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-cq', '24', '-preset', 'p2', '-fps_mode', 'vfr', '-t', '829.972000', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/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 364, in runffmpeg
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/compose1766480076.486668.txt', '-i', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/novoice.mp4', '-i', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/origin_audio.m4a', '-map', '0:v', '-map', '1:a', '-c:v', 'libx265', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '24', '-preset', 'veryfast', '-fps_mode', 'vfr', '-t', '829.972000', 'C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/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 1306, in _join_video_audio_srt
File "videotrans\util\help_ffmpeg.py", line 405, in runffmpeg
File "videotrans\util\help_ffmpeg.py", line 410, 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 299, in run
File "videotrans\task\trans_create.py", line 590, in assembling
File "videotrans\task\trans_create.py", line 1311, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错

TaskCfg(cache_folder='C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2', target_dir='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4', remove_noise=False, is_separate=False, detect_language='id', subtitle_language=None, source_language='印度尼西亚语', target_language='简体中文', source_language_code='id', target_language_code='zh-cn', source_sub='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4/id.srt', target_sub='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4/zh-cn.srt', source_wav='C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/id.wav', source_wav_output='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4/id.m4a', target_wav='C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/target.wav', target_wav_output='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4/zh-cn.m4a', subtitles='', novoice_mp4='C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/novoice.mp4', noextname='9.摄像机追踪,你需要准备什么?', shibie_audio=None, targetdir_mp4='F:/xr教程/Mfalme Studio Virtual Production/中文/9.摄像机追踪,你需要准备什么?-mp4/9.摄像机追踪,你需要准备什么?.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='F:/xr教程/Mfalme Studio Virtual Production/9.摄像机追踪,你需要准备什么?.mp4', basename='9.摄像机追踪,你需要准备什么?.mp4', ext='mp4', dirname='F:/xr教程/Mfalme Studio Virtual Production', shound_del_name=None, uuid='8a074c0be2', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.90
frozen:True
language:zh
root_dir:C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90

1 Replies

合并阶段出错,核心原因是 FFmpeg 在嵌入字幕时遇到了无效参数。这通常与字幕文件(ASS格式)的内容或路径有关。请按以下步骤排查:

  1. 检查字幕文件路径:错误显示字幕文件为 end.srt.ass。请确认该文件确实存在于 C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/ 目录下,并且文件内容完整、格式正确。
  2. 尝试简化字幕

    • 在软件主界面,将“字幕形式”从“嵌入硬字幕”或“嵌入软字幕”改为“不嵌入字幕”,然后重新处理。
    • 如果成功,说明问题出在字幕文件本身。你可以尝试在“字幕编辑”阶段,将字幕内容简化(例如删除特殊符号、长句换行),再重新嵌入。
  3. 检查视频编码:从日志看,软件尝试了 hevc_nvenc(NVIDIA硬件编码)和 libx265(软件编码)都失败了。

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在“视频输出控制”区域,将“视频编码”从 libx265 改为 libx264(兼容性更好)。
    • 同时,可以尝试将“视频输出质量控制 (CRF)”从 24 调整为 23(默认值)。
  4. 清理缓存并重试

    • 在软件主界面,务必勾选“清理已生成”选项。
    • 重新拖入视频进行处理。

如果以上步骤均无效,请提供 C:/Users/GEKANG/Desktop/win-pyvideotrans-3.90/tmp/26388/8a074c0be2/ 目录下的 end.srt.ass 字幕文件内容(前几行即可),以便进一步分析。

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

Similar issues already exist

Trending Questions