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

Paul B Mahol onemda at gmail.com
Mon Sep 17 16:27:47 EEST 2018

On 9/17/18, Wolfgang Hugemann <auto at hugemann.de> wrote:
> I have a WhatsApp video which is definitively VFR, as can be told from
> the content (a passenger car at constant speed) and is reported by the
> new vfrdet filter.
> I would like to display a timecode in each frame, derived from the frame
> metadata:
> "drawtext=text=%%{pts}"
> yields wrong results, as it not much more than a frame counter, I guess.
> So it should probably be something like
> "drawtext=%%{metadata\\:???}
> but what exactly?

vfrdet filtere uses frame pts. You want timecode and not pts, look at
drawtext manual.

More information about the ffmpeg-user mailing list