视频流基础设施

发布于 2024-08-31 08:21:15 字数 450 浏览 2 评论 0原文

我们想建立一个实时视频聊天网站,并正在寻找基本的架构建议和/或针对要使用的特定框架的推荐。以下是该网站的基本功能:

  • 大多数流将由一个人通过网络摄像头等进行现场直播,通常由 1-10 人观看,尽管网站上可能有多达 100 多名观众大多数

  • 音频和视频不必是超高品质,但确实需要“足够好”。要点是在视频(和音频)中传达基本信息。如果偶尔帧速率下降,然后很快恢复正常,我们可以忍受。

  • 预算是一个问题,因此我们总体上正在寻找一种成本更低的解决方案,以便在性能和质量方面满足我们的大部分需求。

  • 我们正在寻找 Peer1 的 co-lo。

  • 我们网站的其余部分将是.Net / Windows 平台。我们愿意寻找任何平台来获得最佳的流媒体解决方案,尽管我们的技术专长目前更多地集中在 Windows 方面。

We would like to set-up a live video-chat web site and are looking for basic architectural advice and/or a recomendation for a particular framework to use. Here are the basic features of the site:

  • Most streams will be broadcast live from a single person with a web cam, etc., and viewed by typically 1-10 people, although there could be up to 100+ viewers on the high side.

  • Audio and video do not have to be super-high quality, but do need to be "good enough". The main point is to convey the basic info in the video (and audio). If occasionally the frame-rate drops low and then goes back to normal fairly soon, we could live with that.

  • Budget is an issue, so we are in general looking for a lower cost solution that will give us most of what we need in temers of performance and quality.

  • We are looking at Peer1 for co-lo.

  • The rest of our web site will be .Net / Windows platform. We are open to looking at any platform for the best streaming solution, although our technical expertise is currently more on the Windows side.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

清风挽心 2024-09-07 08:21:15

我建议围绕两个流行的流媒体服务器之一构建应用程序和基础设施:

  • Wowza:基于 Java(因此也可以在 Windows 上运行)服务器,可以公开 Web 服务供您的 .Net 应用程序使用。 Wowza 论坛(受到 Wowza 技术人员的积极支持)有 对此的总结。缺点是 Wowza 有点占用内存。
  • Adobe Flash Media Server(和其他服务器):有争议的行业标准。在 Windows 上运行。

还有基于 Java 的 Red5 项目,但它(无论好坏)是一个不成熟的开源项目。一开始节省几美元听起来不错,但即使在短期内,使用 Wowza 或 Adob​​e FMS 也可以节省时间和金钱。

还有许多其他流媒体服务器,但这些都是大牌服务器。

至于 Peer1,我没有听说过他们(不过我在瑞士)。从他们自己的网页上我看到他们的机架只有“100Mbps全双工快速以太网”。从技术上讲,这对于您引用的 100 多个观众来说已经足够了。但除此之外,您还需要千兆网络。以后换了会很痛苦。值得思考的事情。

不要让任何人向你推销这个项目的疯狂硬件。 100个并发用户并不是特别多。任何现代双核 CPU 都可以。将您的调查重点放在良好的网络访问和安全上。确保你有足够的内存。

为了获得“足够好”的视频质量,目标是每个流 368kbps 到 512kbps。编解码器很重要——如果可以的话,使用 h264。

I would suggest building your application and infrastructure around one of two poplualr streaming servers:

  • Wowza: Java-based (so can run on Windows too) server that can expose web services for consumption by your .Net applcation. The Wowza forums (which are actively supported by Wowza techies) has a run down on this. A con is that Wowza is a bit memory hungry.
  • Adobe Flash Media Server (and other servers): Arguable the industry standard. Runs on Windows.

There is also the Java-based Red5 project, but it is (for better and worse) an immature open source project. Saving a few bucks at first might sound good, but even in the short term you'll save yourself time and money by going with either Wowza or Adobe FMS.

Many other streaming servers out there, but these are the big names.

As for Peer1, I've not heard of them (I am in Switzerland, though). From their own web page I see that their racks have only "100Mbps full duplex Fast Ethernet". That's technically enough for the 100+ viewers you quote. But to go beyond that you are going to need Gigabit networking. Changing up later will be painful. Something to think about.

Don't let anyone up-sell you on crazy hardware for this project. 100 concurrent users is not particularly much. Any modern dual-core CPU is going to be fine. Focus your investigations on decent network access & ensure you have enough memory.

For 'good enough' video quality, aim for 368kbps to 512kbps per stream. Codecs matter--go h264 if you can.

霓裳挽歌倾城醉 2024-09-07 08:21:15

好吧,我首先想到的是直播。免费版本最多支持 50 个同时观看者。

Well, the first thing i can think of is Livestream. The free version supports up until 50 simultaneous viewers.

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