title: Streaming live video from ios
body: <p>I have a need to stream video from the iPhone/iPad camera to a server. It looks like this will need to be done with AVCaptureSession but I don't know how to best architect this.</p>
  
  <p>I found this post:</p>
  
  <p><a href="https://stackoverflow.com/questions/3444791/streaming-video-from-an-iphone">streaming video FROM an iPhone</a></p>
  
  <p>But it doesn't handle the "live" part, latency needs to be 2 or 3 seconds at most. Devices can be constrained to 4 or 4S capability if needed, and there is no requirement for HD, VGA is probably what we'll end up with. I assume any solution would use ffmpeg, I haven't found any more appropriate library.</p>
  
  <p>How is this best accomplished?</p>