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

2406**ea9a Posted at: 2 hours 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 64, 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 136, 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='ee9c2c75d6', proxy_str='http://127.0.0.1:7890', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/admin/Desktop/6寸电链锯链轮8寸锂电锯高速锯链轮9齿链轮8_10内孔电链锯05191_-_阿里巴巴/6寸电链锯链轮8寸锂电锯高速锯链轮9齿链轮8_10内孔电链锯05191.mp4,
输出结果保存到文件夹: C:/Users/admin/Desktop/6寸电链锯链轮8寸锂电锯高速锯链轮9齿链轮8_10内孔电链锯05191_-_阿里巴巴/_video_out/6寸电链锯链轮8寸锂电锯高速锯链轮9齿链轮8_10内孔电链锯05191-mp4,
临时文件夹: E:/win-videotrans-v3.84/tmp/13108/ee9c2c75d6
未选 清理已存在
未启用CUDA加速
语音识别↓:faster-whisper(Built-in), large-v3-turbo, 发音语言: zh-cn, , 数据类型:default
翻译渠道↓:Google(免费),原始语言:zh-cn,目标语言:ru, 未选 发送完整字幕, settings.get('trans_thread')=20, settings.get('aitrans_thread')=50
配音渠道↓:Edge-TTS(免费), 角色:Dmitry(Male/RU), 配音语言:ru, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 不添加字幕
代理地址: http://127.0.0.1:7890, 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=15200


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.84

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 faster-whisper 依赖库 decoders 版本不匹配导致的子进程初始化失败,并非视频文件或代理问题。根源通常是补丁包覆盖升级不完整,或旧版本残留的缓存文件 (__pycache__) 与新版本依赖混用。注意你的运行目录名为 E:/win-videotrans-v3.84,却运行 v4.17,基本可以确认是补丁覆盖到旧目录导致的依赖错乱。

解决方案(按优先级):

  1. 最稳妥:全新完整包重装

    • 到官网下载最新 2.6GB+ 的完整包(不要下载 260MB 补丁包)。
    • 解压到全新的纯英文短路径,例如 D:\pyVideoTrans,不要覆盖到 E:/win-videotrans-v3.84 这个旧目录。
    • 如果你的密钥等配置需要保留,可先把旧目录 videotrans\ 下的 params.json、cfg.json 复制到新目录同名位置。
  2. 若坚持在当前目录修复

    • 确认补丁包中的所有文件和文件夹都已覆盖,尤其是 _internal 和 videotrans 文件夹,不能只覆盖 sp.exe。
    • 在 _internal 文件夹内搜索 __pycache__,删除搜索到的全部文件和文件夹,再重新覆盖补丁包。
    • 确认软件未在运行状态下覆盖文件。
  3. 辅助排查

    • 该错误出现在语音识别阶段,与 CUDA、模型下载、代理无关,无需修改识别参数。
    • 若修复后仍报此错误,请提供 logs/ 下最新日志底部约 30 行,以及 _internal 中 decoders 相关文件夹的实际版本信息。

请查阅相关文档:

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