Skip to content

feat(cli): allow ffmpeg decoding from stdin#3641

Open
marco6 wants to merge 1 commit intoggml-org:masterfrom
marco6:ffmpeg-decode-from-stdin
Open

feat(cli): allow ffmpeg decoding from stdin#3641
marco6 wants to merge 1 commit intoggml-org:masterfrom
marco6:ffmpeg-decode-from-stdin

Conversation

@marco6
Copy link

@marco6 marco6 commented Feb 3, 2026

This PR aims at allowing the CLI to read ogg, mp3 and other ffmpeg-decoded formats from pipe as well.

Today, you can do whisper.cpp -f audio.mp3 but you can't do cat audio.mp3 | whisper.cpp -f - which seems uneven.

As a side note, it also removes a (probably not relevant) memory leak (audio buffer allocated from convert_frame was never released).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant