#7019 语音识别阶段出错[faster-whisper(内置)] Subprocess Error: module 'decoders' has no attribute 'DecodeStream'Traceback (most recent c

182.89**3 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(内置)] Subprocess Error: module 'decoders' has no attribute 'DecodeStream'
Traceback (most recent call last):

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

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

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

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

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

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

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

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

videotrans.configure.excepts.VideoTransError: Subprocess Error: module 'decoders' has no attribute 'DecodeStream'
[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': 148560, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: C:/Users/czh/Downloads/livestreamsmemes_2026-09-02-15-45-57_178833515751.mp4,
输出结果保存到文件夹: C:/Users/czh/Downloads/_video_out/livestreamsmemes_2026-09-02-15-45-57_178833515751-mp4,
临时文件夹: H:/老骚/win-videotrans-v3.83/tmp/16520/3a240c41fe
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:H:/老骚/win-videotrans-v3.83

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是 faster-whisper 的依赖库损坏或版本不匹配,通常由补丁包覆盖旧版导致部分依赖文件缺失/不兼容,或者 faster-whisper 模型文件下载不完整引起。

你的软件目录路径 H:/老骚/win-videotrans-v3.83 显示是从旧版本(v3.83)通过补丁包覆盖升级到 v4.11 的。知识库明确说明:若旧版本与当前最新版本相差较大,仅用补丁包覆盖可能出错,建议下载完整包重新解压后使用。

解决步骤(按优先级依次尝试):

  1. 重新下载完整版并覆盖
    前往 https://pyvideotrans.com/downpackage 下载 2.7GB 的完整版压缩包,解压到一个全新的全英文路径(如 D:\pyVideoTrans),不要覆盖到旧的 win-videotrans-v3.83 目录下。
  2. 删除已损坏的 faster-whisper 模型后重新下载
    进入软件目录下的 models 文件夹,删除 models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 这个文件夹(你用的是 large-v3-turbo),然后重新运行软件,让它自动重新下载模型。模型不完整也会引发这类底层模块报错。
  3. 检查硬盘空间
    确认 H: 盘和临时目录所在盘符有足够剩余空间(模型约需 6GB+),空间不足会导致模型文件截断损坏。
  4. 若仍报错,提供日志
    请打开软件目录下的 logs/ 文件夹,复制日期最新的日志文件底部约30行内容,以便进一步定位。
补充:你使用了 LLM重新断句,但这与当前报错无关,可先保持原配置,待模型修复后再试。

请查阅相关文档:

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