[x264-devel] Generating H264 for iPad?

Jason Garrett-Glaser jason at x264.com
Thu Feb 23 16:13:53 CET 2012


> ffmpeg -i 'inputfile.mp4' -y -vb '448k' -ab '96k' -ar '44100' -ac '2' -r '25' -async '1' -maxrate '544k' -f 'ipod'
> -vcodec 'libx264' -acodec 'libfaac' -flags '+loop+mv4' -cmp '256' -partitions
> '+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8' -me_method 'hex' -me_range '16' -subq '7' -trellis '1' -refs '5' -g
> '250' -keyint_min '25' -sc_threshold '40' -i_qfactor '0.71' -qcomp '0.6' -qmin '0' -qmax '69' -qdiff '4' -bufsize
> '2M' -directpred '3' -rc_lookahead '50' -threads '2' -coder '0' -bf '0' -flags2 '-wpred-dct8x8' -wpredp '0'
> 'outputfile.mp4'

This commandline is a massive pile of junk and anyone who uses it is
beyond clueless.

Use the -preset, -profile, etc options, not a huge pile of cargo-cult options.

A bunch of these options don't even apply to x264, i.e. they do
nothing at all.  Read the documentation!  Please do not perpetuate
this shit on our mailing list.  This is x264-devel, not "mislead
newbies trying to encode video by pretending you know something when
you actually don't".

And yes, H.264 in AVI is inherently broken, it will never work on an
iPad, nor most anywhere else.  Don't do it, ever, for any reason.

Jason


More information about the x264-devel mailing list