#1840 TaskCfg(cache_folder='C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a', target_dir='C:/course_kecheng/2/2.1 - Getting Set

129.146* Posted at: 11 hours ago 👁10

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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/tmp28392/compose1765174270.6301408.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/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/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/tmp28392/compose1765174270.6301408.txt', '-i', 'C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/novoice.mp4', '-i', 'C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/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/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/2/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/tmp28392/cec796c10a', target_dir='C:/course_kecheng/2/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/2/2.1 - Getting Set Up for Success/en.srt', target_sub='C:/course_kecheng/2/2.1 - Getting Set Up for Success/zh-cn.srt', source_wav='C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/en.wav', source_wav_output='C:/course_kecheng/2/2.1 - Getting Set Up for Success/en.m4a', target_wav='C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/target.wav', target_wav_output='C:/course_kecheng/2/2.1 - Getting Set Up for Success/zh-cn.m4a', subtitles='', novoice_mp4='C:/常用软件/pyvideotrans-v3.86/tmp28392/cec796c10a/novoice.mp4', noextname='2.1 - Getting Set Up for Success', shibie_audio=None, targetdir_mp4='C:/course_kecheng/2/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/mulv/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/mulv', shound_del_name=None, uuid='cec796c10a', 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 无法创建文件。从日志中可以看到,ffmpeg 报错“No such file or directory”,但实际是路径问题。

请按以下步骤解决:

  1. 立即操作:简化路径

    • 将你的视频文件移动到根目录下的一个纯英文、无空格、无特殊符号的文件夹中。例如:D:/video/
    • 将视频文件重命名为一个简短的英文名,例如 lesson1.mp4
    • 重要:确保 pyVideoTrans 软件的解压路径也符合上述要求(不含中文/空格)。你的当前路径 C:/常用软件/ 包含中文,也可能引发问题。
  2. 重新处理

    • 使用移动并重命名后的视频文件,重新在软件中导入并处理。
    • 在主界面第1行,务必勾选 “清理已生成”,以确保使用新的文件路径重新开始。
  3. (备用方案)修改输出目录

    • 如果无法移动原视频,可以在软件主界面第1行的“输出”位置,手动指定一个简短、纯英文的路径(如 D:/output/)作为输出目录。

根本原因:Windows 系统对文件路径长度有默认限制(约260个字符),且 ffmpeg 在处理包含空格、括号等特殊字符的长路径时容易出错。你的原始路径 C:/course_kecheng/2/2.1 - Getting Set Up for Success/ 过长且包含空格和连字符,是导致合并失败的直接原因。

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