Live data from Hacker News

FFmpeg 8.0 adds Whisper support

code.ffmpeg.org

71–80 of 341 posts

Re: FFmpeg 8.0 adds Whisper support

#71
post #29
post #17

Earlier quoted context omitted.

yep, there's a c++ implementation to run it https://github.com/ggml-org/whisper.cpp

Isn't WhisperX the canonical choice for running Whisper?

While whisper and whisperx is python implementations, the whisper.cpp wins the benchmarks.

Re: FFmpeg 8.0 adds Whisper support

#72

Earlier quoted context omitted.

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 m…

so if "I scream" is in one chunk, and "is the best dessert" is in the next, then there is no way to edit the first chunk to correct the mistake? That seems... suboptimal! I don't think other streaming transcription services have this issue since, whilst they do chunk up the input, past chunks can still be edited. They tend to use "best of N" decoding, so there are always N possible outputs, each with a probability as…

Attention is all you need, as the transformative paper (pun definitely intended) put it.

Unfortunately, you're only getting attention in 3 second chunks.

Re: FFmpeg 8.0 adds Whisper support

#73
post #69

I know nothing about Whisper, is this usable for automated translation? I own a couple very old and as far as I'm aware never translated Japanese movies. I don't speak Japanese but I'd love to watch them. A couple years ago I had been negotiating with a guy on Fiver to translate them. At his usual rate-per-minute of footage it would have cost thousands of dollars but I'd negotiated him down to a couple hundred before…

Yep, whisper can do that. You can also try whisperx (https://github.com/m-bain/whisperX) for a possibly better experience with aligning of subtitles to spoken words.

Re: FFmpeg 8.0 adds Whisper support

#74
post #9

Earlier quoted context omitted.

Took my iPhone 12 Mini a whole of 0.1 seconds to pass it. What hardware/OS are you using?

Took me zero seconds to be blocked with invalid response

It also instantly blocks me on GrapheneOS, both Firefox and Vanadium. Very odd, as I've never had an issue with Anubis before.

Re: FFmpeg 8.0 adds Whisper support

#76

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…

I recommend having a look at 16.3 onward here if you're curious about this: https://web.stanford.edu/~jurafsky/slp3/16.pdf

I'm not familiar with Whisper in particular, but typically what happens in an ASR model is that the decoder, speaking loosely, sees "the future" (i.e. the audio after the chunk it's trying to decode) in a sentence like this, and also has the benefit of a language model guiding its decoding so that grammatical productions like "I like ice cream" are favored over "I like I scream".

Re: FFmpeg 8.0 adds Whisper support

#78
post #44

Earlier quoted context omitted.

You usually delete silence before using something like whisper.

This is designed for real time use too. And in such cases, you couldn’t delete the silence before use.

The ffmpeg implementation might be the example was not.

Re: FFmpeg 8.0 adds Whisper support

#79
post #9

Earlier quoted context omitted.

Took my iPhone 12 Mini a whole of 0.1 seconds to pass it. What hardware/OS are you using?

Took about 30 secs for me (5 yr old intel cpu). Looked like there was a progress bar, but it didn't progress. Maybe the difficulty varies depending on IP address?

> Maybe the difficulty varies depending on IP address?

I'm currently roaming in Finland with a Spanish SIM so would have expected the opposite in that case.

Re: FFmpeg 8.0 adds Whisper support

#80
post #69

I know nothing about Whisper, is this usable for automated translation? I own a couple very old and as far as I'm aware never translated Japanese movies. I don't speak Japanese but I'd love to watch them. A couple years ago I had been negotiating with a guy on Fiver to translate them. At his usual rate-per-minute of footage it would have cost thousands of dollars but I'd negotiated him down to a couple hundred before…

May I ask which movies? I'm just curious
Post reply on HN