From 090621d7cece368d31f0d11baf477fc7fc007cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 29 Feb 2016 12:19:55 +0100 Subject: lavfi: add bench and abench filters --- doc/filters.texi | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3