Android 直播视频流问题
我有一个关于来自 Android 设备的视频流的问题,也许有人会给我一些关于我的问题的有用的建议/建议。所以这是交易:
我有一个来自 Android 设备的视频流项目。想法是连接到设备到服务器,第一个设备正在流式传输实时视频并将其上传到服务器,第二个设备正在流式传输并观看第一个设备的视频。所以有这样的联系:第一台设备----直播----> Web服务器------直播流媒体---->第二个设备
,第二个设备正在连接到Web服务器。
有什么建议/建议我该如何做到这一点以及我应该使用什么?我将非常高兴听到您的想法。
提前致谢!
I have a question about video streaming from Android devices and maybe someone who will give me some useful advice/suggestions about my question.So here is the deal :
I have a project for video streaming from Android device.The idea is that to connect to devices to a server and the first one is streaming live video and upload it to server and the second device is streaming and watching the video from the first device. So there is connection like this :First Device ----live streaming----> Web Server ------live streaming---->Second Device
, where second device is connecting to the web server.
Any suggestions/advice how can I do that and what should I use?I will be really glad to hear your ideas.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在玩类似的东西。基本上:
容器)到 Flash 视频,以便可以在绝大多数浏览器中播放
我最大的问题是,使用 H.263,我无法将其实时上传到服务器。视频有一个标题,其中指示了其长度和其他信息。然后,为了可以对视频进行转码(我使用 ffmpeg),标头必须存在。但它是在视频捕获完成后由 Android 设置的。
因此,作为一种解决方法,我以 5 秒的片段捕捉视频。
请查看 http://code.google.com/p/moteve 并随时做出贡献:-)
I was playing with something similar. Basically:
container) to a Flash video, so that it can be played in vast majority of browsers
My biggest issue is that with the H.263, I'm not able to upstream it live to the server. The video has a header, which indicates among others its length and other info. Then, in order the video can be transcoded (I use ffmpeg), the header must be present. But it is set by Android AFTER the video capturing is finished.
So as a work around, I'm capturing the video in e.g. 5 second slices.
Take a look at http://code.google.com/p/moteve and feel free to contribute :-)