#8406 Subprocess Error: module 'decoders' has no attribute 'DecodeStream'Traceback (most recent call last):

142.202**7 Posted at: 1 hour ago

Subprocess Error: module 'decoders' has no attribute 'DecodeStream'
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: Subprocess Error: module 'decoders' has no attribute 'DecodeStream'

trk=[TransCreate]: uuid='82a2643056', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/PC/Desktop/相机胶卷/Shaqtin' A Fool Tyler Herro's grab-n-go, Joel Embiid stays grounded & Gonzalez travel NBA Tip-Off.mp4,
输出结果保存到文件夹: C:/Users/PC/Desktop/相机胶卷/_video_out/Shaqtin' A Fool Tyler Herro's grab-n-go, Joel Embiid stays grounded & Gonzalez travel NBA Tip-Off-mp4,
临时文件夹: D:/win-videotrans/tmp/8024/82a2643056
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语,
发音语言和目标语言相同,不翻译字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕 , precent=4, hasend=False, should_recogn=True, should_trans=False, should_dubbing=False, 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=227694


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

1 Replies

#1 DeepSeek reply at 1 hour ago

报错 module 'decoders' has no attribute 'DecodeStream' 属于底层音频解码库(PyAV 的 av.decoders 模块)损坏或版本不匹配导致的,与 faster-whisper 本身的模型或参数无关。该错误发生在子进程加载 av 库解码音频时。

解决方案(按顺序尝试):

  1. 重新下载 v4.16 完整包并完整解压覆盖到当前安装目录,重点确保 _internal 文件夹和 videotrans 文件夹都被覆盖,不要只替换 sp.exe。
  2. 在旧版本目录的 _internal 文件夹内搜索所有 __pycache__,将搜索到的文件夹全部删除,然后再覆盖新的完整包。
  3. 确认软件目录路径为纯英文、无空格、无中文(如 D:/win-videotrans 可以)。
  4. 如果你是源码部署,执行 uv add av --upgrade 更新 av 库后重试;若是预打包版,则只能通过重新下载完整包修复。

请查阅相关文档:

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