Skip to content

Instantly share code, notes, and snippets.

@ptisserand
Created April 10, 2020 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptisserand/0946bcd4708c3e24db075891c17c69b4 to your computer and use it in GitHub Desktop.
Save ptisserand/0946bcd4708c3e24db075891c17c69b4 to your computer and use it in GitHub Desktop.
Add timestamp with ffmpeg
ffmpeg -i INPUT.mp4 -vf "drawtext=fontfile=/usr/share/fonts/TTF/Roboto-Medium.ttf:fontsize=22:fontcolor=yellow:box=1:boxcolor=black:x=(W-tw)/2:y=H-th-10:text='%{pts\:hms} %{frame_num}'" OUTPUT.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment