tigros / Whisperer

Batch speech to text using OpenAI's whisper.
264 stars 24 forks source link

【Bug】再次出现处理视频不生成字幕文件,只生成了wav文件,而且也没用报错的问题了 #82

Open kKevin0001 opened 3 weeks ago

kKevin0001 commented 3 weeks ago

这次我把操作过程录了下来,并且把测试使用的视频文件也打包进去了

下载地址:https://share.feijipan.com/s/aAD0auPh

tigros commented 3 weeks ago

as a test you can remove Chinese chars from file name, pretty sure it will work.

the zip you sent contains garbled characters instead of Chinese, i guess my system can't handle it since it's English, yet it works fine in whisperer even with those chars.

i might have to set up a Chinese Windows idk. one time i did that in vmware but it affected all my windows 10's since i logged in ha! i'll have to not login next time i try that!

kKevin0001 commented 3 weeks ago

我想和文件名没有关系,我把视频名改成了英文字符“a”,现在它的名字是“a.mp4”,在这台电脑上还是只能生成wav文件,我把包含中文的文件名的视频发到另一台电脑上,同样使用这个工具生成srt文件,这次成功了

另外,我把重命名后的文件和昨天录制的视频重新打包了,名字用的都是英文,这次应该不会有乱码了

下载地址:https://share.feijipan.com/s/bSDMTTGM

作为测试,您可以从文件名中删除中文字符,非常确定它会起作用。

您发送的 zip 包含乱码字符而不是中文,我想我的系统无法处理它,因为它是英文的,但即使有这些字符,它在 Whisperer 中也能正常工作。

我可能必须设置一个中文 Windows idk。有一次我在 VMware 中这样做了,但它影响了我登录后的所有 Windows 10 哈!下次尝试时,我不得登录!

tigros commented 3 weeks ago

try the latest version it should tell you no files were created https://github.com/tigros/Whisperer/releases/download/3.6/Whisperer.zip

are you using an antivirus? make sure main.exe works from cmd prompt.

kKevin0001 commented 3 weeks ago

尝试最新版本,它应该会告诉您没有创建任何文件 https://github.com/tigros/Whisperer/releases/download/3.6/Whisperer.zip

您在使用防病毒软件吗?确保 main.exe 在 cmd 提示符下工作。

我刚才下载了最新版本,表现和之前是一样的 我使用的是windows10自带的windows安全防护中心(Microsoft Defender),刚才我把安全设置都关上了,软件在这台电脑上的表现还是一样的

如何确保main.exe在cmd提示符下工作呢? 我在cmd下运行main.exe,输出是正常的 image

tigros commented 3 weeks ago

that's all i wanted to see, but might as well try converting something https://github.com/tigros/Whisperer/issues/79#issuecomment-2433587192

can't think of anything else right now.

kKevin0001 commented 3 weeks ago

that's all i wanted to see, but might as well try converting something #79 (comment)

can't think of anything else right now.

手动使用main.exe运行是正常的 我的命令是main.exe --language zh --output-srt --max-context 0 --model "D:\Program Files\WhisperDesktop\Modal\ggml-model-whisper-large-v2.bin" "C:\Users\Kevin\Desktop\test_video\a.wav" 下面是运行的结果,第一张是开始,第二张是结束 PixPin_2024-10-30_23-47-56 PixPin_2024-10-30_23-48-14

tigros commented 3 weeks ago

if you're the least bit interested in programming maybe you could install VS 2017 and put breakpoints here and there to see what's going on. are you open to that?

tigros commented 3 weeks ago

i just noticed something, in your video it says Language: chinese it should say Chinese.

so ToUpper function doesn't work on Chinese Windows, very odd! never heard of that.

this may be the root cause of your problems.

tigros commented 3 weeks ago

replaced v3.6 just now with use of ToUpperInvariant instead, maybe that will help your situation, no guarantee.

if not i can work with you using message boxes etc to try and debug.

i may never use ToUpper again! heh

kKevin0001 commented 3 weeks ago

replaced v3.6 just now with use of ToUpperInvariant instead, maybe that will help your situation, no guarantee.

if not i can work with you using message boxes etc to try and debug.

i may never use ToUpper again! heh

🥳这个bug解决了!

kKevin0001 commented 3 weeks ago

@tigros 在另一台电脑上又出现了这个问题,使用最新版软件操作的 这个是操作过程的录屏

tigros commented 3 weeks ago

try clicking Go a few times until it works. i saw something here yesterday, it processed 11 out 12, clicked Go again then it worked.

that would be a Windows or .net bug introduced by a recent update.

kKevin0001 commented 3 weeks ago

try clicking Go a few times until it works. i saw something here yesterday, it processed 11 out 12, clicked Go again then it worked.

that would be a Windows or .net bug introduced by a recent update.

点击Go以后,等4秒钟就变回Cancel了,刚刚我尝试了20次

tigros commented 3 weeks ago

you let it finish right? Don't click cancel.. maybe try other files, no Chinese chars in folder or file names. try English video too i guess.

kKevin0001 commented 3 weeks ago

you let it finish right? Don't click cancel.. maybe try other files, no Chinese chars in folder or file names. try English video too i guess.

我没有点击Cancel,是它自动变成Cancel的。 现在文件夹以及文件名都是全英文的,包括上面提到的20次尝试。 我在youtube下载了一个英文视频,软件中的语言改成了English,尝试了几次,还是和之前一样,点击Go之后4秒就自动变成Cancel了,只生成了wav文件

image

tigros commented 3 weeks ago

i just meant you click Go then wait until it changes back to Go before clicking again.. i guess you did that.

so here's an exe that does a bit of logging, put it in same folder as whisperer and send whisperer.log when done.

maybe click Go 3 times.

whisperer_log.zip

kKevin0001 commented 3 weeks ago

i just meant you click Go then wait until it changes back to Go before clicking again.. i guess you did that.

so here's an exe that does a bit of logging, put it in same folder as whisperer and send whisperer.log when done.

maybe click Go 3 times.

whisperer_log.zip

我从未主动点击过Cancel 这次我点击了5次Go whisperer.log

tigros commented 3 weeks ago

it seems something is eating all your GPU memory.

try running GPUmembyproc.exe from cmd prompt in whisperer folder, what does it show?

also you should test smaller models like base/small/medium.

kKevin0001 commented 3 weeks ago

it seems something is eating all your GPU memory.

try running GPUmembyproc.exe from cmd prompt in whisperer folder, what does it show?

also you should test smaller models like base/small/medium.

这台电脑使用1.12版本的WhisperDesktop是可以正常处理出srt字幕的 我也按照你说的尝试在Whisperer中使用small模型,也不行 (有时候是正常的,无论使用small、medium、large模型,有时候就不行;能用Whisperer正常处理的时候,能看到GPU内存明显的变动,不能处理的时候GPU内存无变动)

第一张图是运行GPUmembyproc.exe输出的内容 第二张图是使用WhisperDesktop处理的结果(large模型) 第三张是使用Whisperer运行到第3秒时候的截图(CPU内存没涨,到第4秒,按钮就自动变成Go了) 第四张是使用WhisperDesktop处理文件的截图(GPU内存涨了,是在截完第三张图之后马上打开WhisperDesktop进行转写然后截图的)

1 2 3 4

tigros commented 3 weeks ago

Hi,

Please unzip to whisperer folder and send the log, only need to click Go once.

You did find an edge case where conditions are met for it to think the job is finished, but it's just waiting for more GPU memory, not fixed yet.

If I fixed it it would be stuck on Cancel waiting forever for memory, maybe popup a message after a minute..

whisperer_log.zip

kKevin0001 commented 3 weeks ago

你好

请解压到 whisperer 文件夹并发送日志,只需点击一次 Go。

您确实发现了一个边缘情况,其中满足条件,它认为工作已完成,但它只是在等待更多的 GPU 内存,尚未修复。

如果我修复了它,它会一直卡在取消等待内存,也许一分钟后会弹出一条消息..

whisperer_log.zip

whisperer.log

tigros commented 3 weeks ago

looks like the .srt exists so it skipped over some logging, you can just uncheck the "Skip if output exists", please try again.

kKevin0001 commented 3 weeks ago

looks like the .srt exists so it skipped over some logging, you can just uncheck the "Skip if output exists", please try again.

哦!确实!我忘了把另一个软件生成的srt文件删除了。 现在我把srt文件删除了,重新操作,现在可以了,GPU内存也涨了

image

tigros commented 3 weeks ago

hmm can i see the log anyway? maybe keep using this version and send the log again next time it happens.

looks like an intermittent issue with perf counters.. can always try C:\Windows\SysWOW64\LODCTR /R from admin cmd prompt, couldn't hurt.

kKevin0001 commented 3 weeks ago

C:\Windows\SysWOW64\LODCTR /R

hmm can i see the log anyway? maybe keep using this version and send the log again next time it happens.

looks like an intermittent issue with perf counters.. can always try C:\Windows\SysWOW64\LODCTR /R from admin cmd prompt, couldn't hurt.

whisperer.log image