How to display current time with the ffplay.exe?

rgbtestsrc filter

ffplay -vf "drawtext=text='%{pts\:hms}':box=1:x=(w-tw)/2:y=h-(2*lh)" input.mp4
  • If your build does not support fontconfig, then you'll have to add the fontfile option with the path to the font. See drawtext filter docs for more info.

  • In Windows you may have to first set the FONTCONFIG_PATH variable (and/or other related variables).

  • You can add boxborderw=4 if you want more padding in the box, but you'll need a relatively recent build. See the FFmpeg Download page.