summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-08-01 13:50:42 +0200
committerPaul B Mahol <onemda@gmail.com>2021-08-16 20:26:04 +0200
commit8567f1c392b6f115d4f1de75fc59e371d775786d (patch)
tree9af46223dc22c995f684d5cc61ed358593fa7c92 /doc
parent7b0e63b7d5628d8a7af8d4a05932815e4a43a01c (diff)
avfilter: add (a)segment filters
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index d77bbe9369..f8d99b7171 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -25683,6 +25683,43 @@ A processing speed faster than what is possible without these filters cannot
be achieved.
@end table
+@section segment, asegment
+
+Split single input stream into multiple streams.
+
+This filter does opposite of concat filters.
+
+@code{segment} works on video frames, @code{asegment} on audio samples.
+
+This filter accepts the following options:
+
+@table @option
+@item timestamps
+Timestamps of output segments separated by '|'. The first segment will run
+from the beginning of the input stream. The last segment will run until
+the end of the input stream
+
+@item frames, samples
+Exact frame/sample count to split the segments.
+@end table
+
+In all cases, prefixing an each segment with '+' will make it relative to the
+previous segment.
+
+@subsection Examples
+
+@itemize
+
+@item
+Split input audio stream into three output audio streams, starting at start of input audio stream
+and storing that in 1st output audio stream, then following at 60th second and storing than in 2nd
+output audio stream, and last after 150th second of input audio stream store in 3rd output audio stream:
+@example
+asegment=timestamps="60 | 150"
+@end example
+
+@end itemize
+
@anchor{select}
@section select, aselect