视频流基础设施 [英] video streaming infrastructure

查看:97
本文介绍了视频流基础设施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

  • 大多数视频流将通过网络摄像头等从单个人进行直播,并且通常会有1-10人观看,尽管高端观众可能多达100多人.

  • 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.

我们正在寻找同行的Peer1.

We are looking at Peer1 for co-lo.

我们网站的其余部分将是.Net/Windows平台.尽管我们目前在Windows方面拥有更多的技术专长,但我们愿意为任何平台寻求最佳的流媒体解决方案.

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.

推荐答案

我建议围绕两个poplualr流服务器之一构建您的应用程序和基础结构:

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

  • Wowza :基于Java的服务器(因此也可以在Windows上运行),可以公开以下Web服务您的.Net应用消费. Wowza论坛(得到Wowza技术人员的积极支持)在上遇到了麻烦.缺点是Wowza有点饿.
  • Adob​​e Flash Media Server (和其他服务器):可以讨论行业标准.在Windows上运行.
  • 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.

还有一个基于Java的 Red5 项目,但是(无论好坏,这都是一个不成熟的项目)源项目.首先节省几美元听起来不错,但是即使是短期内,使用Wowza或Adobe FMS也会节省时间和金钱.

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.

对于 Peer1 ,我还没有听说过(尽管我在瑞士, ).从他们自己的网页上,我看到他们的机架只有"100Mbps全双工快速以太网".从技术上讲,这足以满足您所引用的100多个观看者的需求.但是要超出此范围,您将需要千兆位网络.以后换衣服会很痛苦.需要考虑的事情.

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.

不要让任何人在这个项目的疯狂硬件上向您出售. 100个并发用户不是特别多.任何现代双核CPU都可以.将您的调查重点放在体面的网络访问和监控上.确保您有足够的内存.

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.

为获得足够好"的视频质量,目标是每个流368kbps至512kbps.编解码器很重要-如果可以,请转至h264.

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

这篇关于视频流基础设施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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