RTMP stream on iOS

cpprulez picture cpprulez · May 18, 2011 · Viewed 34.5k times · Source

I have to make an iOS app which plays a live video stream from a camera. I know that the iPhone only supports Live HTTP stream, but unfortunately it comes with a delay of about 6-10 seconds, which is far from my needs - I need a real time view. MJPEG stream is also not an option, because it generates a huge traffic. So what remains is an RTMP stream, but iOS cannot play it natively :(( I've heard of rtmpdump for iPhone, but I couldn't get it working. Has anyone succeeded in playing RTMP video on iOS? Any suggestions on how to do it are greatly appreciated!

Answer

Steven Kramer picture Steven Kramer · May 18, 2011

I'm pretty sure mediastreamsegmenter can be set up for slightly lower latencies (perhaps as low as 3 seconds).

Any other solution would need an advanced-ish transport, demux and video codec, that can handle RTP-over-HTTP and something at least equal to MPEG-2 video in compression efficiency. Those things are hard to come by for free (I know of only GPL-encumbered ones).

And even those would have latencies of at least 1 second as far as I can tell.