来自 EC2 的流媒体

发布于 2024-08-02 01:28:29 字数 536 浏览 2 评论 0原文

我们被要求从网站流式传输单个视频 (+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 技术交流群。

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

发布评论

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

评论(1

满栀 2024-08-09 01:28:29

这是一篇关于 s3 和 ebs 之间的一些差异的文章:

就吞吐量而言,S3 的最大吞吐量(单线程)约为 20 MB/s,多线程为 25 MB/s。 这是一个小例子。 在大型和超大型实例上,该速度将上升至 50 MB/s。 EBS 的最大吞吐量受网络限制,小型实例上约为 25 MB/s,大型实例上约为 50 MB/s,特大型实例上约为 100 MB/s。 由于 S3 和 EBS 都是共享资源,因此在重负载下它们的速度会变慢。

无法帮助解答 Wowza 或您的其他问题。

Here's an article about some of the differences between s3 and ebs:

In terms of throughput S3 has maximum throughput (single threaded ) of approximately 20 MB/s or 25 MB/s for multithreaded. This is on a small instance. This rises to 50 MB/s on the large and extra large instances. EBS has a maximum throughput limited by the network, This isapproximately 25 MB/s on a small instance and 50 MB/s on large instances, and 100 MB/s on extra large instances. As both S3 and EBS are shared resources they are subject to slowdown under heavy load.

Can't help with Wowza or your other questions.

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