Changes between Version 23 and Version 24 of Map
- Timestamp:
- Aug 8, 2020, 6:20:01 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Map
v23 v24 9 9 10 10 The [https://ffmpeg.org/ffmpeg.html#Advanced-options -map] option is used to choose which streams from the input(s) should be included in the output(s). The `-map` option can also be used to exclude specific streams with ''negative mapping''. 11 12 [[Image(map.png)]] 13 14 The commands in the diagram above will select the video from `input0.mp4` and the 3rd audio stream from `input1.mkv` to `output.mp4`. The commands do the same thing, but use different syntax to map streams: 15 16 * The top command does not use any ''stream specifiers''. This is an absolute method of mapping and will choose a specific stream regardless of type. 17 * The bottom command includes [https://ffmpeg.org/ffmpeg.html#Stream-specifiers-1 stream specifiers] (`v` for video, `a` for audio) to limit the streams to a specific type. 18 19 Translation: 20 21 * `-map 1:3` refers to ''"second input:fourth stream"''. 22 * `-map 1:a:2` refers to ''"second input:audio only:third audio stream"''. 11 23 12 24 = Default behavior = … … 57 69 * `-map 3:s:4` From input index !#3 (the 4th input) select subtitle stream index !#4 (the fifth subtitle stream). 58 70 * `-map 0 -map -0:s` Will select all streams from input index !#0 (the 1st input) except subtitles. The `-` indicates ''negative mapping''. 59 60 = Diagram =61 62 [[Image(map.png)]]63 64 These two commands in the diagram above do the same thing, but use two different methods to map streams. The example commands in the diagram above will both select the video from `input0.mp4` and the 3rd audio stream from `input1.mkv` to `output.mp4`.65 66 * The top command does not use any stream specifiers. This is an absolute method of mapping and will choose the specific desired stream regardless of type.67 * The bottom command includes [https://ffmpeg.org/ffmpeg.html#Stream-specifiers-1 stream specifiers] to limit the streams to a specific type. With this method the `stream_index` only refers to the stream type as specified by `stream_type_specifier`.68 69 In the example commands `-map 1:3` refers to ''"second input:fourth stream"'', and `-map 1:a:2` refers to ''"second input:audio only:third audio stream"''.70 71 71 72 = Examples =
