#1838 TaskCfg(cache_folder='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847', target_dir='C:/course_kecheng/_video_out/2

129.146* Posted at: 17 hours ago 👁15

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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(ai视频翻译)/tmp6264/compose1765155626.012128.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/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/_video_out/2.1 - Getting Set Up for Success/2.1 - Getting Set Up for Success.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(ai视频翻译)/tmp6264/compose1765155626.012128.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success/2.1 - Getting Set Up for Success.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/_video_out/2.1 - Getting Set Up for Success/2.1 - Getting Set Up for Success.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(ai视频翻译)/tmp6264/06116b5847', target_dir='C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success', 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/_video_out/2.1 - Getting Set Up for Success/en.srt', target_sub='C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success/zh-cn.srt', source_wav='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/en.wav', source_wav_output='C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success/en.m4a', target_wav='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/target.wav', target_wav_output='C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success/zh-cn.m4a', subtitles='', novoice_mp4='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp6264/06116b5847/novoice.mp4', noextname='2.1 - Getting Set Up for Success', shibie_audio=None, targetdir_mp4='C:/course_kecheng/_video_out/2.1 - Getting Set Up for Success/2.1 - Getting Set Up for Success.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/2/2.1 - Getting Set Up for Success.mp4', basename='2.1 - Getting Set Up for Success.mp4', ext='mp4', dirname='C:/course_kecheng/3D_Art_and_Topology_Course/2', shound_del_name=None, uuid='06116b5847', 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(ai视频翻译)

1 Replies

错误的核心原因是软件安装路径和视频文件路径包含了中文字符和空格,导致 ffmpeg 在处理文件路径时失败。根据【核心知识库】第2.1节,这是绝对禁止的。

请按以下步骤彻底解决:

  1. 移动软件(必须执行)

    • 关闭 pyVideoTrans
    • 将整个 pyvideotrans-v3.86(ai视频翻译) 文件夹剪切到一个纯英文、无空格的路径下。例如:

      • D:/videotrans/
      • E:/pyvideotrans/
    • 切勿放在 C:/Program FilesC:/Windows 或任何包含中文的目录下。
  2. 处理视频文件

    • 将需要翻译的视频文件也移动到纯英文、无空格的路径下,并重命名为短英文名。例如:

      • 原路径:C:/course_kecheng/3D_Art_and_Topology_Course/2/2.1 - Getting Set Up for Success.mp4
      • 新路径:D:/videos/lesson2_1.mp4
    • 路径中的空格和特殊符号也可能引发问题,建议使用下划线 _ 连接。
  3. 重新处理

    • 从新的纯英文路径启动 sp.exe
    • 将重命名后的视频文件拖入软件。
    • 务必勾选主界面第一行的“清理已生成”选项,以清除旧缓存。
    • 重新开始翻译流程。

重要提醒:这是软件运行的基础要求,路径问题不解决,其他任何设置调整均无效。如果移动软件后问题依旧,请提供 videotrans/logs/ 目录下的最新日志文件。

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