Created
May 7, 2012 21:41
-
-
Save reidransom/2630650 to your computer and use it in GitHub Desktop.
Timecode burn with ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Thanks, this code worked. What is this "-cmp 22" is for ? I can burn timecode without that thing.
@vinodvinu If I remember correctly that is a quality setting for h264 encoding so no, you don't need it to burn timecode.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice