#1866 TaskCfg(cache_folder='F:/win-pyvideotrans-v3.86/tmp8108/754b144e85', target_dir='H:/xiazai/out/videoandaudio/_video_out/

2408:821a* Posted at: 2 hours ago 👁4

语音识别阶段出错:[faster-whisper(本地)] 文件不存在:H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../en.srt:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 368, in recogn
File "videotrans\task\_base.py", line 109, in _save_srt_target
FileNotFoundError: [Errno 2] No such file or directory: 'H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../en.srt'

TaskCfg(cache_folder='F:/win-pyvideotrans-v3.86/tmp8108/754b144e85', target_dir='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal...', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../en.srt', target_sub='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../zh-cn.srt', source_wav='F:/win-pyvideotrans-v3.86/tmp8108/754b144e85/en.wav', source_wav_output='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../en.m4a', target_wav='F:/win-pyvideotrans-v3.86/tmp8108/754b144e85/target.wav', target_wav_output='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../zh-cn.m4a', subtitles='', novoice_mp4='F:/win-pyvideotrans-v3.86/tmp8108/754b144e85/novoice.mp4', noextname='I Investigated the Country Where Every Drug is Legal...', shibie_audio=None, targetdir_mp4='H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal.../I Investigated the Country Where Every Drug is Legal....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='clone', copysrt_rawvideo=False, clear_cache=True, translate_type=4, tts_type=15, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='H:/xiazai/out/videoandaudio/I Investigated the Country Where Every Drug is Legal....mp4', basename='I Investigated the Country Where Every Drug is Legal....mp4', ext='mp4', dirname='H:/xiazai/out/videoandaudio', shound_del_name=None, uuid='754b144e85', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.86

1 Replies

错误原因是输出目录路径过长或包含特殊字符(省略号“...”),导致文件创建失败。请按以下步骤解决:

  1. 重命名源文件:将视频文件 I Investigated the Country Where Every Drug is Legal....mp4 重命名为一个简短的英文名称,例如 video.mp4
  2. 移动文件位置:将重命名后的视频文件移动到一个路径较短的纯英文目录下,例如 D:/video/
  3. 重新处理:在软件中导入这个位于新路径下的视频文件进行处理。

根本原因:Windows系统对文件路径长度有严格限制(通常为260个字符),当输出目录路径(H:/xiazai/out/videoandaudio/_video_out/I Investigated the Country Where Every Drug is Legal...)加上文件名后,总长度很可能超过了限制,导致无法创建字幕文件(en.srt)。路径中的省略号“...”也可能被系统视为非法字符。

如果问题依旧,请提供 F:/win-pyvideotrans-v3.86/logs/ 目录下的最新日志文件。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions