#1807 TaskCfg(cache_folder='D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097', target_dir='D:/PC_UE/DATA/Unreal Engine 5 Gam

117.173* Posted at: 2 days ago 👁21

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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:/PC_AI/win-pyvideotrans-v3.86/tmp3584/compose1765001630.3781517.txt', '-i', 'D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/novoice.mp4', '-i', 'D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/origin_audio.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/23 - Auto Activated Abilities.mp4']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\
......
ignore_unknown', '-threads', '0', '-y', '-progress', 'D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/compose1765001630.3781517.txt', '-i', 'D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/novoice.mp4', '-i', 'D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=shuang.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/23 - Auto Activated Abilities.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:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/23 - Auto Activated Abilities.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:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097', target_dir='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities', 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:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/en.srt', target_sub='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/zh-cn.srt', source_wav='D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/en.wav', source_wav_output='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/en.m4a', target_wav='D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/target.wav', target_wav_output='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/zh-cn.m4a', subtitles='', novoice_mp4='D:/PC_AI/win-pyvideotrans-v3.86/tmp3584/5f30e6d097/novoice.mp4', noextname='23 - Auto Activated Abilities', shibie_audio=None, targetdir_mp4='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/_video_out/23 - Auto Activated Abilities/23 - Auto Activated Abilities.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='云健(Male/CN)', copysrt_rawvideo=False, clear_cache=True, translate_type=4, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=True, cuda=True, name='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events/23 - Auto Activated Abilities.mp4', basename='23 - Auto Activated Abilities.mp4', ext='mp4', dirname='D:/PC_UE/DATA/Unreal Engine 5 Gameplay Ability System GAS Crash Course/3 - Gameplay Events', shound_del_name=None, uuid='5f30e6d097', 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:D:/PC_AI/win-pyvideotrans-v3.86

1 Replies

错误原因是输出文件路径过长或包含特殊字符(如空格),导致 ffmpeg 无法创建文件。从日志可见,输出路径包含长目录名和空格。

请按以下步骤解决:

  1. 简化路径(最有效方法)

    • 将待处理的视频文件移动到路径更短、无空格的目录下,例如 D:/tmp/video.mp4
    • 重新处理该视频。
  2. 修改输出目录(备用方法)

    • 在软件主界面,点击“输出”路径旁的“...”按钮。
    • 选择一个更短、无空格的目录作为输出位置,例如 D:/output
  3. 检查磁盘权限

    • 确保目标驱动器(D盘)有足够的写入权限。

处理完成后,输出文件将位于您指定的新目录中。这是 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