Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RTMP stream on iOS [closed]

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!

like image 865
cpprulez Avatar asked May 18 '11 09:05

cpprulez


People also ask

Is RTMP going away?

RTMP Go Away: Lossless reconnections for live streaming.

Is RTMP still supported?

Although Adobe announced that it will no longer support Flash, RTMP remains a commonly used protocol for live streaming within production workflows.

What replaced RTMP?

SRT is a new and modern live video transport protocol. It features many improvements to the incumbent popular video ingest protocol, RTMP, such as lower latency, and better resilience against unpredictable network conditions on the public Internet.


1 Answers

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.

like image 111
Steven Kramer Avatar answered Oct 02 '22 18:10

Steven Kramer