[FFmpeg-trac] #7946(ffmpeg:reopened): drawtext %{metadata:key} can only pull manually entered tags

FFmpeg trac at avcodec.org
Sat Jan 14 23:49:40 EET 2023


#7946: drawtext %{metadata:key} can only pull manually entered tags
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  electron.rotoscope                 |
                 Type:  enhancement  |                   Status:  reopened
             Priority:  minor        |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:
             Keywords:  drawtext     |               Blocked By:
  metadata                           |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by colemarc):

 * status:  closed => reopened
 * resolution:  invalid =>

Comment:

 So I would like to know how to put the following info into a `text`
 parameter of a `drawtext` filter:
 1 if the frame is a keyframe
 0 if it is not

 Currently I have this:
 {{{
 drawtext=text='%{n}%{pts\:hms} %{metadata\:key_frame\:NAkf} %{pict_type}
 %{metadata\:lavfi.scd.score\:NAscore}'
 }}}
 but `key_frame` is not recognized, neither is `iskey`, nor `key`.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/7946#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list