[FFmpeg-trac] #7946(ffmpeg:reopened): drawtext %{metadata:key} can only pull manually entered tags
FFmpeg
trac at avcodec.org
Sun Jan 15 00:19:10 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 |
-------------------------------------+-------------------------------------
Comment (by electron.rotoscope):
Whether something's a keyframe or not is shown by the pict_type tag, which
you already have. I think what comment number 2 had meant is that
"metadata" in the sense that it's used by the "metadata" tag in drawtext
refers specifically to tags, not intrinsic descriptions; it's for things
like GPS coordinates and camera serial number, not things like pixel
height.
Replying to [comment:3 colemarc]:
> 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:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list