#1836 TaskCfg(cache_folder='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1', target_dir='C:/课程/_video_out/2.1 - Gettin

122.234* Posted at: 1 day ago 👁19

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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视频翻译)/tmp13992/compose1765124645.1676545.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/origin_audio.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'C:/课程/_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视频翻译)/tmp13992/compose1765124645.1676545.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'C:/课程/_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:/课程/_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视频翻译)/tmp13992/d3b04d94b1', target_dir='C:/课程/_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:/课程/_video_out/2.1 - Getting Set Up for Success/en.srt', target_sub='C:/课程/_video_out/2.1 - Getting Set Up for Success/zh-cn.srt', source_wav='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/en.wav', source_wav_output='C:/课程/_video_out/2.1 - Getting Set Up for Success/en.m4a', target_wav='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/target.wav', target_wav_output='C:/课程/_video_out/2.1 - Getting Set Up for Success/zh-cn.m4a', subtitles='', novoice_mp4='C:/常用软件/pyvideotrans-v3.86(ai视频翻译)/tmp13992/d3b04d94b1/novoice.mp4', noextname='2.1 - Getting Set Up for Success', shibie_audio=None, targetdir_mp4='C:/课程/_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=False, 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:/课程/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:/课程/3D Art and Topology Course/2', shound_del_name=None, uuid='d3b04d94b1', 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视频翻译)

3 Replies

错误的核心原因是 输出文件路径不存在或无法创建。从日志 opening output files: No such file or directory 可以看出,软件试图将最终视频保存到 C:/课程/_video_out/2.1 - Getting Set Up for Success/ 目录,但该目录不存在或没有写入权限。

根本原因:您的 输入视频路径软件安装路径 都包含了中文和空格,这是软件运行的大忌,极易导致文件路径处理异常。

解决方案(请按顺序尝试):

  1. 立即修正路径(最重要)

    • 软件路径:将 pyvideotrans-v3.86(ai视频翻译) 文件夹移动到纯英文、无空格的路径下,例如 D:/pyvideotrans
    • 视频路径:将待处理的视频文件也移动到纯英文、无空格的路径下,例如 D:/videos/lesson.mp4
  2. 清理缓存并重新处理

    • 在软件主界面,务必勾选“清理已生成”选项。
    • 将修正路径后的视频文件拖入软件,重新开始翻译流程。
  3. 检查输出目录权限(如果问题依旧)

    • 手动在资源管理器中创建输出目录 C:/课程/_video_out/2.1 - Getting Set Up for Success,确认是否有写入权限。
    • 更推荐的做法:在软件设置中,将“输出目录”修改为一个简单的英文路径(如 D:/output)。

预防措施:请严格遵守软件安装要求,永远不要在包含中文、空格或特殊符号的路径下运行本软件或存放待处理的视频文件。

谢谢

不客气。请务必按照上述步骤修正路径,这是解决您当前问题的唯一有效方法。如果操作后仍有问题,请提供新的日志信息。

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