[FFmpeg-devel] [PATCH 2/2] doc/filters: add a signalstats example

Dave Rice dave at dericed.com
Wed Jul 9 05:41:47 CEST 2014

Here is an updated patch based on the advice from Stefano and Timothy. Thanks much,
Dave Rice

From f0d063bbe5b275f4fa293400ee218b50c52823f9 Mon Sep 17 00:00:00 2001
From: Dave Rice <dave at dericed.com>
Date: Tue, 8 Jul 2014 23:36:36 -0400
Subject: [PATCH 2/3] doc/filters: add a signalstats example

Signed-off-by: Dave Rice <dave at dericed.com>
 doc/filters.texi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/doc/filters.texi b/doc/filters.texi
index f119a3a..baba98b 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -7710,6 +7710,22 @@ Playback video while highlighting pixels that are outside of broadcast range in
 ffplay example.mov -vf signalstats="out=brng:color=red"
 @end example
+ at item
+Playback video with signalstats metadata drawn over the frame.
+ at example
+ffplay example.mov -vf signalstats=stat=brng+vrep+tout,drawtext=fontfile=FreeSerif.ttf:textfile=signalstat_drawtext.txt
+ at end example
+The contents of signalstat_drawtext.txt used in the command are:
+ at example
+time %@{pts:hms@}
+Y (%@{metadata:lavfi.signalstats.YMIN@}-%@{metadata:lavfi.signalstats.YMAX@})
+U (%@{metadata:lavfi.signalstats.UMIN@}-%@{metadata:lavfi.signalstats.UMAX@})
+V (%@{metadata:lavfi.signalstats.VMIN@}-%@{metadata:lavfi.signalstats.VMAX@})
+saturation maximum: %@{metadata:lavfi.signalstats.SATMAX@}
+ at end example
 @end itemize

More information about the ffmpeg-devel mailing list