title: AVI to MP4 - ffmpeg conversion
body: <p>I'm running a debian 7.5 machine with ffmpeg-2.2 installed following <a href="http://wiki.hznteam.fr/trac-bubble/wiki/FfmpegInstallation" rel="nofollow">these instructions</a></p>
  
  <h2>Issue</h2>
  
  <p>I'm trying to display a mp4 video inside my browser. The original file has an AVI container format. I can successfully convert it to mp4 and the targetfile is readable (video + sound) with the totem movie player. So I thought everything would be OK displaying the bellow page</p>
  
  <h2>HTML5 web page</h2>
  
  <pre><code>&lt;!DOCTYPE html&gt;&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Webcam&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;video width="640" height="480" controls&gt;
    &lt;source src="/path/to/output.mp4" type="video/mp4"&gt;
  &lt;h3&gt;Your browser does not support the video tag&lt;/h3&gt;
  &lt;/video&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <h2>Input probe</h2>
  
  <pre><code>$ ffprobe -show_streams input.avi
  
    Duration: 00:08:22.90, start: 0.000000, bitrate: 1943 kb/s
      Stream #0:0: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 64 kb/s
      Stream #0:1: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x540 [SAR 1:1 DAR 4:3], 1870 kb/s, 29.97 fps, 25 tbr, 29.97 tbn, 25 tbc
  </code></pre>
  
  <h2>Convert</h2>
  
  <p>$ ffmpeg -y -fflags +genpts -i input.avi -acodec copy -vcodec copy ouput.mp4</p>
  
  <h2>Html browser</h2>
  
  <p>Opening the above html file plays sound but no video is displayed.</p>
  
  <p>When I use other .mp4 files, videos succesfully  displayed so I'm sure I face a conversion issue.  </p>
  
  <p>Not : I've tryed a lot of other ffmpeg options but without success.</p>
  
  <p>Any idea ?</p>
  
  <p>Thanks in advance.</p>