[FFmpeg-user] Timestamp for variable frame rate (VFR ) video

Wolfgang Hugemann auto at hugemann.de
Tue Sep 18 00:04:25 EEST 2018


> You want timecode and not pts, look at
> drawtext manual.

You may assume that I already did that.

IMHO, the main issue is not drawtext, but where to get the text from.
There only a few ready-made options, all other information has to be
drawn from metadata provided by some other source.

For example, if you want to print the SMPTE derived from VITC, you use
something like:

-vf "readvitc:drawtext=text=%%{metadata\\:lavfi.readvitc.tc_str}"

Thus if you want to write a timecode / timestamp on the video, you will
probably have to use a certain filer that can provide this information.

Any ideas?

Wolfgang Hugemann


More information about the ffmpeg-user mailing list