Skip to content

Instantly share code, notes, and snippets.

@thejoltjoker
Created April 26, 2017 04:43
Show Gist options
  • Save thejoltjoker/30a1232e472b6828082b25e34527f03e to your computer and use it in GitHub Desktop.
Save thejoltjoker/30a1232e472b6828082b25e34527f03e to your computer and use it in GitHub Desktop.
An ffmpeg command to encode a video for Youtube based on their recommended settings.
# Use ffmpeg to encode an input to a video with settings suggested by youtube.
# Read more at https://support.google.com/youtube/answer/1722171?hl=en
ffmpeg -i input.%04d.dpx -c:v libx264 -movflags faststart -crf 0 -pix_fmt yuv420p -r 24 -g 12 -bf 2 -c:a libfdk_aac -b:a 384k -ar 48000 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment