#3156 TaskCfg(cache_folder='H:/shipinfanyi/tmp/30388/cff4238fa6', target_dir='1月29日-mp4', remove_noise=False, is_separate=Fals

2400:e3e0* Posted at: 17 hours ago 👁12

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1450, 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月29日-mp4/1月29日.mp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 289, in run
File "videotrans\task\trans_create.py", line 758, in assembling
File "videotrans\task\trans_create.py", line 1454, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错
TaskCfg(cache_folder='H:/shipinfanyi/tmp/30388/cff4238fa6', target_dir='1月29日-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月29日-mp4/zh-cn.srt', target_sub='1月29日-mp4/en.srt', source_wav='H:/shipinfanyi/tmp/30388/cff4238fa6/zh-cn.wav', source_wav_output='1月29日-mp4/zh-cn.m4a', target_wav='H:/shipinfanyi/tmp/30388/cff4238fa6/target.wav', target_wav_output='1月29日-mp4/en.m4a', subtitles='', novoice_mp4='H:/shipinfanyi/tmp/30388/cff4238fa6/novoice.mp4', noextname='1月29日', shibie_audio=None, targetdir_mp4='1月29日-mp4/1月29日.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Emma(Female/US)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=False, cuda=True, name='F:/抖音/刘楚玉/1月29日.mp4', basename='1月29日.mp4', ext='mp4', dirname='F:/抖音/刘楚玉', shound_del_name=None, uuid='cff4238fa6', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:zh
root_dir:H:/shipinfanyi

1 Replies

这是由于输出目录路径不存在或权限不足,导致最终合成文件移动失败。

  1. 检查并创建输出目录:根据日志 target_dir='1月29日-mp4',软件试图将最终视频 1月29日.mp4 输出到 1月29日-mp4 这个文件夹。请确认当前工作目录下是否存在此文件夹。如果不存在,请手动创建。
  2. 检查路径权限:确保 1月29日-mp4 文件夹没有写保护,且当前用户有写入权限。
  3. 避免使用中文路径:虽然此错误直接原因是路径不存在,但最佳实践是避免在项目路径、视频文件名和输出文件夹名中使用中文或空格。建议将源视频文件重命名为纯英文/数字(如 0129.mp4),并设置一个英文输出目录名。
  4. 重新执行任务:完成上述检查和调整后,重新运行翻译任务。

请查阅相关文档:

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