Skip to content

Instantly share code, notes, and snippets.

@mradbourne
Last active September 29, 2016 15:37
Show Gist options
  • Save mradbourne/c8031b7cfe6a1568d9459ba930733eaf to your computer and use it in GitHub Desktop.
Save mradbourne/c8031b7cfe6a1568d9459ba930733eaf to your computer and use it in GitHub Desktop.
FFMPEG presets
# WebM - Standard web video quality
ffmpeg -i input_file.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 600k -maxrate 600k -bufsize 1200k -qmin 10 -qmax 42 -vf scale=-1:480 -threads 4 -codec:a libvorbis -b:a 128k output_file.webm
# H.264 - Standard web video quality
ffmpeg -i input_file.avi -codec:v libx264 -profile: high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a libfdk_aac -b:a 128k output_file.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment