#8658 语音识别阶段出错[faster-whisper(内置)] mkl_malloc: failed to allocate memory,Traceback (most recent call last): File

240e**39e7 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(内置)] mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\trans
......
Error: mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory
trk=[TransCreate]: uuid='f4ee518238', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/Desktop/素材/多符号项链/多符号1 20个视频/多符号手链 (21).mp4,
输出结果保存到文件夹: D:/Desktop/素材/多符号项链/多符号1 20个视频/比利时荷兰已使用30/多符号手链 (21)-mp4,
临时文件夹: D:/Desktop/win-pyvideotrans-v4.16/tmp/29244/f4ee518238
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:DeepSeek,原始语言:英语,目标语言:荷兰语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Dena(Female/BE), 配音语言:荷兰语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 不嵌入字幕
已选 仅输出mp4, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Desktop/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

解决步骤(按顺序尝试)

  1. 限制同时运行的任务数

    • 菜单 → 工具/选项 → 高级选项 → 通用设置:

      • CPU同时任务数[重启生效] 设为 1
      • GPU同时任务数[重启生效] 设为 1
      • 批量翻译视频时每批数量 设为 1
    • 保存后重启软件(这两项需重启生效)。
  2. 降低模型或计算精度

    • 主界面 识别模型 从 large-v3-turbo 换成 medium 或 small;
    • 或保持模型不变,在 高级选项 → 语音识别参数 → 计算数据类型 选 int8(最省内存);
    • 同时将 识别准确度beam_size、best_of 调为 1,并关闭 启用上下文感知。
  3. 释放系统内存

    • 关闭浏览器、其他软件等占用内存的程序;若内存 ≤ 8GB,纯 CPU 跑 large-v3 系列极易失败,建议直接用 small/medium。
  4. 有条件则启用 GPU

    • 有 NVIDIA 显卡并按文档配置好 CUDA 12.8 + cuDNN 9.11 后,勾选 CUDA 加速,可大幅降低对系统内存的压力。
  5. 若上述调整后仍报错,请提供:电脑总内存大小、是否同时处理多个视频、以及调整后的最新日志。
Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource