#5632 TaskCfgVTT(uuid='d6634ca81e', name='E:/期货视频/原视频文件夹/Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1.m

64.186* Posted at: 1 day ago

最后一步字幕配音嵌入时出错[Errno 2] No such file or directory: 'Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/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 256, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/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: 'Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/end.ass'
TaskCfgVTT(uuid='d6634ca81e', name='E:/期货视频/原视频文件夹/Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1.mp4', dirname='E:/期货视频/原视频文件夹', noextname='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1', basename='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1.mp4', ext='mp4', target_dir='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4', cache_folder='E:/win-pyvideotrans-v4.00-523/tmp/26644/d6634ca81e', is_cuda=True, source_language='英语', source_language_code='en', source_sub='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/en.srt', source_wav='E:/win-pyvideotrans-v4.00-523/tmp/26644/d6634ca81e/en.wav', source_wav_output='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/zh-cn.srt', target_wav='E:/win-pyvideotrans-v4.00-523/tmp/26644/d6634ca81e/target.wav', target_wav_output='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/zh-cn.m4a', translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunjian(Male/CN)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='small.en', 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='Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1-mp4/Gexbot_for_Futures_Execution_on_NQ_-_Fredy_S_Interviews_Jass_Part_1.mp4', novoice_mp4='E:/win-pyvideotrans-v4.00-523/tmp/26644/d6634ca81e/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='E:/win-pyvideotrans-v4.00-523/tmp/26644/d6634ca81e/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


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

1 Replies

这是由于视频文件路径过长或文件名包含特殊字符、空格导致 Windows 系统路径解析失败,在最后合成步骤无法找到 end.ass 字幕样式文件。

解决方案:

  1. 将原始视频文件移动到一个浅层目录(例如 D:/test/),并将文件名改为简短纯英文(如 test.mp4)。
  2. 重新启动软件,重新选择该视频并执行翻译任务。
  3. 如果问题仍然存在,建议升级软件版本至最新 v4.04(当前使用 v4.00),新版已优化路径处理。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource