[FFmpeg-trac] #7947(avfilter:new): Feature request: expose more frame properties as variables in drawtext filter

FFmpeg trac at avcodec.org
Fri Jun 7 23:11:09 EEST 2019


#7947: Feature request: expose more frame properties as variables in drawtext
filter
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  electron.rotoscope                 |
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  unspecified  |               Resolution:
             Keywords:  drawtext     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by electron.rotoscope):

 documentation (with a typo fix and clarification on the expansion keyword
 "metadata") written not as nicely by me
 {{{
 doc/filters.texi

 @@ -8960,7 +8960,20
 @item x
 @item y
 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 1 character description of the current packet's input picture type.
 +
 + @item pkt_pos
 + the current packet's position in the input datastream (in bytes from the
 head of the source file)
 +
 + @item pkt_duration
 + the current packet's input duration
 +
 + @item pkt_size
 + the current packet's input size (in bytes)
 @end table

 @@ -9027,7 + 9027,10
 @item metadata
 Frame metadata. Takes one or two arguments.

 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.
 +
 + The metadata accessible to this function must show up using
 + @code{ffprobe -show_packets} formatted as
 TAG:[metadata_key]=[metadata_value].
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7947#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list