#3791 TaskCfgVTT(is_cuda=True, uuid='d3effa593d', cache_folder='D:/win-pyvideotrans-v3.98-317/tmp/5552/d3effa593d', target_dir

221.7* Posted at: 2 hours ago 👁5

语音识别阶段出错 [openai-whisper(本地)] 文件不存在:D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-en.srt
Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 261, in recogn
File "videotrans\task\trans_create.py", line 443, in _recogn_succeed
File "shutil.py", line 434, in copy2
File "shutil.py", line 256, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-en.srt'
TaskCfgVTT(is_cuda=True, uuid='d3effa593d', cache_folder='D:/win-pyvideotrans-v3.98-317/tmp/5552/d3effa593d', target_dir='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4', source_language='英语', source_language_code='en', source_sub='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/en.srt', source_wav='D:/win-pyvideotrans-v3.98-317/tmp/5552/d3effa593d/en.wav', source_wav_output='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/zh-cn.srt', target_wav='D:/win-pyvideotrans-v3.98-317/tmp/5552/d3effa593d/target.wav', target_wav_output='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/zh-cn.m4a', name='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro.mp4', noextname='DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro', basename='DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro.mp4', ext='mp4', dirname='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网', shound_del_name=None, translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro.mp4', novoice_mp4='D:/win-pyvideotrans-v3.98-317/tmp/5552/d3effa593d/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=2, copysrt_rawvideo=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.98-317

1 Replies

这是由于文件路径过长或包含特殊字符,导致软件在复制字幕文件时无法找到目标文件。

错误信息显示,软件尝试复制一个SRT字幕文件到路径 D:/video/Dom scalp 合集/Futex(importance)/Futex 官网/_video_out/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-mp4/DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro-en.srt。该路径过长,且文件名中包含空格、破折号()等特殊字符,在Windows系统上极易引发问题。

解决方案:

  1. 重命名并移动源视频文件:将需要翻译的原始视频文件(DOM Trading Walkthrough – How to Use the Price Ladder, Adjust Size, Place Limit Orders Like a Pro.mp4)移动到一个层级较浅的目录(例如 D:\videos),并将其重命名为一个简短、仅包含英文字母或数字的名称(例如 DOM.mp4)。
  2. 清理缓存:在软件主界面左上角,勾选 清理已生成 复选框,以确保软件会重新处理视频,而不是使用旧的缓存文件。
  3. 重新处理:使用重命名并移动后的视频文件,重新开始翻译任务。

根本原因与预防:
Windows系统对命令行路径长度有严格限制(通常为260个字符)。pyVideoTrans内部依赖ffmpeg等命令行工具,当文件路径(从盘符到文件名结束)过长或包含特殊符号(如空格、?*、表情符号、破折号等)时,极易导致命令执行失败。从YouTube等网站下载的视频标题通常较长且包含特殊符号,是此问题的常见来源。

请查阅相关文档:

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