#1650 TaskCfg(cache_folder='E:/pyvideotrans-v3.86/tmp1760/0b94781917', target_dir='E:/BaiduNetdiskDownload/_video_out/Algorith

35.189* Posted at: 4 hours ago 👁6

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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', '-progress', 'E:/pyvideotrans-v3.86/tmp1760/compose1764247657.8377306.txt', '-i', 'E:/pyvideotrans-v3.86/tmp1760/0b94781917/novoice.mp4', '-i', 'E:/pyvideotrans-v3.86/tmp1760/0b94781917/origin_audio.m4a', '-i', 'zh-cn.srt', '-c:v', 'copy', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=chi', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/Algorithmic Foundations 1 - Orderflow.mp4']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

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', '-progress', 'E:/pyvideotrans-v3.86/tmp1760/compose1764247657.8377306.txt', '-i', 'E:/pyvideotrans-v3.86/tmp1760/0b94781917/novoice.mp4', '-i', 'E:/pyvideotrans-v3.86/tmp1760/0b94781917/origin_audio.m4a', '-i', 'zh-cn.srt', '-c:v', 'copy', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=chi', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/Algorithmic Foundations 1 - Orderflow.mp4']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1230, in _join_video_audio_srt
File "videotrans\util\help_ffmpeg.py", line 267, in runffmpeg
File "videotrans\util\help_ffmpeg.py", line 272, in runffmpeg
RuntimeError: opening input: No such file or directory opening input file zh-cn.srt. opening input files: No such file or directory

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 549, in assembling
File "videotrans\task\trans_create.py", line 1233, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错

TaskCfg(cache_folder='E:/pyvideotrans-v3.86/tmp1760/0b94781917', target_dir='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/en.srt', target_sub='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/zh-cn.srt', source_wav='E:/pyvideotrans-v3.86/tmp1760/0b94781917/en.wav', source_wav_output='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/en.m4a', target_wav='E:/pyvideotrans-v3.86/tmp1760/0b94781917/target.wav', target_wav_output='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/zh-cn.m4a', subtitles='', novoice_mp4='E:/pyvideotrans-v3.86/tmp1760/0b94781917/novoice.mp4', noextname='Algorithmic Foundations 1 - Orderflow', shibie_audio=None, targetdir_mp4='E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/Algorithmic Foundations 1 - Orderflow.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓辰(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='E:/BaiduNetdiskDownload/zeussy2025/Algorithmic Foundations 1 - Orderflow.mp4', basename='Algorithmic Foundations 1 - Orderflow.mp4', ext='mp4', dirname='E:/BaiduNetdiskDownload/zeussy2025', shound_del_name=None, uuid='0b94781917', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


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

1 Replies

错误原因是 FFmpeg 在合并阶段无法找到字幕文件 zh-cn.srt。从日志可以看到 FFmpeg 报错:"opening input file zh-cn.srt. opening input files: No such file or directory"。

请按以下步骤解决:

  1. 检查字幕文件路径:确保 zh-cn.srt 文件存在于当前工作目录。从错误信息看,FFmpeg 在相对路径下查找该文件。
  2. 清理缓存重新处理

    • 在主界面勾选"清理已生成"选项
    • 重新处理视频
  3. 检查输出目录权限

    • 确保输出目录 E:/BaiduNetdiskDownload/_video_out/Algorithmic Foundations 1 - Orderflow/ 有写入权限
    • 路径中的空格可能导致问题,建议将视频文件重命名为不含空格的名称
  4. 临时解决方案

    • 如果问题持续,可以分步处理:
    • 先使用"转录并翻译字幕"功能生成字幕文件
    • 再使用"音视频合并"功能手动合并视频、音频和字幕
  5. 检查磁盘空间:确保 E 盘有足够的剩余空间。

这个错误通常是由于字幕文件生成后意外丢失或路径引用错误导致的。清理缓存重新处理通常能解决问题。

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