ffmpeg kills my audio stream

1

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.

Simiil

Posted 2011-11-01T18:04:44.957

Reputation: 336

Answers

0

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

ffmpeg -i INPUT -map 0 output

Steven Penny

Posted 2011-11-01T18:04:44.957

Reputation: 7 294

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 – 2012-01-27T13:42:21.970

First commit was 2011-10-20 http://git.videolan.org/?p=ffmpeg.git%3Bf=doc/ffmpeg.texi%3Bhb=d049257

– Steven Penny – 2012-01-28T04:09:14.197