[FFmpeg-user] Audio Stream Mapping issue

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 15 11:14:29 CET 2011


HI!

Tim Nicholson <tim.nicholson <at> bbc.co.uk> writes:

> According to http://ffmpeg.org/ffmpeg.html#Main-options
> "ffmpeg -i INPUT -map 0 -c:v libx264 -c:a copy OUTPUT
> encodes all video streams with libx264 and copies all audio streams"
> 
> However I have an mxf file with 1 video and 4 audio streams I am trying 
> to rewrap as a mov where I seem unable to get more than a single audio 
> stream copied.
> 
> I have tried the following command lines:-
> 
> ffmpeg -i in.mxf -vcodec copy -acodec copy tim2.mov
> 
> ffmpeg -i in.mxf -vcodec copy -acodec copy -ac 4 tim2.mov
> 
> ffmpeg -i in.mxf -vcodec copy -c:a copy tim2.mov
> 
> ffmpeg -i in.mxf -vcodec copy -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:a:3 
> copy  tim2.mov
> 
> fmpeg -i in.mxf -vcodec copy -ac 4 -c:a:0 copy -c:a:1 copy -c:a:2 copy 
> -c:a:3 copy  tim2.mov

Afaict, all command lines you list omit "-map 0" meaning you ask ffmpeg NOT to
map all streams into the output file (but exactly one video and one audio
stream).
Or do I miss something?

Carl Eugen



More information about the ffmpeg-user mailing list