From 18dab6175bad2864c8d19a1d1476f5a3c1130599 Mon Sep 17 00:00:00 2001 From: greg Luce Date: Thu, 20 Jun 2019 12:08:04 -0400 Subject: doc/filters: drawtext additions and corrections Document the pict_type constant. Clarify availability of metadata. Minor grammar fixes. Written with the help of Gyan and kepstin --- doc/filters.texi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index 3313f96bd4..2d9af46a6b 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8962,7 +8962,10 @@ the width of the rendered text the x and y offset coordinates where the text is drawn. These parameters allow the @var{x} and @var{y} expressions to refer -each other, so you can for example specify @code{y=x/dar}. +to each other, so you can for example specify @code{y=x/dar}. + +@item pict_type +A one character description of the current frame's picture type. @end table @anchor{drawtext_expansion} @@ -9032,11 +9035,18 @@ The first argument is mandatory and specifies the metadata key. The second argument is optional and specifies a default value, used when the metadata key is not found or empty. +Available metadata can be identified by inspecting entries +starting with TAG included within each frame section +printed by running @code{ffprobe -show_frames}. + +String metadata generated in filters leading to +the drawtext filter are also available. + @item n, frame_num The frame number, starting from 0. @item pict_type -A 1 character description of the current picture type. +A one character description of the current picture type. @item pts The timestamp of the current frame. -- cgit v1.2.3