#1677 TaskCfg(cache_folder='D:/Portable/pyvideotrans/tmp17808/be2eed16ac', target_dir='D:/Download/ZBrush/_video_out/050', rem

45.95* Posted at: 9 days ago 👁36

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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', 'D:/Portable/pyvideotrans/tmp17808/compose1764423167.0649576.txt', '-i', 'D:/Portable/pyvideotrans/tmp17808/be2eed16ac/novoice.mp4', '-i', 'D:/Portable/pyvideotrans/tmp17808/be2eed16ac/origin_audio.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-cq', '30', '-preset', 'p4', '-shortest', 'D:/Download/ZBrush/_video_out/050/050.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', 'D:/Portable/pyvideotrans/tmp17808/compose1764423167.0649576.txt', '-i', 'D:/Portable/pyvideotrans/tmp17808/be2eed16ac/novoice.mp4', '-i', 'D:/Portable/pyvideotrans/tmp17808/be2eed16ac/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '30', '-preset', 'medium', '-shortest', 'D:/Download/ZBrush/_video_out/050/050.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 D:/Download/ZBrush/_video_out/050/050.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='D:/Portable/pyvideotrans/tmp17808/be2eed16ac', target_dir='D:/Download/ZBrush/_video_out/050', 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='D:/Download/ZBrush/_video_out/050/en.srt', target_sub='D:/Download/ZBrush/_video_out/050/zh-cn.srt', source_wav='D:/Portable/pyvideotrans/tmp17808/be2eed16ac/en.wav', source_wav_output='D:/Download/ZBrush/_video_out/050/en.m4a', target_wav='D:/Portable/pyvideotrans/tmp17808/be2eed16ac/target.wav', target_wav_output='D:/Download/ZBrush/_video_out/050/zh-cn.m4a', subtitles='', novoice_mp4='D:/Portable/pyvideotrans/tmp17808/be2eed16ac/novoice.mp4', noextname='050', shibie_audio=None, targetdir_mp4='D:/Download/ZBrush/_video_out/050/050.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=True, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=False, video_autorate=True, cuda=True, name='D:/Download/ZBrush/050.mp4', basename='050.mp4', ext='mp4', dirname='D:/Download/ZBrush', shound_del_name=None, uuid='be2eed16ac', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/Portable/pyvideotrans

1 Replies

这个错误是 FFmpeg 在合并视频、音频和字幕时无法创建输出文件导致的。从错误信息 opening output files: No such file or directory 可以看出,系统无法在指定路径创建输出文件。

请按以下步骤解决:

  1. 检查输出目录权限:确保 D:/Download/ZBrush/_video_out/050/ 目录存在且具有写入权限。如果目录不存在,请手动创建。
  2. 检查文件路径长度:Windows 系统对文件路径长度有限制。请尝试将输出目录设置到更短的路径,比如直接在 D 盘根目录下创建输出文件夹(如 D:/output)。
  3. 检查磁盘空间:确保 D 盘有足够的剩余空间。
  4. 关闭可能占用文件的程序:如果有其他程序正在访问目标文件,请关闭这些程序。
  5. 修改输出路径:在软件主界面的输出目录设置中,选择一个更简单的路径,避免多层嵌套目录。
  6. 以管理员身份运行:如果问题依旧,尝试以管理员身份运行 pyVideoTrans。

如果以上方法都无法解决,请提供完整的日志文件(位于 D:/Portable/pyvideotrans/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

Trending Questions