From 2bd21b96096320bc12532119a6b0f7a974db6c19 Mon Sep 17 00:00:00 2001 From: Calvin Walton Date: Fri, 21 Jun 2019 09:08:03 -0400 Subject: vf_drawtext: Add pkt_pos, pkt_duration, pkt_size as variables Changes to vf_drawtext.c written by Calvin Walton Changes to filters.texi written by greg Luce with lots of help from Moritz Barsnick and Gyan Fixes #7947. --- doc/filters.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index 3c406a4791..ee6a93ffbf 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9002,6 +9002,17 @@ 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. + +@item pkt_pos +The current packet's position in the input file or stream +(in bytes, from the start of the input). A value of -1 indicates +this info is not available. + +@item pkt_duration +The current packet's duration, in seconds. + +@item pkt_size +The current packet's size (in bytes). @end table @anchor{drawtext_expansion} -- cgit v1.2.3