title: How to wrap an h.264 file as mp4 on iOS
body: <p>I have a bare h.264 file (from a raspberry pi camera), and I'd like to wrap it as an mp4. I don't need to play it, edit it, add or remove anything, or access the pixels.</p>
  
  <p>Lots of people have asked about compiling ffmpeg for iOS, or streaming live data. But given the lack of easy translation between the ffmpeg command line and its iOS build, it's very difficult for me to figure out how to implement this simple command:</p>
  
  <p><code>ffmpeg -i input.h264 -vcodec copy out.mp4</code></p>
  
  <p>I don't specifically care whether this happens via ffmpeg, avconv, or AVFoundation (or something else). It just seems like it should be not-this-hard to do on a device.</p>