#1592 TaskCfg(cache_folder='F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714', target_dir='F:/Users

45.146* Posted at: 3 hours ago 👁9

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/compose1763960690.3932898.txt', '-i', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/novoice.mp4', '-i', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/target_dubbing.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/Exporting Hypercubes.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', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/compose1763960690.3932898.txt', '-i', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/novoice.mp4', '-i', 'F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/target_dubbing.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/Exporting Hypercubes.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 1227, 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 F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/Exporting Hypercubes.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 539, in assembling
File "videotrans\task\trans_create.py", line 1230, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错

TaskCfg(cache_folder='F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714', target_dir='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes', remove_noise=False, is_separate=False, detect_language='auto', subtitle_language=None, source_language='auto', target_language='简体中文', source_language_code='auto', target_language_code='zh-cn', source_sub='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/auto.srt', target_sub='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/zh-cn.srt', source_wav='F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/auto.wav', source_wav_output='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/auto.m4a', target_wav='F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/target.wav', target_wav_output='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/zh-cn.m4a', subtitles='', novoice_mp4='F:/Program Files/win-pyvideotrans-v3.85_20251121_002450/tmp12536/8665444714/novoice.mp4', noextname='Exporting Hypercubes', shibie_audio=None, targetdir_mp4='F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes/Exporting Hypercubes.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓辰 多语言(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=3, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='F:/Users/ZCH/Videos/video/TUTORIALS/Exporting Hypercubes.mp4', basename='Exporting Hypercubes.mp4', ext='mp4', dirname='F:/Users/ZCH/Videos/video/TUTORIALS', shound_del_name=None, uuid='8665444714', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0)


=
system:Windows-10-10.0.26200-SP0
version:v3.85
frozen:True
language:zh
root_dir:F:/Program Files/win-pyvideotrans-v3.85_20251121_002450

1 Replies

这个错误是由于输出文件路径问题导致的。从错误信息可以看到 opening output files: No such file or directory,具体原因是:

问题根源:
输出目录 F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/Exporting Hypercubes 不存在或无法创建。

解决方案:

  1. 检查输出路径权限:确保 F:/Users/ZCH/Videos/video/TUTORIALS/_video_out/ 目录有写入权限。
  2. 手动创建输出目录

    • 打开文件资源管理器
    • 导航到 F:/Users/ZCH/Videos/video/TUTORIALS/
    • 确认 _video_out 文件夹是否存在
    • 如果不存在,手动创建 _video_out 文件夹
  3. 重新处理

    • 返回主界面
    • 勾选"清理已生成"选项
    • 重新选择视频文件进行处理
  4. 如果问题依旧

    • 尝试将输出目录改为更简单的路径,如 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

Trending Questions