#1715 TaskCfg(cache_folder='E:/pytran/tmp10384/79b0be5b6a', target_dir='E:/视频下载/输出/Tree Pins Woman in Bed 😨', remove_noise=Fal

220.200* Posted at: 7 days ago 👁27

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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:/pytran/tmp10384/compose1764599679.8208797.txt', '-i', 'E:/pytran/tmp10384/79b0be5b6a/novoice.mp4', '-i', 'E:/pytran/tmp10384/79b0be5b6a/origin_audio.m4a', '-c:v', 'h264_qsv', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-global_quality', '23', '-preset', 'veryfast', '-shortest', 'E:/视频下载/输出/Tree Pins Woman in Bed 😨/Tree Pins Woman in Bed 😨.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:/pytran/tmp10384/compose1764599679.8208797.txt', '-i', 'E:/pytran/tmp10384/79b0be5b6a/novoice.mp4', '-i', 'E:/pytran/tmp10384/79b0be5b6a/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'E:/视频下载/输出/Tree Pins Woman in Bed 😨/Tree Pins Woman in Bed 😨.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 E:/视频下载/输出/Tree Pins Woman in Bed 😨/Tree Pins Woman in Bed 😨.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='E:/pytran/tmp10384/79b0be5b6a', target_dir='E:/视频下载/输出/Tree Pins Woman in Bed 😨', 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:/视频下载/输出/Tree Pins Woman in Bed 😨/en.srt', target_sub='E:/视频下载/输出/Tree Pins Woman in Bed 😨/zh-cn.srt', source_wav='E:/pytran/tmp10384/79b0be5b6a/en.wav', source_wav_output='E:/视频下载/输出/Tree Pins Woman in Bed 😨/en.m4a', target_wav='E:/pytran/tmp10384/79b0be5b6a/lastend.wav', target_wav_output='E:/视频下载/输出/Tree Pins Woman in Bed 😨/zh-cn.m4a', subtitles='', novoice_mp4='E:/pytran/tmp10384/79b0be5b6a/novoice.mp4', noextname='Tree Pins Woman in Bed 😨', shibie_audio=None, targetdir_mp4='E:/视频下载/输出/Tree Pins Woman in Bed 😨/Tree Pins Woman in Bed 😨.mp4', instrument=None, vocal=None, back_audio='E:/视频下载/3915348132.mp3', background_music='E:/pytran/tmp10384/79b0be5b6a/bgm_file.wav', app_mode='biaozhun', subtitle_type=1, volume='+100%', pitch='+0Hz', voice_rate='+0%', voice_role='晓辰 多语言(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='E:/视频下载/Tree Pins Woman in Bed 😨.mp4', basename='Tree Pins Woman in Bed 😨.mp4', ext='mp4', dirname='E:/视频下载', shound_del_name=None, uuid='79b0be5b6a', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


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

1 Replies

错误核心是输出文件路径问题。从日志 opening output files: No such file or directory 和路径 E:/视频下载/输出/Tree Pins Woman in Bed 😨/Tree Pins Woman in Bed 😨.mp4 来看,问题出在输出文件夹不存在路径包含特殊字符/空格

请按以下步骤解决:

  1. 手动创建输出文件夹:在 E:/视频下载/ 目录下,手动新建一个名为 输出 的文件夹。
  2. 检查并简化路径

    • 确保 E:/视频下载/输出/ 这个文件夹路径确实存在。
    • 强烈建议将视频文件重命名为纯英文(不含空格和表情符号),例如 Tree_Pins_Woman_in_Bed.mp4
    • 将重命名后的视频移动到更简单的路径,例如 D:/tmp/video.mp4
  3. 在软件中重新设置

    • 重新启动 pyVideoTrans。
    • 在软件主界面第1行“输出”位置,点击右侧按钮,手动指定一个纯英文、无空格、路径较短的文件夹作为输出目录(例如 D:/output)。
  4. 重新处理:导入重命名后的视频文件,确保勾选“清理已生成”,然后开始翻译。

根本原因:软件在合并阶段需要将最终视频写入你指定的输出目录。如果该目录不存在,或者路径中包含中文、空格、特殊字符(如 😨),可能导致 ffmpeg 命令执行失败。

如果上述步骤后问题依旧,请检查磁盘 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