#4301 TaskCfgSTT(is_cuda=True, uuid='5a504ecb90', cache_folder='D:/win-pyvideotrans-v3.99-420/tmp/11380/5a504ecb90', target_di

38.135* Posted at: 4 hours ago 👁11

语音识别阶段出错 [Faster-Whisper-XXL.exe] 当前Faster-Whisper-XXL无法在打包版中使用,请源码部署或单独使用Faster-Whisper-XXL转录
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 85, in _external_cmd_with_wrapper
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['D:/Faster-Whisper-XXL/faster-whisper-xxl.exe', 'D:/win-pyvideotrans-v3.99-420/tmp/11380/5a504ecb90/a1080hd.com@h_1270ccvr00037.part1-1777205189.3656893.wav', '-pp', '-f', 'srt', '-l', 'ja', '--model', 'large-v3', '--output_dir', 'D:/win-pyvideotrans-v3.99-420/output/recogn']' returned non-zero exit status 3221225786.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 116, in recogn
File "videotrans\configure\_base.py", line 89, in _external_cmd_with_wrapper
RuntimeError: 当前Faster-Whisper-XXL无法在打包版中使用,请源码部署或单独使用Faster-Whisper-XXL转录
TaskCfgSTT(is_cuda=True, uuid='5a504ecb90', cache_folder='D:/win-pyvideotrans-v3.99-420/tmp/11380/5a504ecb90', target_dir='D:/win-pyvideotrans-v3.99-420/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/win-pyvideotrans-v3.99-420/output/recogn/a1080hd.com@h_1270ccvr00037.part1.srt', target_wav=None, target_wav_output=None, name='H:/mid3/a1080hd.com@h_1270ccvr00037.part1.mp4', noextname='a1080hd.com@h_1270ccvr00037.part1', basename='a1080hd.com@h_1270ccvr00037.part1.mp4', ext='mp4', dirname='H:/mid3', shound_del_name=None, detect_language='ja', recogn_type=14, model_name='large-v3', shibie_audio='D:/win-pyvideotrans-v3.99-420/tmp/11380/5a504ecb90/a1080hd.com@h_1270ccvr00037.part1-1777205189.3656893.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.99-420

1 Replies

Faster-Whisper-XXL 作为外部独立程序,在 PyInstaller 打包的 .exe 中运行时会因环境隔离、依赖缺失等原因无法正常调用。该渠道仅支持在源码部署下使用,或将其作为独立工具先转录出字幕再导入。

解决方案(二选一)

  1. 改用源码部署运行 pyVideoTrans

    • 按照官方文档 Mac/LinuxWindows 源码部署(需自行查阅)执行 uv sync 并启动 uv run sp.py,之后即可正常调用 Faster-Whisper-XXL。
  2. 单独使用 Faster-Whisper-XXL 转录,然后导入字幕

    • 在终端中手动执行类似命令:
      D:/Faster-Whisper-XXL/faster-whisper-xxl.exe 音频文件.wav -pp -f srt -l ja --model large-v3 --output_dir 输出目录
    • 得到 SRT 字幕后,在 pyVideoTrans 主界面点击「选择音频或视频」右侧的 「导入已有字幕」 功能,直接使用该字幕进行后续翻译和配音。

日志分析
Runtime Error: 当前Faster-Whisper-XXL无法在打包版中使用 即为最终提示,exit status 3221225786 是 Windows 下的异常退出码,与调用环境相关。

请查阅相关文档:

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.

Related resource