#3777 TaskCfg(cache_folder='D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5', target_dir='1-mp4', remove_noise=False, is_separate=Fal

2a03:90c0* Posted at: 2 hours ago 👁8

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
Traceback (most recent call last):
File "shutil.py", line 813, in move
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5/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:/win-pyvideotrans/tmp/74748/fa3e9d4fb5', target_dir='1-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='西班牙语', source_language_code='en', target_language_code='es', source_sub='1-mp4/en.srt', target_sub='1-mp4/es.srt', source_wav='D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5/en.wav', source_wav_output='1-mp4/en.m4a', target_wav='D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5/target.wav', target_wav_output='1-mp4/es.m4a', subtitles='', novoice_mp4='D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5/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='Jorge(Male/MX)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='Z:/xxxxxxxxxxx/1.mp4', basename='1.mp4', ext='mp4', dirname='//ymnas/跨境/xxxxxxxxxxx', shound_del_name=None, uuid='fa3e9d4fb5', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.90
frozen:True
language:zh
root_dir:D:/win-pyvideotrans

1 Replies

这是由于输出目录路径过长或包含特殊字符,导致文件移动失败。

错误信息显示软件尝试将临时文件 D:/win-pyvideotrans/tmp/74748/fa3e9d4fb5/laste_target.mp4 移动到目标路径 1-mp4/1.mp4 时失败。目标路径 1-mp4 是一个相对路径,且最终输出目录 //ymnas/跨境/xxxxxxxxxxx/1-mp4 可能因网络路径或路径过长而出现问题。

解决方案:

  1. 简化输入文件路径:将待处理的视频文件 1.mp4 从网络路径 //ymnas/跨境/xxxxxxxxxxx/ 移动到本地一个简短的英文路径下,例如 D:\video,并确保文件名简短。
  2. 设置明确的输出目录:在软件主界面,点击“输出到...”按钮,手动指定一个简短的本地输出目录,例如 D:\output。避免使用相对路径或网络路径。
  3. 检查输出目录权限:确保软件对您指定的输出目录有写入权限。
  4. 升级软件版本:您当前使用的是 v3.90 版本,请下载最新版本 v3.98 的完整包或补丁包进行覆盖,以修复已知问题。

请查阅相关文档:

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