i am converting a bunch of avi videos to mkv, using simply ffmpeg -i "foo.avi" "foo.mkv". Now i have the problem, that in my output-mkv-file exists one video stream (fine) but only the first audio stream from my original file. I figured to map every stream manually with -map 0:1etc, but there has to be a way to tell ffmpeg to keep all streams in the original order? Thank you.


From FFmpeg doc
For example, to map ALL streams from the first input file to output

ffmpeg -i INPUT -map 0 output

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.