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

16.163.**8 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 182, in faster_whisper
File "faster_whisper\transcribe.py", line 1851, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1190, in generate_segments
File "faster_whisper\transcribe.py", line 1400, in encode
RuntimeError: mkl_malloc: failed to allocate memory

Traceback (most recent call last):

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

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

File "videotrans\task\_stage_recogn.py", line 62, in recogn

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

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

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

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

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

videotrans.configure.excepts.VideoTransError: mkl_malloc: failed to allocate memory:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 182, in faster_whisper
File "faster_whisper\transcribe.py", line 1851, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1190, in generate_segments
File "faster_whisper\transcribe.py", line 1400, in encode
RuntimeError: mkl_malloc: failed to allocate memory
cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: D:/Backup/Documents/MEGA下载/Fabervaale – Blood,Sweat & Scalping Q1/1. Recorded Sessions/9. Live session 17 Feb 2026.mp4,
输出结果保存到文件夹: D:/Backup/Documents/MEGA下载/Fabervaale – Blood,Sweat & Scalping Q1/1. Recorded Sessions/_video_out/9. Live session 17 Feb 2026-mp4,
临时文件夹: D:/BaiduNetdiskDownload/d/tmp/12352/aa296d5539
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:繁体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19044-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/d

1 Replies

mkl_malloc: failed to allocate memory 表示系统内存不足,faster-whisper 在 CPU 模式下无法继续分配内存。

解决方法按以下顺序尝试:

  1. 关闭其他占用内存的程序,尤其是浏览器、大型软件。若同时翻译多个视频,在 菜单→工具→高级选项→通用设置→批量翻译视频时每批数量 中设为 1,避免并发任务挤占内存。
  2. 降低识别模型大小:将 faster-whisper 模型由 large-v3-turbo 改为 mediumsmall,显着降低内存占用。
  3. 检查虚拟内存与磁盘空间:确保系统页面文件(虚拟内存)足够大,且存放临时文件的磁盘有充足剩余空间(建议至少保留 10GB 以上)。
  4. 将视频和输出目录移动到简短的纯英文路径,例如 D:\videos\test.mp4,避免中文、空格、& 等特殊字符干扰。
  5. 如果电脑有 NVIDIA 显卡,建议勾选 CUDA加速,能大幅降低 CPU 内存压力;否则在 菜单→工具→高级选项→通用设置→CPU同时任务数 中设为 1,保存后重启软件。

若以上方法仍无法解决,请提供软件安装目录下 logs/ 文件夹中最新日志的完整内容,以便进一步分析。

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

Dondate via PayPal

Related resource