#1639 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff', target_dir='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04

83.149* Posted at: 4 hours ago 👁8

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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:/win-pyvideotrans-v3.86/tmp16460/compose1764175003.6073172.txt', '-i', 'D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/novoice.mp4', '-i', 'D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/origin_audio.m4a', '-c:v', 'hevc_nvenc', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-cq', '15', '-preset', 'p1', '-shortest', 'J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/023 Creating the Button Masks.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:/win-pyvideotrans-v3.86/tmp16460/compose1764175003.6073172.txt', '-i', 'D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/novoice.mp4', '-i', 'D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/origin_audio.m4a', '-c:v', 'libx265', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-crf', '15', '-preset', 'fast', '-shortest', 'J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/023 Creating the Button Masks.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 J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/023 Creating the Button Masks.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:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff', target_dir='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks', 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='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/en.srt', target_sub='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/zh-cn.srt', source_wav='D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/en.wav', source_wav_output='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/en.m4a', target_wav='D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/target.wav', target_wav_output='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans-v3.86/tmp16460/2e304fe4ff/novoice.mp4', noextname='023 Creating the Button Masks', shibie_audio=None, targetdir_mp4='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/_video_out/023 Creating the Button Masks/023 Creating the Button Masks.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-turbo', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)/023 Creating the Button Masks.mp4', basename='023 Creating the Button Masks.mp4', ext='mp4', dirname='J:/【中文字幕】UE5虚幻引擎开交互式游戏菜单UI蓝图制作视频教程/04 - Orb Animation(轨道动画)', shound_del_name=None, uuid='2e304fe4ff', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


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

1 Replies

该错误是由于文件路径过长或包含特殊字符导致的。从错误日志可以看到,输出路径包含中文字符和特殊符号,导致 ffmpeg 无法创建输出文件。

解决方案:

  1. 修改输出路径(最有效的方法):

    • 将视频文件移动到根目录下的纯英文文件夹中,例如 D:/video/
    • 确保文件夹名称和视频文件名只包含英文字母、数字和下划线,不要使用中文、空格或特殊符号。
  2. 修改软件设置

    • 在软件主界面的输出目录设置中,选择一个路径较短且纯英文的目录作为输出位置。
  3. 临时解决方案

    • 如果必须处理当前文件,可以尝试将文件名重命名为简短的英文名称,例如 video1.mp4

原因分析:
错误信息 opening output files: No such file or directory 表明 ffmpeg 无法在指定路径创建输出文件,这通常是由于:

  • 路径长度超过 Windows 系统限制
  • 路径中包含中文字符、空格或特殊符号
  • 路径权限问题

按照上述步骤修改路径后,问题应该能够解决。

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