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

94.206.**3 Posted at: 4 hours ago

语音识别阶段出错[faster-whisper(内置)] mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 50, 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 50, 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 86, in faster_whisper
File "videotrans\process\stt_faster.py", line 70, in _create_model
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 50, in _create_model
File "faster_whisper\trans
......
rror: mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 50, 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 50, 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 86, in faster_whisper
File "videotrans\process\stt_faster.py", line 70, in _create_model
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 50, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory
[TransCreate]翻译视频: self.is_copy_video=True,self.video_codec_num=264,self.is_audio_trans=False,self.video_info={'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 720, 'height': 1280, 'time': 20781, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: C:/Users/18177/Desktop/新建文件夹 (3)/f961cdb07a5809a25a2601b626d0c2e3..MP4,
输出结果保存到文件夹: C:/Users/18177/Desktop/新建文件夹 (3)/_video_out/f961cdb07a5809a25a2601b626d0c2e3.-mp4,
临时文件夹: C:/Users/18177/Downloads/win-pyvideotrans-v4.10/tmp/25640/c7e1e89de5
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.19045-SP0
version:v4.10
frozen:True
language:zh
root_dir:C:/Users/18177/Downloads/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 4 hours ago

这是内存不足导致的错误:mkl_malloc: failed to allocate memory 表示 faster-whisper 在 CPU 模式下加载 large-v3-turbo 模型时,底层内存分配失败,无法分配到足够的内存。

请按以下顺序排查解决:

  1. 关闭其他占用内存的程序(浏览器多开页面、虚拟机、大型软件等),确保系统空闲内存充足。large-v3-turbo 在纯 CPU 模式下需要较大内存,建议空闲物理内存至少 8GB。
  2. 更换更小的模型:在语音识别渠道中,将模型从 large-v3-turbo 改为 smallmedium,可显著降低内存需求。
  3. 将视频文件移动复制到全英文、无空格、无括号的简单路径。你的当前路径包含中文、空格、括号等特殊字符:
    C:/Users/18177/Desktop/新建文件夹 (3)/f961cdb07a5809a25a2601b626d0c2e3..MP4
    建议改为 D:/video/1.mp4,然后重新导入处理。
  4. 必要时重启电脑后再尝试,释放被系统或其他进程占用的内存。
  5. 如果系统物理内存本身较小(如 8GB 以下),建议:

    • 使用更小的模型(small / base);
    • 或考虑使用 NVIDIA 显卡 CUDA 加速,可显著降低内存压力;
    • 或提升系统虚拟内存(页面文件)容量。

如以上操作后仍报相同错误,请提供 logs/ 目录下的最新日志文件内容(复制底部约30行)以便进一步分析。

Thinking...
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 via ko-fi.com

Related resource