From d12d48d0a8e188feecdfc9b792f54f0892ef6696 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 18 Jan 2016 11:22:32 +0100 Subject: avfilter: add streamselect and astreamselect filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Bœsch Signed-off-by: Paul B Mahol --- doc/filters.texi | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3