从ios流式传输实时视频 [英] Streaming live video from ios

查看:175
本文介绍了从ios流式传输实时视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将视频从iPhone / iPad相机流式传输到服务器。看起来这需要用AVCaptureSession来完成,但我不知道如何最好地构建它。

I have a need to stream video from the iPhone/iPad camera to a server. It looks like this will need to be done with AVCaptureSession but I don't know how to best architect this.

我发现这篇文章:

从iPhone流式传输视频

但它不处理实时部分,延迟最多需要2或3秒。如果需要,设备可以被限制为4或4S功能,并且不需要HD,VGA可能是我们最终会得到的。我假设任何解决方案都会使用ffmpeg,我还没有找到更合适的库。

But it doesn't handle the "live" part, latency needs to be 2 or 3 seconds at most. Devices can be constrained to 4 or 4S capability if needed, and there is no requirement for HD, VGA is probably what we'll end up with. I assume any solution would use ffmpeg, I haven't found any more appropriate library.

这是如何最好地完成的?

How is this best accomplished?

推荐答案

根据Apple的说法,如果你从iPhone应用程序发送大量数据,你将不得不使用HTTP Live Streaming。

According to Apple, if you send large amounts of data from an iPhone app you're going to have to use HTTP Live Streaming.

HTTP直播流媒体概述

这是可能的,这是一个应用程序称为Livu

尝试使用 ffmpeg for iPhone 分段器来自Carson Macdonald的优秀Ion Cannon网站,该网站提供了许多关于HTTP直播流的有用信息。他也是这里的用户,可以提供宝贵的建议。

Try working with ffmpeg for iPhone and the segmenter from Carson Macdonald's excellent Ion Cannon site which has a lot of useful information on HTTP Live Streaming. He's a user here too and can offer invaluable advice.

这篇关于从ios流式传输实时视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆