summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-01-18 11:22:32 +0100
committerPaul B Mahol <onemda@gmail.com>2016-02-06 23:52:09 +0100
commitd12d48d0a8e188feecdfc9b792f54f0892ef6696 (patch)
tree2da906bf6e9eff4f03c646fd2baeb34114dc8c21 /doc
parent14bf59c1d5b5fa3b4d075f481015b8110835276e (diff)
avfilter: add streamselect and astreamselect filter
Signed-off-by: Clément Bœsch <u@pkh.me> Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 664ebe8ca6..3751f82e38 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -11321,6 +11321,45 @@ stereo3d=abl:sbsr
@end example
@end itemize
+@section streamselect, astreamselect
+Select video or audio streams.
+
+The filter accepts the following options:
+
+@table @option
+@item inputs
+Set number of inputs. Default is 2.
+
+@item map
+Set input indexes to remap to outputs.
+@end table
+
+@subsection Commands
+
+The @code{streamselect} and @code{astreamselect} filter supports the following
+commands:
+
+@table @option
+@item map
+Set input indexes to remap to outputs.
+@end table
+
+@subsection Examples
+
+@itemize
+@item
+Select first 5 seconds 1st stream and rest of time 2nd stream:
+@example
+sendcmd='5.0 streamselect map 1',streamselect=inputs=2:map=0
+@end example
+
+@item
+Same as above, but for audio:
+@example
+asendcmd='5.0 astreamselect map 1',astreamselect=inputs=2:map=0
+@end example
+@end itemize
+
@anchor{spp}
@section spp