Glam Prestige Journal

Bright entertainment trends with youth appeal.

ffmpeg how to extract audio from mkv to ogg. My mkv file have 2 audio track. I use this command.

ffmpeg -i test.mkv -vn -acodec copy audio.ogg

It show error like this.

[ogg @ 00000186dcba1040] Unsupported codec id in stream 0
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping: Stream #0:1 -> #0:0 (copy) Last message repeated 1 times

How to extract audio from mkv to ogg.

2

1 Answer

try

ffmpeg -y -v error -stats -i test.mkv -vn -map 0:a:0 -acodec copy audio1.ogg -map 0:a:1 -acodec copy audio2.ogg

if still not working remove -acodec copy

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy