Skip to content

Instantly share code, notes, and snippets.

@Skylark95
Last active May 19, 2016 03:28
Show Gist options
  • Save Skylark95/821fabb4b5152c8a0f507ce15a2c105a to your computer and use it in GitHub Desktop.
Save Skylark95/821fabb4b5152c8a0f507ce15a2c105a to your computer and use it in GitHub Desktop.
Encoding videos for YouTube with FFMpeg
# Source:
# Encoding videos for YouTube with FFMpeg
# https://www.virag.si/2015/06/encoding-videos-for-youtube-with-ffmpeg/
ffmpeg -i <input file> -codec:v libx264 -crf 21 -bf 2 -flags +cgop -pix_fmt yuv420p -codec:a aac -strict -2 -b:a 384k -r:a 48000 -movflags faststart <output_name>.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment