So my friend will got ffmpeg to dump out something that the other guys (google, apple) would be happy with in a browser:
ffmpeg -i input.avi -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k \
-bt 512k -threads 0 -f rawvideo -an -y /dev/null && ffmpeg -i input.avi \
-pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -b 512k \
-bt 512k -threads 0 output.mp4
This is what I use for my video site:
ffmpeg2theora input.avi output.ogv
And the sad thing, you’re outside of the law if you use the x264 h.264 implementation.
I choose free and free.