#4694 TaskCfgVTT(uuid='803047caf9', name='C:/Users/28456/Desktop/dlp/Downloads/How to use DATA ASSETS - Unreal Engine 5 Tutori

95.85* Posted at: 23 hours ago

最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: 'E:/PyVideotrans/tmp/35336/803047caf9/end.ass'
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1383, in _join_video_audio_srt
File "shutil.py", line 434, in copy2
File "shutil.py", line 254, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'E:/PyVideotrans/tmp/35336/803047caf9/end.ass'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 113, in run
File "videotrans\task\trans_create.py", line 707, in assembling
File "videotrans\task\trans_create.py", line 1385, in _join_video_audio_srt
videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: 'E:/PyVideotrans/tmp/35336/803047caf9/end.ass'
TaskCfgVTT(uuid='803047caf9', name='C:/Users/28456/Desktop/dlp/Downloads/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8].mp4', dirname='C:/Users/28456/Desktop/dlp/Downloads', noextname='How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]', basename='How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8].mp4', ext='mp4', target_dir='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4', cache_folder='E:/PyVideotrans/tmp/35336/803047caf9', is_cuda=True, source_language='英语', source_language_code='en', source_sub='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4/en.srt', source_wav='E:/PyVideotrans/tmp/35336/803047caf9/en.wav', source_wav_output='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4/zh-cn.srt', target_wav='E:/PyVideotrans/tmp/35336/803047caf9/target.wav', target_wav_output='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/28456/Desktop/dlp/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8]-mp4/How to use DATA ASSETS - Unreal Engine 5 Tutorial [3PrpLvC5EO8].mp4', novoice_mp4='E:/PyVideotrans/tmp/35336/803047caf9/novoice.mp4', is_separate=True, embed_bgm=True, instrument='E:/PyVideotrans/tmp/35336/803047caf9/instrument.wav', vocal='E:/PyVideotrans/tmp/35336/803047caf9/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=1.0)


=
system:Windows-10-10.0.26200-SP0
version:v4.00
frozen:True
language:zh
root_dir:E:/PyVideotrans

1 Replies

这是因为视频文件名包含空格、方括号等特殊字符,且路径过长,导致 FFmpeg 在最后合成阶段无法正确写入或读取临时字幕文件 end.ass

解决方案:

  1. 简化文件名与路径
    将视频文件重命名为纯英文无特殊字符的短名称(例如 tutorial.mp4),并移动到浅层目录(如 D:\videos)。避免使用中文、空格、[]- 等符号。
  2. 重新处理
    在软件主界面勾选 清理已生成(或确保上一轮缓存已手动清空),然后重新选择简化后的视频文件开始翻译。

请查阅相关文档:

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.

Related resource