title: mencoder generate mp4 h.264 from jpg playback stops in html videotag chrome
body: <p>So I have some images from which I create a video with mencoder.</p>
  
  <pre><code>mencoder -idx -nosound -noskip -of lavf -lavfopts format=mp4 -ovc x264 -x264encopts pass=1:bitrate=2000:crf=24 -o output.mp4 -mf fps=15 'mf://@files.txt'
  </code></pre>
  
  <p>(where files.txt is a list of all the files sorted in the right order)</p>
  
  <p>The videos is created without problems, it plays fine in desktop-player like vlc, but in chrome (on mac) and chromium (ubuntu) some of the videoes has <em>"breakpoints"</em> in which the video just stops.</p>
  
  <p>Take a look at this <a href="http://jsfiddle.net/kAk7P/1/" rel="nofollow">fiddle</a>.</p>
  
  <p>I made an ugly hack (<a href="http://jsfiddle.net/kAk7P/2/" rel="nofollow">see fiddle</a>) to force a continued play even if the video is damaged, but this does not look very nice when the video has a lot of them <em>"breakpoints"</em>.</p>
  
  <p>For several reasons I need to be using html, so flash would only be a <strong>last</strong> last resort.
  Any views on what may be causing these breakpoints? Or a nicer ugly hack to force contiuned playback?</p>