{code}
 ffmpeg -i input.mp4 -c:v libvpx -qmax 42 -qmin 10 -b:v 1M -c:a libvorbis -q:a 4 -f webm out.webm
-ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline -crf 23 -c:a libfaac out.mp4
+ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline  -movflags faststart -crf 23 -c:a libfaac out.mp4
 {endcode}
 
+Note that the above adds "-movflags faststart" to the mp4 creation. This causes a second pass on the file (slow, sadly) that moves the metadata to the start of the file, making it faster for a web browser to seek into the middle of the file.  Instead of "-movflags faststart" you can use the tool qt-faststart.
+
 You can use ffmpeg to do lossless trimming of files (say, to break a single video into multiple videos, or to trim off dead time).  {link: http://askubuntu.com/questions/35605/splitting-an-mp4-file source }
 
 {code}