将 jpeg 实时流式传输到 iPhone 应用程序

发布于 2024-12-21 02:08:04 字数 421 浏览 4 评论 0原文

我正在从我的 kinect 获取深度摄像头反馈并将其传输到我的 iPhone 应用程序。我已经达到能够为从 kinect 深度图像(30 fps)创建的每一帧保存 jpeg 并将它们保存到本地磁盘的阶段。我已经能够使用 ffmpeg 将其转换为 mpeg。

我现在的问题是如何在 iPhone 上观看直播?基本上我想在 iPhone 上实时观看它,就像你看到它来自 kinect 一样。

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

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

有什么想法吗?提前致谢

Im progressing through taking the depth camera feed from my kinect and streaming it to my iphone app. I have got to stage of being able save jpegs for every frame created from the kinect depth image (30 fps) and save them to the local disk. I have than been able to convert this to mpeg with ffmpeg.

My question is now how can I view this live on my iphone? Basically I want to view it live on the iphone as you are seeing it coming from the kinect.

Should I use http live streaming and use the segmenter to use apples HttpLiveStreaming functionality? Or can I stream the raw jpeg image files up in some way as they are saved to disk and than just cycle the images on the phone as they go?

Im wondering how video conferencing is achieved on the iphone (facetime/skype etc)? because I'd prefer that it wasnt played inside the video player, just want to display live content on the screen as it happens.

Any ideas? Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人 2024-12-28 02:08:04

JPEG 通常太大而无法实时传输 - 我发现它在 Wi-fi 上的帧率约为 5 fps。如果您将 mpeg 输出分成小块(例如,每个块中 5-10 秒的视频)并使用 ffmpeg 将它们转换为 .ts 容器(mpeg2 传输流),那么动态编写一个 m3u8 索引文件非常容易包含按顺序排列的块的列表。将 UIWebView 指向 m3u8 文件的 URL,流将开始播放,尽管它​​将使用内置视频播放器。不过,我相信您可以使用其他媒体/AV 类来观看您的流。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文