Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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

ffmpeg -i INPUT -map 0 output
share|improve this answer
    
Is this a fairly new feature ? When I try it on Ubuntu 11.10, I get the following message: "Number of stream maps must match number of output streams" –  gabkdlly Jan 27 '12 at 13:42
    
First commit was 2011-10-20 git.videolan.org/?p=ffmpeg.git;f=doc/ffmpeg.texi;hb=d049257 –  Steven Penny Jan 28 '12 at 4:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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