Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whisper-cpp.exe 应用程序错误 #273

Open
mzautumn opened this issue Jan 25, 2025 · 1 comment
Open

whisper-cpp.exe 应用程序错误 #273

mzautumn opened this issue Jan 25, 2025 · 1 comment
Labels
question Further information is requested

Comments

@mzautumn
Copy link

🤔 问题描述 Problem Description

===========转录任务开始===========
时间:2025-01-25 19:49:11.548808
开始转换音频
转换为音频执行命令: ffmpeg -i \u-nas-ba9x03k0\media\AV\多人参演\世良あさか,穂高ひな,田中ねね\SVDVD-810\SVDVD-810.mp4 -map 0:a -ac 1 -ar 16000 -af aresample=async=1 -y C:\Users\admin\AppData\Local\VideoCaptioner\work-dir\SVDVD-810\【Audio】SVDVD-810.wav
开始语音转录
找到模型文件: C:\Users\admin\AppData\Local\VideoCaptioner\AppData\models\ggml-large-v2.bin
完整命令行参数: whisper-cpp -m C:\Users\admin\AppData\Local\VideoCaptioner\AppData\models\ggml-large-v2.bin -f C:\Users\admin\AppData\Local\Temp\bk_asr\tmp32di4w1m\audio.wav -l ja --output-srt
音频总时长: 14285 秒
2025-01-25 19:52:07 - whisper_asr - ERROR - 处理失败
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\VideoCaptioner\app\core\bk_asr\WhisperASR.py", line 132, in _run
raise RuntimeError(f"WhisperCPP 执行失败: {stderr}")
RuntimeError: WhisperCPP 执行失败:
2025-01-25 19:52:07 - transcript_thread - ERROR - 转录过程中发生错误: 生成 SRT 文件失败: WhisperCPP 执行失败:
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\VideoCaptioner\app\core\bk_asr\WhisperASR.py", line 132, in _run
raise RuntimeError(f"WhisperCPP 执行失败: {stderr}")
RuntimeError: WhisperCPP 执行失败:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\VideoCaptioner\app\core\thread\transcript_thread.py", line 130, in run
asr_data = self.asr.run(callback=self.progress_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\VideoCaptioner\app\core\bk_asr\BaseASR.py", line 73, in run
resp_data = self._run(callback, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\VideoCaptioner\app\core\bk_asr\WhisperASR.py", line 145, in _run
raise RuntimeError(f"生成 SRT 文件失败: {str(e)}")
RuntimeError: 生成 SRT 文件失败: WhisperCPP 执行失败:

@mzautumn mzautumn added the question Further information is requested label Jan 25, 2025
@philpw99
Copy link

看来就是 whisper-cpp 本身出错,试试用FasterWhisper 吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants