aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-11-04 22:22:24 +0100
committerMarton Balint <cus@passwd.hu>2018-11-19 22:11:42 +0100
commit972ded33c08a820303ecf050942f0e74400eda7a (patch)
treecffc1f5c0d7430af57acfcdbe5042bba31985999 /doc/filters.texi
parente1f895838d5061572a1d79da6e5888673a2ea241 (diff)
downloadffmpeg-972ded33c08a820303ecf050942f0e74400eda7a.tar.gz
avfilter/vf_freezedetect: add filter to detect frozen input
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 6b1bf8766b..d2d9788d8f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -10069,6 +10069,35 @@ Select frame after every @code{step} frames.
Allowed values are positive integers higher than 0. Default value is @code{1}.
@end table
+@section freezedetect
+
+Detect frozen video.
+
+This filter logs a message and sets frame metadata when it detects that the
+input video has no significant change in content during a specified duration.
+Video freeze detection calculates the mean average absolute difference of all
+the components of video frames and compares it to a noise floor.
+
+The printed times and duration are expressed in seconds. The
+@code{lavfi.freezedetect.freeze_start} metadata key is set on the first frame
+whose timestamp equals or exceeds the detection duration and it contains the
+timestamp of the first frame of the freeze. The
+@code{lavfi.freezedetect.freeze_duration} and
+@code{lavfi.freezedetect.freeze_end} metadata keys are set on the first frame
+after the freeze.
+
+The filter accepts the following options:
+
+@table @option
+@item noise, n
+Set noise tolerance. Can be specified in dB (in case "dB" is appended to the
+specified value) or as a difference ratio between 0 and 1. Default is -60dB, or
+0.001.
+
+@item duration, d
+Set freeze duration until notification (default is 2 seconds).
+@end table
+
@anchor{frei0r}
@section frei0r