简体   繁体   English

通过RTSP将实时H.264视频流式传输到iphone确实有效! 瓦特/示例

[英]Streaming live H.264 video via RTSP to iphone does work! w/example

Using FFMPEG, Live555, JSON 使用FFMPEG,Live555,JSON

Not sure how it works but if you look at the source files at http://github.com/dropcam/dropcam_for_iphone you can see that they are using a combination of open source projects like FFMPEG, Live555, JSON etc. Using Wireshark to sniff the packets sent from one of the public cameras that's available to view with the free "Dropcam For Iphone App" at the App Store, I was able to confirm that the iphone was receiving H264 video via RTP/RTSP/RTCP and even RTMPT which looks like maybe some of the stream is tunneled? 不知道它是如何工作的,但如果你看一下http://github.com/dropcam/dropcam_for_iphone上的源文件,你会发现它们正在使用FFMPEG,Live555,JSON等开源项目的组合。使用Wireshark嗅探在App Store中使用免费的“Dropcam For Iphone App”从其中一个可以查看的公共摄像机发送的数据包,我能够确认iphone通过RTP / RTSP / RTCP接收H264视频甚至是RTMPT比如可能有些流是通过隧道传输的?

Maybe someone could take a look at the open source files and explain how they got RTSP to work on the iphone. 也许有人可以看一下开源文件并解释他们如何让RTSP在iphone上运行。

Thanks for the info TinC0ils. 感谢TinC0ils的信息。 After digging a little deeper I'v read that they have modified the Axis camera with custom firmware to limit the streaming to just a single 320x240 H264 feed, to better provide a consistent quality video over different networks and, as you point out, be less of a draw on the phone's hardware etc. My interest was driven by a desire to use my iphone to view live video and audio from a couple of IP cameras that I own without the jerkiness of MJPEG or the inherent latency that is involved with "http live streaming". 深入挖掘后,我读到他们已经使用自定义固件修改了Axis摄像头,将流媒体限制为单个320x240 H264馈送,以便更好地在不同网络上提供一致的高质量视频,并且正如您所指出的那样,更少在手机的硬件等上画了一个平局。我的兴趣是希望使用我的iphone来观看我拥有的几台IP摄像机的实时视频和音频而没有MJPEG的急动或“http”所涉及的固有延迟直播“。 I think Dropcam have done an excellent job with their hardware/software combo, I just don't need any new hardware at the moment. 我认为Dropcam在硬件/软件组合方面做得非常出色,我现在不需要任何新硬件。

Oh yeah, I almost forgot the reason of this post RTSP PROTOCOL DOES WORK ON THE IPHONE! 哦,是的,我几乎忘记了这个帖子RTSP协议在IPHONE上工作的原因!

They are using open source projects to receive the frames and decoding in software instead of using hardware decoders. 他们使用开源项目来接收帧并在软件中解码,而不是使用硬件解码器。 This will work, however, this runs counter to Apple's requirement that you use their HTTP Streaming. 这将起作用,但这与Apple要求您使用其HTTP Streaming的要求背道而驰。 It will also require greater CPU resources such that it doesn't decode video at the desired fps/resolution on older devices and/or decrease battery life compared to HTTP streaming. 它还需要更大的CPU资源,使得它不会在旧设备上以所需的fps /分辨率解码视频和/或与HTTP流式传输相比降低电池寿命。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM