Skip to content

Instantly share code, notes, and snippets.

@GuyPaddock
Last active January 17, 2021 17:11
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 GuyPaddock/dd83718c0a2d8f20e435b8b7796f0497 to your computer and use it in GitHub Desktop.
Save GuyPaddock/dd83718c0a2d8f20e435b8b7796f0497 to your computer and use it in GitHub Desktop.
Adding SMPTE timecode to video recorded on Pixel 3
ffmpeg \
-i INPUT_FILE.mp4 \
-vf drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: fontsize=96: box=1: boxcolor=black@0.75: boxborderw=5: fontcolor=white: x=(w-text_w)/2: y=((h-text_h)/2)-(3*((h-text_h)/8)):timecode='00\:00\:00\:00':rate=28.09" \
OUTPUT_FILE.mp4
ffmpeg \
-i INPUT_FILE.mp4 \
-preset ultrafast -f mp4 \
-vf drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: fontsize=96: box=1: boxcolor=black@0.75: boxborderw=5: fontcolor=white: x=(w-text_w)/2: y=((h-text_h)/2)-(3*((h-text_h)/8)):timecode='00\:00\:00\:00':rate=30" \
OUTPUT_FILE.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment