iOS上的RTMP流 [英] RTMP stream on iOS

查看:142
本文介绍了iOS上的RTMP流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须制作一个iOS应用,播放来自相机的实时视频流。我知道iPhone只支持Live HTTP流,但遗憾的是它有大约6-10秒的延迟,这远非我的需要 - 我需要一个实时视图。 MJPEG流也不是一种选择,因为它会产生巨大的流量。剩下的就是一个RTMP流,但iOS无法原生播放:((我听说过iPhone的rtmpdump,但我无法让它正常工作。有没有人成功在iOS上播放RTMP视频?有关如何使用的任何建议非常感谢!

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!

推荐答案

我非常确定mediastreamsegmenter可以设置为稍低的延迟(可能低至3秒)。

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

任何其他解决方案都需要先进的传输,解复用和视频编解码器,它们可以处理RTP-over-HTTP和至少等于MPEG的东西-2视频的压缩效率。这些东西很难免费获得(我只知道GPL阻碍的那些)。

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).

即使那些也会有延迟据我所知,至少1秒。

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

这篇关于iOS上的RTMP流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆