[FFmpeg-devel] [PATCH] Add detail to the documentation for ffmpeg -map.

Mike Scheutzow mike.scheutzow
Mon Feb 28 15:36:55 CET 2011


Mike Scheutzow wrote:
> Stefano wrote:
>> +For example, to select stream 2 from input file @file{A.mov}
>> +(specified by the identifier "0.2"), and stream 6 from input
>> + at file{B.mov} (specified by the identifier "0.6"), and copy them to
>> +output file @file{out.mov}:
>> + at example
>> +ffmpeg -i A.mov -i B.mov -vcodec copy -acodec copy out.mov -map 0.2 
>> -map 1.6
>> + at end example
> 
> I don't understand what you mean by "identifier 0.6".
> 
> It's confusing to refer to the same thing as both 0.6 and 1.6.
> 
> Other than this, ok by me.


> + at example
> +ffmpeg -i INPUT OUTPUT -map 0.1
> + at end example

I take back my "ok". The first example only works for some input files.

With an input file of video 0.0 and audio 0.1, the first example fails 
with this message:

"Number of stream maps must match number of output streams"

ffmpeg thinks the number of output streams is 2.


Mike Scheutzow



More information about the ffmpeg-devel mailing list