summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-02-29 12:19:55 +0100
committerClément Bœsch <clement@stupeflix.com>2016-03-01 10:36:15 +0100
commit090621d7cece368d31f0d11baf477fc7fc007cac (patch)
tree28fc527244481ac6f7bd1fc8c7a2889229a9ca8e /doc/filters.texi
parent1c7e2cf9d33968375ee4025d2279c937e147dae2 (diff)
lavfi: add bench and abench filters
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 67c0da7bb6..39d353c8d1 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -10874,6 +10874,7 @@ Scale a subtitle stream to match the main video in size before overlaying
@end example
@end itemize
+@anchor{selectivecolor}
@section selectivecolor
Adjust cyan, magenta, yellow and black (CMYK) to certain ranges of colors (such
@@ -14289,6 +14290,40 @@ ffplay -f lavfi 'amovie=input.mp3, asplit [a][out1];
@end example
@end itemize
+@section bench, abench
+
+Benchmark part of a filtergraph.
+
+The filter accepts the following options:
+
+@table @option
+@item action
+Start or stop a timer.
+
+Available values are:
+@table @samp
+@item start
+Get the current time, set it as frame metadata (using the key
+@code{lavfi.bench.start_time}), and forward the frame to the next filter.
+
+@item stop
+Get the current time and fetch the @code{lavfi.bench.start_time} metadata from
+the input frame metadata to get the time difference. Time difference, average,
+maximum and minimum time (respectively @code{t}, @code{avg}, @code{max} and
+@code{min}) are then printed. The timestamps are expressed in seconds.
+@end table
+@end table
+
+@subsection Examples
+
+@itemize
+@item
+Benchmark @ref{selectivecolor} filter:
+@example
+bench=start,selectivecolor=reds=-.2 .12 -.49,bench=stop
+@end example
+@end itemize
+
@section concat
Concatenate audio and video streams, joining them together one after the