Showing the pts of a frame in the middle of the video

With ffmpeg here is a simple way to clearly show the PTS of the frame playing on the video. Note that the location of the font file will vary from system to system and this is on Mac OS X.

ffmpeg -i oceans.mp4 -vf "drawtext=fontfile=/Library/Fonts/Tahoma.ttf:text='%{pts}': fontcolor=white: fontsize=50: x=(w-text_w)/2:y=(h-text_h)/2: box=1: boxcolor=black@0.2" -s 1920x1080 -c:v libx264 -preset ultrafast oceans-timestamp.mp4 -y
Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>