]> git.sesse.net Git - ffmpeg/commitdiff
doc/formats: add section describing stream specifiers
authorStefano Sabatini <stefasab@gmail.com>
Sat, 6 Jul 2013 08:27:19 +0000 (10:27 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 10 Jul 2013 22:35:35 +0000 (00:35 +0200)
doc/formats.texi

index 6e69bfa582a40ed70b62153ddfeaf24699a8403f..e1797551ee4a43d535a0953c87eea11e15261279 100644 (file)
@@ -141,6 +141,37 @@ increase performance in some cases.
 
 @c man end FORMAT OPTIONS
 
+@anchor{Format stream specifiers}
+@section Format stream specifiers
+
+Format stream specifiers allow selection of one or more streams that
+match specific properties.
+
+Possible forms of stream specifiers are:
+@table @option
+@item @var{stream_index}
+Matches the stream with this index.
+
+@item @var{stream_type}[:@var{stream_index}]
+@var{stream_type} is one of following: 'v' for video, 'a' for audio,
+'s' for subtitle, 'd' for data, and 't' for attachments. If
+@var{stream_index} is given, then it matches the stream number
+@var{stream_index} of this type. Otherwise, it matches all streams of
+this type.
+
+@item p:@var{program_id}[:@var{stream_index}]
+If @var{stream_index} is given, then it matches the stream with number
+@var{stream_index} in the program with the id
+@var{program_id}. Otherwise, it matches all streams in the program.
+
+@item #@var{stream_id}
+Matches the stream by a format-specific ID.
+@end table
+
+The exact semantics of stream specifiers is defined by the
+@code{avformat_match_stream_specifier()} function declared in the
+@file{libavformat/avformat.h} header.
+
 @include demuxers.texi
 @include muxers.texi
 @include metadata.texi