Skip to content

Instantly share code, notes, and snippets.

@alexabruck
Last active March 5, 2021 16:01
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 alexabruck/fb2adac6a7de60b287bcb86412a4aa51 to your computer and use it in GitHub Desktop.
Save alexabruck/fb2adac6a7de60b287bcb86412a4aa51 to your computer and use it in GitHub Desktop.
Compress Video
#Crazy strong compression
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
#Compression recommended for Vimeo, Youtube etc (Note the mkv extension)
#See: https://trac.ffmpeg.org/wiki/Encode/YouTube
ffmpeg -i input.mov -c:v libx264 -preset slow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p output.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment