Here is the command to add duration timestamp counter on a video:
ffmpeg -y -i wildlife-music.mp4 \ -vf "drawtext=text='%{pts\:hms}': \ x=(w-tw)/2: y=h-(2*lh): \ fontsize=36: fontcolor=white: \ box=1: boxcolor=0x00000000@1" \ ffmpeg-timestamp-counter.mp4
Output
References
- https://ffmpeg.org/ffmpeg-utils.html#Quoting-and-escaping
- https://ffmpeg.org/ffmpeg-filters.html#Text-expansion