视频流基础设施
我们想建立一个实时视频聊天网站,并正在寻找基本的架构建议和/或针对要使用的特定框架的推荐。以下是该网站的基本功能:
大多数流将由一个人通过网络摄像头等进行现场直播,通常由 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议围绕两个流行的流媒体服务器之一构建应用程序和基础设施:
还有基于 Java 的 Red5 项目,但它(无论好坏)是一个不成熟的开源项目。一开始节省几美元听起来不错,但即使在短期内,使用 Wowza 或 Adobe FMS 也可以节省时间和金钱。
还有许多其他流媒体服务器,但这些都是大牌服务器。
至于 Peer1,我没有听说过他们(不过我在瑞士)。从他们自己的网页上我看到他们的机架只有“100Mbps全双工快速以太网”。从技术上讲,这对于您引用的 100 多个观众来说已经足够了。但除此之外,您还需要千兆网络。以后换了会很痛苦。值得思考的事情。
不要让任何人向你推销这个项目的疯狂硬件。 100个并发用户并不是特别多。任何现代双核 CPU 都可以。将您的调查重点放在良好的网络访问和安全上。确保你有足够的内存。
为了获得“足够好”的视频质量,目标是每个流 368kbps 到 512kbps。编解码器很重要——如果可以的话,使用 h264。
I would suggest building your application and infrastructure around one of two poplualr streaming servers:
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.
好吧,我首先想到的是直播。免费版本最多支持 50 个同时观看者。
Well, the first thing i can think of is Livestream. The free version supports up until 50 simultaneous viewers.