#3197 TaskCfg(cache_folder='F:/pyvideotrans/tmp/19872/2f76e435ed', target_dir='111-mp4', remove_noise=False, is_separate=False

240e:390* Posted at: 7 days ago 👁28

合并阶段出错 最后一步字幕配音嵌入时出错
Traceback (most recent call last):
File "shutil.py", line 813, in move
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'F:/pyvideotrans/tmp/19872/2f76e435ed/laste_target.mp4' -> '111-mp4/111.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: '111-mp4/111.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='F:/pyvideotrans/tmp/19872/2f76e435ed', target_dir='111-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='111-mp4/zh-cn.srt', target_sub='111-mp4/en.srt', source_wav='F:/pyvideotrans/tmp/19872/2f76e435ed/zh-cn.wav', source_wav_output='111-mp4/zh-cn.m4a', target_wav='F:/pyvideotrans/tmp/19872/2f76e435ed/target.wav', target_wav_output='111-mp4/en.m4a', subtitles='', novoice_mp4='F:/pyvideotrans/tmp/19872/2f76e435ed/novoice.mp4', noextname='111', shibie_audio=None, targetdir_mp4='111-mp4/111.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=8, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='D:/111.mp4', basename='111.mp4', ext='mp4', dirname='D:/', shound_del_name=None, uuid='2f76e435ed', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.91
frozen:True
language:zh
root_dir:F:/pyvideotrans

1 Replies

这是由于输出目录路径不存在或权限问题导致的。在最终合并阶段,软件尝试将临时文件移动到目标输出目录时,目标目录 111-mp4 不存在或无法访问。

解决方案:

  1. 检查并创建输出目录:确保软件根目录(F:/pyvideotrans)下存在名为 111-mp4 的文件夹。如果不存在,请手动创建。
  2. 检查路径权限:确认 F:/pyvideotrans 及其子目录没有设置只读属性,且当前用户有写入权限。
  3. 避免使用特殊路径:确保软件安装路径(F:/pyvideotrans)和输出路径不包含中文、空格或特殊符号。此例中的路径符合规范。
  4. 重启软件重试:完成上述检查后,重启 sp.exe 并重新处理任务。

根本原因分析
从日志 TaskCfg(target_dir='111-mp4', ...) 可知,软件试图将最终视频输出到相对路径 111-mp4/111.mp4。这个相对路径是相对于软件根目录 F:/pyvideotrans 的。错误表明,在移动文件时,目标目录 111-mp4 不存在,导致 FileNotFoundError

请查阅相关文档:

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