Live data from Hacker News

FFmpeg 8.0 adds Whisper support

code.ffmpeg.org

31–40 of 341 posts

Re: FFmpeg 8.0 adds Whisper support

#31
Can whisper do multilingual yet? Last time I tried it on some mixed dutch/english text it would spit out english translations for some of the dutch text. Strange bug/feature since from all appearances it had understood the dutch text perfectly fine.

Re: FFmpeg 8.0 adds Whisper support

#32

Does this have the ability to edit historic words as more info becomes available? Eg. If I say "I scream", it sounds phonetically identical to "Ice cream". Yet the transcription of "I scream is the best dessert" makes a lot less sense than "Ice cream is the best dessert". Doing this seems necessary to have both low latency and high accuracy, and things like transcription on android do that and you can see the adjusti…

Whisper works on 30 second chunks. So yes it can do that and that’s also why it can hallucinate quite a bit.

Re: FFmpeg 8.0 adds Whisper support

#33
post #27

I've been playing with whisper to try to do local transcription of long videos, but one issue I've found is that long (>15 seconds) spans without any speech tend to send it into a hallucination loops that it often can't recover from. I wonder if, with direct integration into ffmpeg, they will be able to configure it in a way that can improve that situation.

You usually delete silence before using something like whisper.

Re: FFmpeg 8.0 adds Whisper support

#34
post #7

I wonder if they'll be satisfied there or add a chunk of others now that they've started. Parakeet is supposed to be good? Should they add Voice Activity Detection? Are these separate filters or just making the whisper filter more fancy?

Voice Activity Detection support is already included.

Re: FFmpeg 8.0 adds Whisper support

#35

Can whisper do multilingual yet? Last time I tried it on some mixed dutch/english text it would spit out english translations for some of the dutch text. Strange bug/feature since from all appearances it had understood the dutch text perfectly fine.

Whisper-v3 works well for multi-lingual. I tried it with Dutch, German and English

Re: FFmpeg 8.0 adds Whisper support

#37

Does this have the ability to edit historic words as more info becomes available? Eg. If I say "I scream", it sounds phonetically identical to "Ice cream". Yet the transcription of "I scream is the best dessert" makes a lot less sense than "Ice cream is the best dessert". Doing this seems necessary to have both low latency and high accuracy, and things like transcription on android do that and you can see the adjusti…

Whisper works on 30 second chunks. So yes it can do that and that’s also why it can hallucinate quite a bit.

The ffmpeg code seems to default to three second chunks (https://ffmpeg.org/ffmpeg-filters.html#whisper-1):

    queue
    
         The maximum size that will be queued into the filter before processing the audio with whisper. Using a small value the audio stream will be processed more often, but the transcription quality will be lower and the required processing power will be higher. Using a large value (e.g. 10-20s) will produce more accurate results using less CPU (as using the whisper-cli tool), but the transcription latency will be higher, thus not useful to process real-time streams. Consider using the vad_model option associated with a large queue value. Default value: "3"

Re: FFmpeg 8.0 adds Whisper support

#39

Can whisper do multilingual yet? Last time I tried it on some mixed dutch/english text it would spit out english translations for some of the dutch text. Strange bug/feature since from all appearances it had understood the dutch text perfectly fine.

I found that it works quite well for Dutch+English as long as you use one of the larger models. But that may just be luck, I imagine mixing Italian and Swedish will have very different results.

Re: FFmpeg 8.0 adds Whisper support

#40
post #27

I've been playing with whisper to try to do local transcription of long videos, but one issue I've found is that long (>15 seconds) spans without any speech tend to send it into a hallucination loops that it often can't recover from. I wonder if, with direct integration into ffmpeg, they will be able to configure it in a way that can improve that situation.

You usually delete silence before using something like whisper.

I've heard that, but that doesn't sound like a useful approach for videos where (1) non-speech segments can have plenty of other sound (music, noise) and (2) you want timestamps to match up with the original video, like for subtitles. But maybe there are known mitigations for both of those issues that I'm not aware of. And if they do exist maybe they can be included in the ffmpeg whisper integration.
Post reply on HN