Skip to content

Instantly share code, notes, and snippets.

@fishkingsin
Forked from reidransom/gist:2630650
Created January 8, 2016 07:07
Show Gist options
  • Select an option

  • Save fishkingsin/8a3bca76709a263c8126 to your computer and use it in GitHub Desktop.

Select an option

Save fishkingsin/8a3bca76709a263c8126 to your computer and use it in GitHub Desktop.
Timecode burn with ffmpeg
# Timecode burn with ffmpeg
# ffmpeg must be configured with --enable-libfreetype
# box=1 - tells ffmpeg to draw a box around the text
# boxcolor - format is 0xRRGGBB[AA]
ffmpeg -i video.mov -vcodec libx264 -cmp 22 -vf "drawtext=fontfile=DroidSansMono.ttf: timecode='09\:57\:00\:00': r=23.976: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000099" -y output.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment