#6119 Subprocess Error: expected string or bytes-like objectTraceback (most recent call last):

154.26* Posted at: 7 hours ago

Subprocess Error: expected string or bytes-like object
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\_stage_recogn.py", line 62, in recogn
File "videotrans\recognition\__init__.py", line 205, in run
File "videotrans\recognition\_base.py", line 92, in run
File "videotrans\recognition\_whisper.py", line 38, in _exec
File "videotrans\recognition\_whisper.py", line 124, in _faster
File "videotrans\configure\base.py", line 272, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: expected string or bytes-like object

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/23756/Downloads/720p.mp4,
输出结果保存到文件夹: F:/翻译视频/720p-mp4,
临时文件夹: F:/pyvideotrans/tmp/8224/d5d8cbed29
未选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Hy-MT2-1.8B(本地内置),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:F:/pyvideotrans

1 Replies

该错误是由于 Faster-Whisper 在子进程执行时遇到了参数类型不正确导致的,通常与以下因素有关:模型文件损坏、CUDA 环境配置异常、或输入参数类型不匹配。

解决步骤

  1. 更新软件至最新版本 v4.07
    您当前使用的是 v4.06,该问题可能已在后续版本修复。请下载最新完整版覆盖安装。
  2. 更换语音识别模型
    当前您使用的是 large-v3-turbo 模型。请尝试切换为 large-v3,该模型更稳定。
    操作:在主界面「语音识别」渠道保持 faster-whisper(本地内置),将「模型」改为 large-v3
  3. 临时关闭 CUDA 加速测试
    取消勾选 CUDA加速,使用 CPU 模式运行一次。若成功,则问题与 CUDA/显存相关。
    如果仍失败,请检查 NVIDIA 驱动及 CUDA 12.8 是否正确安装,并确认 cuDNN 版本 ≥ 9.11。
  4. 检查视频文件和路径

    • 视频路径 C:/Users/23756/Downloads/720p.mp4 存在中文用户名,建议将视频移至纯英文路径(如 D:/video/test.mp4)再试。
    • 确保视频文件未损坏,可先用其他播放器确认能正常播放。
  5. 重置模型文件
    模型可能因下载中断而损坏。请手动删除 F:/pyvideotrans/models/models--Systran--faster-whisper-large-v3-turbo/ 文件夹,重新启动软件让程序自动重新下载。

如果以上步骤均无效,请提供 logs/ 目录下最新的日志文件(复制末尾约 30 行内容),以便进一步定位。

Post Your Reply
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

Dondate via PayPal

Related resource