#8166 :Traceback (most recent call last): File

89.185**8 Posted at: 1 hour ago

:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 916, in transcribe
File "faster_whisper\feature_extractor.py", line 215, in call
File "faster_whisper\feature_extractor.py", line 189, in stft
File "numpy\fft\_pocketfft.py", line 409, in rfft
File "numpy\fft\_pocketfft.py", line 70, in _raw_fft
MemoryError

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 141, in run
File "videotrans\recognition\_base.py", line 101, in run
File "videotrans\recognition\_whisper.py", line 39, in _exec
File "videotrans\recognition\_whisper.py", line 137, in _faster
File "videotrans\configure\base.py", line 277, in _new_process
videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 916, in transcribe
File "faster_whisper\feature_extractor.py", line 215, in call
File "faster_whisper\feature_extractor.py", line 189, in stft
File "numpy\fft\_pocketfft.py", line 409, in rfft
File "numpy\fft\_pocketfft.py", line 70, in _raw_fft
MemoryError

trk=[TransCreate]: uuid='72a3f96ca7', proxy_str='http://127.0.0.1:20809', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: G:/测试视频/皇上表弟说恕难从命10.15/皇上表弟说恕难从命10.15.mp4,
输出结果保存到文件夹: G:/测试视频/皇上表弟说恕难从命10.15/_video_out/皇上表弟说恕难从命10.15-mp4,
临时文件夹: D:/pyVideoTrans/tmp/37220/72a3f96ca7
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Roger(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:20809, 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=True
video_duration_ms=7416466


=
system:Windows-10-10.0.22631-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由系统内存(RAM)不足导致的 MemoryError。faster-whisper 在处理该时长约2小时的视频时,需要在内存中计算整段音频的 STFT 特征,内存分配失败,与显卡显存无关。

解决方案(按优先级尝试):

  1. 降低识别模型尺寸:将 faster-whisper(内置) 的模型从 large-v3-turbo 改为 medium 或 small(模型越小内存占用越低)。
  2. 减少内存消耗:进入 菜单 → 工具/选项 → 高级选项 → 语音识别参数,将 计算数据类型 改为 int8(最省内存),同时把 beam_size 和 best_of 都调为 1。
  3. 关闭其他占用内存的程序,并检查系统虚拟内存是否充足。若视频超过2小时,建议先分割为小段再翻译。
  4. 如果以上仍无法解决,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(底部约30行)以进一步分析。

请查阅相关文档:

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