#4936 TaskCfgVTT(uuid='1e31a8ed6e', name='D:/yyy/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻.mp4', dirname='D

2408:8220* Posted at: 3 hours ago

语音识别阶段出错[faster-whisper(本地)] No transcription results returned. Please check the original audio/video or model and try again.
Traceback (most recent call last):

File "videotrans\task\job.py", line 54, in run

File "videotrans\task\job.py", line 119, in process_task

File "videotrans\task\trans_create.py", line 320, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "videotrans\recognition\_base.py", line 93, in run

File "videotrans\recognition\_whisper.py", line 35, in _exec

File "videotrans\recognition\_whisper.py", line 108, in _faster

File "videotrans\configure\base.py", line 252, in _new_process

videotrans.configure.excepts.VideoTransError: No transcription results returned. Please check the original audio/video or model and try again.
TaskCfgVTT(uuid='1e31a8ed6e', name='D:/yyy/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻.mp4', dirname='D:/yyy', noextname='oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻', basename='oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻.mp4', ext='mp4', target_dir='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4', cache_folder='D:/翻译/win-pyvideotrans-v4.00-528/tmp/11228/1e31a8ed6e', is_cuda=False, source_language='英语', source_language_code='en', source_sub='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4/en.srt', source_wav='D:/翻译/win-pyvideotrans-v4.00-528/tmp/11228/1e31a8ed6e/en.wav', source_wav_output='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4/zh-cn.srt', target_wav='D:/翻译/win-pyvideotrans-v4.00-528/tmp/11228/1e31a8ed6e/target.wav', target_wav_output='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoxiao(Female/CN)', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='base', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='D:/hhh/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻-mp4/oTvHRSj7EEYSilent Mode SMC Backtesting Plug N Play 👨\u200d💻.mp4', novoice_mp4='D:/翻译/win-pyvideotrans-v4.00-528/tmp/11228/1e31a8ed6e/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/翻译/win-pyvideotrans-v4.00-528/tmp/11228/1e31a8ed6e/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:D:/翻译/win-pyvideotrans-v4.00-528

1 Replies

错误原因在于视频文件名包含特殊符号(如 👨‍💻)、空格及长路径,导致 ffmpeg 处理音频时失败,最终 faster-whisper 没有接收到有效的音频数据而返回空结果。

解决方案:

  1. 重命名视频文件:将文件名改为仅含英文字母、数字和短横线的简短名称,例如 silent_mode.mp4
  2. 移动视频到浅层目录:将视频放在不含中文、空格、特殊符号的目录中,如 D:\video\
  3. 重新执行任务:重新选择该视频并运行。

如果上述操作后仍然报错,请检查视频是否确实包含人声(例如无声或仅有背景音乐),或尝试使用更大的模型(如 large-v3)重试。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource