#2794 TaskCfg(cache_folder='D:/videotrans/tmp/11112/73f997dac7', target_dir='下载 (1)-mp4', remove_noise=False, is_separate=Fals

43.239* Posted at: 26 days ago 👁50

合并阶段出错 最后一步字幕配音嵌入时出错
Traceback (most recent call last):
File "shutil.py", line 813, in move
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:/videotrans/tmp/11112/73f997dac7/laste_target.mp4' -> '下载 (1)-mp4/下载 (1).mp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1307, in _join_video_audio_srt
File "shutil.py", line 833, in move
File "shutil.py", line 434, in copy2
File "shutil.py", line 256, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: '下载 (1)-mp4/下载 (1).mp4'

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 590, in assembling
File "videotrans\task\trans_create.py", line 1311, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错

TaskCfg(cache_folder='D:/videotrans/tmp/11112/73f997dac7', target_dir='下载 (1)-mp4', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='英语', source_language_code='zh-cn', target_language_code='en', source_sub='下载 (1)-mp4/zh-cn.srt', target_sub='下载 (1)-mp4/en.srt', source_wav='D:/videotrans/tmp/11112/73f997dac7/zh-cn.wav', source_wav_output='下载 (1)-mp4/zh-cn.m4a', target_wav='D:/videotrans/tmp/11112/73f997dac7/target.wav', target_wav_output='下载 (1)-mp4/en.m4a', subtitles='', novoice_mp4='D:/videotrans/tmp/11112/73f997dac7/novoice.mp4', noextname='下载 (1)', shibie_audio=None, targetdir_mp4='下载 (1)-mp4/下载 (1).mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='莱恩(Lenn)', copysrt_rawvideo=False, clear_cache=False, translate_type=12, tts_type=4, recogn_type=6, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=True, cuda=True, name='D:/4/下载 (1).mp4', basename='下载 (1).mp4', ext='mp4', dirname='D:/4', shound_del_name=None, uuid='73f997dac7', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

错误原因是输出路径 下载 (1)-mp4/下载 (1).mp4 包含特殊字符 (),导致 Windows 系统无法正确创建或移动文件。这是软件的核心禁忌之一。

解决方案:

  1. 立即停止:不要继续在当前路径下处理。
  2. 重命名源文件:将你的原始视频文件 下载 (1).mp4 重命名为一个纯英文或数字的名称,例如 video1.mp4
  3. 移动文件位置:将重命名后的视频文件移动到一个路径简短且不含中文和特殊符号的文件夹中,例如 D:/video
  4. 重新处理:在软件中导入这个位于新路径下的视频文件,再次开始翻译任务。

根本原因与预防:

  • 路径禁忌:软件处理过程中会生成大量临时文件,Windows 系统对包含括号、空格等特殊字符的路径支持不佳,极易导致文件操作失败。
  • 最佳实践:始终将待处理的视频文件放在一个纯英文路径下(如 D:/videotrans/input),并且文件本身也使用纯英文名

请查看更多参考文档:

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