diff --git a/index.html b/index.html index cdb3bda..46195e7 100644 --- a/index.html +++ b/index.html @@ -117,6 +117,34 @@ + + + +
+

Stream mapping

+

Stream mapping is the practice of defining which of the streams (e.g., video or audio tracks) present in an input file will be present in the output file. FFmpeg recognises five stream types:

+ +

Mapping is achieved by use of the -map flag, followed by an action of the type file_number:stream_type[:stream_number]. Numbering is zero-indexed, and it's possible to map by stream type and/or overall stream order within the input file. For example:

+ +

To map all streams in the input file to the output file, use -map 0. However, note that not all container formats can include all stream types: for example, .mp4 cannot contain timecode.

+

When no mapping is specified in an ffmpeg command, the default for video files is to take just one video and one audio stream for the output: other stream types, such as timecode or subtitles, will not be copied to the output file by default. If multiple video or audio streams are present, the best quality one is automatically selected by FFmpeg.

+

For more information, check out the FFmpeg wiki Map page, and the official FFmpeg documentation on -map.

+ +
+ +

Change container (rewrap)