如何创建用于在两部 iPhone 之间共享视频或实时视频视图的应用程序
我正在创建一个应用程序,其功能类似于一个人可以从另一部 iPhone 观看实时视频,即一部 iPhone 正在录制,另一部 iPhone 正在观看,就像我们使用 FACE TIME 所做的那样,但这件事是由我们自己的服务器执行的。
我开始知道使用XMPP客户端,我们也可以使用google Api,但是如何使用以及创建此类应用程序还需要什么?
我们还需要创建自己的服务器端部分,或者我们可以雇用其他服务器,例如 google/gtalk 或任何其他已经准备好的服务器。
请指导我还需要什么其他东西。
谢谢。
I am creating application which is having functionality like 1 person can view video live from another iPhone, i.e. one iphone is recording and and another is viewing the same, as we do with FACE TIME, but this things to be performed by our own server.
I come to know to USE XMPP client, and also we can use google Api , but how to use and what else things are required to create such kind of application ?
Also shall we need to create own server side part or we can hire other servers , like google/gtalk or any other which is already ready.
please guide me what other things are required for the same.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信将 2 个设备连接在一起 GStreamer 是最好的选择之一:它是广泛使用,并且有很多材料/文档。
GStreamer 的管道架构受到 DirectShow 和 Quicktime 的启发,它提供了一个名为 gst-launch 的命令行工具,允许您创建管道并快速测试库的多个组件。
此消息,分享一些关于如何使用 gst-launch 直接从 iPhone 摄像头流式传输视频,同时通过 VLC 在 PC 上接收数据的有趣信息。这意味着,您正在寻找的 50% 已经完成。
另一个选项,也在 消息,就是使用FFmpeg。
I believe that for connecting 2 devices together GStreamer is one of the best choices: it's broadly used and there's a lot of materials/docs on it.
GStreamer has a pipeline architecture that inspired by DirectShow and Quicktime, and it provides a command-line tool named gst-launch that allows you to create a pipeline and quickly test several components of the library together.
This message, shares some interesting info on how to stream video directly from the iPhone camera using gst-launch, while receiving the data on a PC through VLC. Which means, 50% of what you are looking for is already done.
Another option, also demonstrated in that message, is to use FFmpeg.
我想推荐ffmpeg,它已经成功迁移到iOS上。
你需要做的是:
1.重写ffserver,使用摄像头输入作为视频源,通过H.264/MPEG-4编码器进行编码
2.重写ffplay,使其可以在iOS设备上显示视频。网络协议和视频解码器部分已经准备就绪。
I'd like to advocate ffmpeg, which has been successfully migrated onto iOS.
What you need to do is:
1. rewrite ffserver, use camera input as the video source, and encode it by H.264/MPEG-4 encoder
2. rewrite ffplay, so that it can display video on iOS devices. The network protocol and video decoder part are ready.