Opened 15 months ago

Last modified 3 months ago

#7317 new enhancement

showinfo filter add metadata mode

Reported by: nicol Owned by:
Priority: wish Component: avfilter
Version: git-master Keywords: metadata
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I found showinfo filter add metadata mode at cho-dev/FFmpeg-jwmod.

libavfilter/vf_showinfo.c: Add metadata mode
https://github.com/cho-dev/FFmpeg-jwmod/commit/b9e921961be686b45dac7fcf8e823dac6be3d7c9
Reading and drawing metadata with drawtext filter, like this
drawtext=fontfile=foobar.ttf:text='%%{metadata\:lavfi.showinfo.T.HMS}'

Change History (2)

comment:1 follow-up: Changed 3 months ago by Sami32

You can do like this:

drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:text='%{pts\:hms}'

Hoping that helped.

comment:2 in reply to: ↑ 1 Changed 3 months ago by nicol

Replying to Sami32:

You can do like this:

drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:text='%{pts\:hms}'

Hoping that helped.

Thank you for your reply. I have known drawtext filter cloud done as I wished.
I wrote blog in Japanese. https://nico-lab.net/drawtext_with_ffmpeg/#i-3

I hope to do especially showinfo filter the following.

T_DELTA       : pts difference between current and previous
T_DELTA.FORM  : pts difference formatted with **.**ms(**.**fps)
BITRATE       : video bitrate
BITRATE.FORM  : video bitrate formatted with ****kbps
KEY_INTERVAL  : interval between previous and current key frame
COLOR_RANGE   : color range (return of av_frame_get_color_range())
MEAN0         : mean value of plane 0 (luminance of yuv)
MEAN1         : mean value of plane 1
MEAN2         : mean value of plane 2
MEAN3         : mean value of plane 3
Note: See TracTickets for help on using tickets.