title: Streaming live camera video from iOS (iPhone/iPad) to remote PC / server
body: <p>I've been searching for a while on stackoverflow and around the web for a solution to my video-streaming problem. I need to stream live video being captured from the camera (no high-quality required) from an iOS device to a remote PC in one way, i.e., the iOS device will be sending a video stream to the server/PC but not the opposite.</p>
  
  <p>What appears after some googling and documentation browsing is that there are two main major standards/protocols that can be used:</p>
  
  <ul>
  <li>Apple's HTTP Live Streaming (HLS)</li>
  <li>Adobe's RTMP</li>
  </ul>
  
  <p>Again, my requirement is that the iPhone/iPad will be streaming the video. From what appears on Apple's website, I understand that HLS is to be used from an encoding perspective server-side, and a decoding perspective iOS side. As of RTMP, most libraries that allow iOS streaming have commercial licenses and closed code or require you to go through their P2P infrastructure (for instance <a href="http://angl.tv/" rel="nofollow noreferrer">angl.tv</a> or <a href="http://tokbox.com/opentok/quick-start/" rel="nofollow noreferrer">tokbox.com/opentok/quick-start</a>). As of HLS, no encoding libraries seem to exist iOS side.</p>
  
  <p>So my questions are:</p>
  
  <ul>
  <li>Do you know of any SDK/Library preferably open and free that I could integrate to stream captured video from within my app?</li>
  <li>If no, do you think developing a custom library would be a risky jungle-crossing endeavour? My guess is to go through AVFoundation and capture camera frames, compress them frame by frame and send them over HTTP. Does that sound crazy performance and bandwidth wise? Note that in that case I would need an HLS or RTMP encoder either ways.</li>
  </ul>
  
  <p>I thank you very much in advance dear friends.</p>
  
  <p>Mehdi.</p>