#3512 TaskCfgVTT(is_cuda=True, uuid='cdd7747e00', cache_folder='F:/win-pyvideotrans-v3.97-226/tmp/11320/cdd7747e00', target_di

2602:fbf1* Posted at: 2 hours ago 👁3

语音识别阶段出错 [faster-whisper(本地)] 出错了,可能内存或显存不足
A child process terminated abruptly, the process pool is not usable anymore
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 282, in _new_process
File "videotrans\process\signelobj.py", line 81, in submit_task_gpu
File "concurrent\futures\process.py", line 720, in submit
concurrent.futures.process.BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\trans_create.py", line 354, in recogn
File "videotrans\recognition\__init__.py", line 266, in run
File "videotrans\recognition\_base.py", line 142, in run
File "videotrans\recognition\_overall.py", line 63, in _exec
File "videotrans\recognition\_overall.py", line 136, in _faster
File "videotrans\configure\_base.py", line 296, in _new_process
RuntimeError: 出错了,可能内存或显存不足
A child process terminated abruptly, the process pool is not usable anymore
TaskCfgVTT(is_cuda=True, uuid='cdd7747e00', cache_folder='F:/win-pyvideotrans-v3.97-226/tmp/11320/cdd7747e00', target_dir='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4', source_language='英语', source_language_code='en', source_sub='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4/en.srt', source_wav='F:/win-pyvideotrans-v3.97-226/tmp/11320/cdd7747e00/en.wav', source_wav_output='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4/zh-cn.srt', target_wav='F:/win-pyvideotrans-v3.97-226/tmp/11320/cdd7747e00/target.wav', target_wav_output='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4/zh-cn.m4a', name='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始).mp4', noextname='15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)', basename='15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始).mp4', ext='mp4', dirname='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)', shound_del_name=None, translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='tiny.en', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/111/爱情碎纸机/-CaseyZander的恋爱技巧(男性向)(上)/_video_out/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始)-mp4/15-拓展1-在一段关系中,女性想要被吸引和每天想着你(7分正片开始).mp4', novoice_mp4='F:/win-pyvideotrans-v3.97-226/tmp/11320/cdd7747e00/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=True, background_music=None, subtitle_type=3, only_out_mp4=False, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.97-226

1 Replies

该错误是由于使用 faster-whisper(本地) 进行语音识别时,内存或显存不足导致子进程崩溃。

解决方案:

  1. 降低模型要求:你当前使用的是 tiny.en 模型。虽然这是最小的模型,但错误提示内存/显存不足。请尝试在“语音识别”设置中,将模型切换为更小的 tinybase 模型(如果可用),并确保“发音语言”选择正确(英语视频选 en 模型,其他语言选通用模型)。
  2. 检查CUDA状态:日志显示 is_cuda=True,说明软件尝试使用GPU加速。请确认你的NVIDIA显卡驱动、CUDA 12.8 和 cuDNN 9.x 已正确安装。在CMD中运行 nvidia-smi 查看显卡状态和显存占用。
  3. 调整高级设置

    • 进入 菜单 -> 工具 -> 高级选项
    • 在【语音识别参数】区域,将 识别准确度beam_size识别准确度best_of 都设为 1,以最低精度换取最低资源消耗。
    • CUDA数据类型 改为 int8(如果可用),这能显著减少显存占用,但会略微降低识别精度。
    • 确保 GPU同时任务数[重启生效] 设置为 1(默认值),避免多个任务争抢显存。
  4. 释放系统资源:关闭其他占用大量内存或显存的程序(如游戏、浏览器、其他AI软件),然后重启 pyVideoTrans 再试。
  5. 改用纯CPU模式:如果显卡显存确实太小(例如小于4GB),可以尝试在“语音识别”设置中,取消勾选“启用CUDA加速”(如果选项可见),强制使用CPU进行识别。注意,这会导致处理速度极慢。
  6. 作为最后手段:如果以上方法均无效,且视频为英语,可以考虑更换语音识别渠道,例如使用在线的 OpenAI语音识别APIGoogle语音识别(需配置代理),以完全规避本地资源限制。

请查阅相关文档:

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