#3678 TaskCfgVTT(is_cuda=True, uuid='8c385db891', cache_folder='D:/win-pyvideotrans-v3.98-317/tmp/10196/8c385db891', target_di

221.7* Posted at: 19 hours ago 👁18

合并阶段出错 Translation successful but transfer failed.
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1530, 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: 'D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 288, in run
File "videotrans\task\trans_create.py", line 796, in assembling
File "videotrans\task\trans_create.py", line 1532, in _join_video_audio_srt
RuntimeError: Translation successful but transfer failed.
TaskCfgVTT(is_cuda=True, uuid='8c385db891', cache_folder='D:/win-pyvideotrans-v3.98-317/tmp/10196/8c385db891', target_dir='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4', source_language='英语', source_language_code='en', source_sub='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/en.srt', source_wav='D:/win-pyvideotrans-v3.98-317/tmp/10196/8c385db891/en.wav', source_wav_output='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/zh-cn.srt', target_wav='D:/win-pyvideotrans-v3.98-317/tmp/10196/8c385db891/target.wav', target_wav_output='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/zh-cn.m4a', name='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4', noextname='How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language', basename='How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4', ext='mp4', dirname='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网', shound_del_name=None, translate_type=0, 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='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='D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4', novoice_mp4='D:/win-pyvideotrans-v3.98-317/tmp/10196/8c385db891/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=4, only_out_mp4=False, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.98-317

1 Replies

这是由于文件路径过长或包含特殊字符导致最终合成时无法找到文件。

从错误信息 FileNotFoundError: [Errno 2] No such file or directory: 'D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/_video_out/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language-mp4/How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4' 可以看出,软件试图复制或移动最终生成的视频文件时失败。根本原因是 Windows 系统对文件路径长度有严格限制,且路径中包含了中文和特殊符号。

解决方案:

  1. 简化输入文件路径:将需要翻译的原始视频文件移动到更浅的目录下(例如 D:\videos),并将其重命名为一个简短的英文或数字名称(例如 video1.mp4)。这是最根本的解决方法。
  2. 避免使用中文和特殊符号:确保软件安装路径、视频存放路径及视频文件名中只包含英文和数字,不要有中文、空格、括号、破折号等特殊字符。
  3. 清理缓存后重试:在软件主界面左上角勾选 清理已生成 复选框,然后使用简化路径后的视频文件重新开始翻译任务。

详细说明:

  • Windows 系统(尤其是命令行)对路径总长度(从盘符到文件名结束)有限制(通常约260个字符)。你的原始视频文件名 How Pro Traders Talk on the Ladder – Gone Bid, Hit the Bid, Lift the Offer & DOM Execution Language.mp4 本身就非常长,再加上多层中文目录 D:/需要翻译的视频/Dom scalp 合集/Futex(重要)/Futex 官网/,以及软件自动生成的 _video_out 和带 -mp4 后缀的临时文件夹,总路径长度极易超出限制。
  • 软件内部依赖 ffmpeg 等命令行工具处理文件,过长的路径会导致命令执行失败。
  • 路径中的中文和特殊符号(如 )也可能在某些处理环节引发兼容性问题。

请查阅相关文档:

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