title: remuxing mpv files from h264 AVI files
body: <p>I have a bunch of, I think, x264 encoded AVIs that I'd like to convert to m4v so that I can play with Quicktime.  Here's how I created them</p>
  
  <p>First I dump the vob from DVD with this:</p>
  
  <pre><code>$ mplayer -dumpstream -dumpfile new.vob dvd://1
  </code></pre>
  
  <p>Then I compress it:</p>
  
  <pre><code>$ mencoder -oac copy -o new.avi -ovc x264 -x264encopts crf=18 new.vob
  </code></pre>
  
  <p>I tried doing this to convertthem to m4v, but it's blowing up...</p>
  
  <p>I tried dumping the h264/acc streams:</p>
  
  <pre><code>$ mplayer new.avi -dumpvideo -dumpfile new.h264
  $ mplayer new.avi -dumpaudio -dumpfile new.acc
  </code></pre>
  
  <p>And remuxing(?) with MP4Box but I'm getting an error:</p>
  
  <pre><code>$ MP4Box -add new.h264#video -add new.aac#audio new.m4v
  Cannot find H264 start code
  Error importing new.h264#video: BitStream Not Compliant
  </code></pre>
  
  <p>So not sure what to do now...</p>