Skip to content

Instantly share code, notes, and snippets.

@tan3
Created February 17, 2015 12:35
Show Gist options
  • Save tan3/f1149f96c9e699e19761 to your computer and use it in GitHub Desktop.
Save tan3/f1149f96c9e699e19761 to your computer and use it in GitHub Desktop.
Convert Movies for HTML5
# web mp4
ffmpeg -i source.avi -codec:v libx264 -profile:v main -level 3.1 -preset slow -b:v 400k -maxrate 400k -bufsize 800k -vf "scale=-2:480" -threads 0 -codec:a libfaac -b:a 128k -movflags +faststart target.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment