0

我正在通过从我的 kinect 获取深度相机馈送并将其流式传输到我的 iPhone 应用程序。我必须能够为从 kinect 深度图像(30 fps)创建的每一帧保存 jpeg 并将它们保存到本地磁盘。我已经能够使用 ffmpeg 将其转换为 mpeg。

我现在的问题是如何在我的 iPhone 上实时查看此内容?基本上我想在 iphone 上实时查看它,因为你看到它来自 kinect。

我应该使用http直播并使用分段器来使用苹果的HttpLiveStreaming功能吗?或者我可以在将原始 jpeg 图像文件保存到磁盘时以某种方式将它们流式传输,而不仅仅是在手机上循环播放图像吗?

我想知道如何在 iphone 上实现视频会议(facetime/skype 等)?因为我更希望它不在视频播放器中播放,只是想在屏幕上显示实时内容。

有任何想法吗?提前致谢

4

1 回答 1

0

JPEGs are typically too large to stream in real time -- I've found it sticks around 5 fps on Wi-fi. If you take your mpeg outputs in small chunks (say, 5-10 sec of video in each chunk) and use ffmpeg to convert them to .ts containers (mpeg2 transport stream), then it's pretty easy to dynamically write an m3u8 index file that contains a list of the chunks in order. Point a UIWebView at the URL for the m3u8 file, and the stream will start playing, although it will use the built-in video player. You can use other media/AV classes to watch your stream, though, I believe.

于 2012-02-14T07:42:11.133 回答