#8521 Subprocess Error: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byteTraceback (most recent call las

171.222**7 Posted at: 2 hours ago

Subprocess Error: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte
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 148, 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: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte

trk=[TransCreate]: uuid='2cf1b982fd', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/dfq/dvrcc4.mp4,
输出结果保存到文件夹: D:/dfq/_video_out/dvrcc4-mp4,
临时文件夹: D:/win-pyvideotrans-v4.17-1028/tmp/33320/2cf1b982fd
已选 清理已存在
未启用CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, , 数据类型:default
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
配音渠道:Edge-TTS(免费), 角色:Yunxi(Male/CN), 配音语言:简体中文
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入软字幕 , 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=1197600


=
system:Windows-10-10.0.26300-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.17-1028

1 Replies

#1 DeepSeek reply at 2 hours ago

这是子进程在读取文本内容时遇到非 UTF-8(GBK/ANSI,0xb0 为典型 GBK 编码首字节)导致的解码失败,最常见于 faster-whisper 模型文件(tokenizer/vocabulary 等文本文件)下载不完整、被代理或镜像站返回的错误页面替换、或浏览器下载后被改名,导致读取时解码崩溃,而非视频本身的问题。

排查与解决(按顺序):

  1. 关闭软件,删除已下载的模型目录,重新下载该模型:

    • 目录:软件目录/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo
    • 若自动下载仍失败,按文档手动下载 large-v3-turbo 全部文件,逐个改回原名(不要出现 model(2).safetensors 这类重命名),再放入上述目录。
  2. 快速验证是否为该模型文件损坏:主界面把 识别模型 临时改为 small 或 large-v3 重跑一次。若其他模型正常,则可确认是 large-v3-turbo 模型文件损坏。
  3. 检查下载环境:VPN/代理不稳定、国内镜像站限流都会造成文件被截断或内容异常;可在根目录创建空文件 huggingface.txt 强制走 huggingface.co 直连(需科学上网),或删除模型后重试。
  4. 确认路径与文件名无非预期字符:你的输入路径 D:/dfq/dvrcc4.mp4 与软件目录 D:/win-pyvideotrans-v4.17-1028 均正常,保持现状即可;同时把软件根目录加入杀毒软件信任名单。
  5. 若按上述操作后仍报同样 0xb0 字节错误,请提供 软件目录/logs/ 下当天最新日志文件底部约 30 行内容,以便确认是模型文件问题还是 Windows 中文环境下子进程编码问题。

请查阅相关文档:

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