Benchmark part of a filtergraph.
The filter accepts the following options:
- action
-
Start or stop a timer.
Available values are:
- start
-
Get the current time, set it as frame metadata (using the key
lavfi.bench.start_time), and forward the frame to the next filter. - stop
-
Get the current time and fetch the
lavfi.bench.start_timemetadata from the input frame metadata to get the time difference. Time difference, average, maximum and minimum time (respectivelyt,avg,maxandmin) are then printed. The timestamps are expressed in seconds.
Examples
-
Benchmark selectivecolor filter:
bench=start,selectivecolor=reds=-.2 .12 -.49,bench=stop