来自 EC2 的流媒体
我们被要求从网站流式传输单个视频 (+500MB)。 最大的附加要求是必须禁止外部IP地址的访问。 鉴于预计带宽使用量较高,我们已转向 Amazon S3 将视频作为 FLV 提供服务,但据我所知,Amazon 不允许您根据国家/地区列表设置 IP 过滤,并且 S3 也不可能实现 FLV 伪流传输。
我们提出的解决方案是创建一个带有 Web 服务器的 EC2 实例,并允许它仅提供与我们国家相对应的特定 IP 范围。 解决这个问题后,只需提供静态 FLV 文件即可,但主要问题仍然存在:
为了存储视频,我们将设置一个弹性块存储卷来存储视频,并在实例启动时将其复制到本地存储,然后从那里提供服务。 在阅读有关从 Amazon 云提供视频内容的内容时,我只找到了直接从 S3 提供文件的参考,并且根据我们的方案,我们将从 EC2 提供文件,是否存在 S3 上不存在的任何带宽问题? EC2 可以提供的最大带宽是多少? 如果单个 EC2 实例无法足够快地提供内容,我们将如何扩展它?
最后,使用像 Wowza Media Server for EC2 这样的流媒体服务器有什么优势?
We have been requested to stream a single video (+500MB) from a web site. The biggest additional requirement is that access must be forbidden to foreign IP addresses. Given that high bandwith usage is expected we have turned to Amazon S3 to serve the video as a FLV, but AFAIK Amazon won't let you set up IP filtering based on country lists, and FLV Pseudo-streaming is not possible from S3, either.
The solution we have come up with is to create an EC2 instance with a web server, and allow it to serve only c0ertain IP ranges corresponding to our country. Having this solved, it's only a matter of serving a static FLV file, but the main question remain:
To store the video, we will be setting up a Elastic Block Storage volume to store the video, and copy it on instance boot to local storage, and then serve it from there. Reading about serving video content from the Amazon Cloud I've only found references to serving files directly from S3, and with our scheme we will be serving it from EC2, are there any bandwith issues not present on S3? What is the maximum bandwith an EC2 can deliver? How would we scale it if a single EC2 instance fails to serve the content fast enough?
And, finally, what would be the advantages of using a streaming media server like Wowza Media Server for EC2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一篇关于 s3 和 ebs 之间的一些差异的文章:
无法帮助解答 Wowza 或您的其他问题。
Here's an article about some of the differences between s3 and ebs:
Can't help with Wowza or your other questions.