Skip to content

Instantly share code, notes, and snippets.

@davidonet
Created September 26, 2011 12:42
Show Gist options
  • Save davidonet/1242139 to your computer and use it in GitHub Desktop.
Save davidonet/1242139 to your computer and use it in GitHub Desktop.
Portable h264/aac video
ffmpeg -i inFile -threads 0 -vcodec libx264 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -bf 0 -flags2 +mixed_refs -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 26 -qmax 51 -qdiff 4 -acodec libfaac -ab 128k outFile.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment