title: FFMPEG Transcode so that I can view from iPhone Safari
body: <p>I've been searching all day for a way to transcode files that are being uploaded to something that iPhone's can handle (in Safari) without any success. I've read that it's best to use <code>Quicktime</code> for iPhone with the <code>h.264 codec</code> but I am struggling to find either the correct dependencies or the correct syntax for this. I have already managed to convert to mp4 and webm .</p>
  
  <p>Mp4:</p>
  
  <pre><code>'ffmpeg -i '.$input.' -strict experimental -s 1024x760 -ab 128k -vcodec libx264 -mbd 2 -flags +mv4+aic -trellis 2 -cmp 2 -subcmp -2 '.$filepath.'/'.$filename.'.mp4'
  </code></pre>
  
  <p>Webm</p>
  
  <pre><code>'ffmpeg -i '.$input.' -b 600 -s 1024x760 -ab 128k -vcodec libvpx -ab 128k -acodec libvorbis '.$filepath.'/'.$filenamewithoutext.'.webm'
  </code></pre>
  
  <p>Anyone know how to get these videos available for Safari (on iPhone/Pad)?</p>