#1842 TaskCfg(cache_folder='C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7', target_dir='C:/course_kecheng/2/3D Art Talk Topology P

129.146* Posted at: 10 hours ago 👁13

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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', 'C:/pyvideotrans-v3.86/tmp24140/compose1765180501.4401228.txt', '-i', 'C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/novoice.mp4', '-i', 'C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/origin_audio.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'C:/course_kecheng/2/3D Art Talk Topology Part 2/3D Art Talk Topology Part 2.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', 'C:/pyvideotrans-v3.86/tmp24140/compose1765180501.4401228.txt', '-i', 'C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/novoice.mp4', '-i', 'C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'C:/course_kecheng/2/3D Art Talk Topology Part 2/3D Art Talk Topology Part 2.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: initializing filters opening output file C:/course_kecheng/2/3D Art Talk Topology Part 2/3D Art Talk Topology Part 2.mp4. opening output 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='C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7', target_dir='C:/course_kecheng/2/3D Art Talk Topology Part 2', 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='C:/course_kecheng/2/3D Art Talk Topology Part 2/en.srt', target_sub='C:/course_kecheng/2/3D Art Talk Topology Part 2/zh-cn.srt', source_wav='C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/en.wav', source_wav_output='C:/course_kecheng/2/3D Art Talk Topology Part 2/en.m4a', target_wav='C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/target.wav', target_wav_output='C:/course_kecheng/2/3D Art Talk Topology Part 2/zh-cn.m4a', subtitles='', novoice_mp4='C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/novoice.mp4', noextname='3D Art Talk Topology Part 2', shibie_audio=None, targetdir_mp4='C:/course_kecheng/2/3D Art Talk Topology Part 2/3D Art Talk Topology Part 2.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓悠(Female/CN)', copysrt_rawvideo=False, clear_cache=True, translate_type=1, tts_type=0, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='C:/course_kecheng/3D_Art_and_Topology_Course/mulv/3D Art Talk Topology Part 2.mp4', basename='3D Art Talk Topology Part 2.mp4', ext='mp4', dirname='C:/course_kecheng/3D_Art_and_Topology_Course/mulv', shound_del_name=None, uuid='d2c89b69d7', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


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

1 Replies

合并阶段出错的原因是输出文件路径过长或包含空格/特殊字符,导致 ffmpeg 无法创建文件。从错误日志 opening output files: No such file or directory 和路径 C:/course_kecheng/2/3D Art Talk Topology Part 2/3D Art Talk Topology Part 2.mp4 可以看出问题所在。

请按以下步骤解决:

  1. 简化输出路径:这是最直接的解决方法。

    • 在软件主界面,将“输出目录”修改为一个简短、纯英文、无空格的路径,例如 D:/output
    • 或者,将你的源视频文件移动到一个简短、纯英文、无空格的目录下(例如 D:/video),然后重新导入处理。
  2. 检查并修改源文件路径:如果不想移动文件,可以尝试重命名源文件及其所在文件夹。

    • 将文件夹名 3D Art Talk Topology Part 2 改为不含空格的短名,如 Part2
    • 将视频文件名 3D Art Talk Topology Part 2.mp4 改为短名,如 video.mp4
  3. (备选)使用工具箱的“音视频合并”功能

    • 如果上述方法不便操作,可以暂时跳过主流程。
    • 前往“工具箱” -> “音视频合并/分离”。
    • 分别选择:

      • 视频文件:C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/novoice.mp4
      • 音频文件:C:/pyvideotrans-v3.86/tmp24140/d2c89b69d7/origin_audio.m4a
      • 字幕文件:shuang.srt.ass (请确认此文件在当前工作目录或指定正确路径)
    • 设置一个简短的输出路径进行合并。

核心要点:确保 ffmpeg 处理过程中的所有文件路径(尤其是输出路径)尽可能简短,且只包含英文字母、数字和下划线,避免中文、空格和特殊符号。

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