近期有很多网吧做的朋友向我询问网吧电视直播的事情,今天刚好有空我发些资料大家看看。
网吧电视直播一般要求不是很高,150台机器以下可以直接在电影服务器上做,150台以上并且看电视的人很多,建议配台专用的电视服务器。
所需硬件:电视卡一块(我以天敏的电视大师2代介绍,市场价在190~210之间吧)
所需软件:Windows Media Encoder
首先安装好电视卡驱动和播放软件及Windows Media Encoder,安装完后启动桌面的windows media编码器
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199430824.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
启动后界面为
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199431439.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
然后新建会话
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199431118.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
然后新建广播实况时间,然后配置视频和音频设备
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199431364.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199431649.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432118.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
在选择广播方式
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432810.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
在选择你要用的端口
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432428.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
再就是编码的类型和问您存不存档
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432581.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432915.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
在就是添加欢迎词和标题、作者
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432920.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432123.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432124.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432850.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
启动后界面为
javascript:window.open(this.src); alt="" src="/Article/UploadPic/2006-8/20068199432395.jpg" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" border=0>
点击编码就可以直播了,下面观看的地址为mms://服务器ip:8080(或者其他端口)
好了,现在我们就可以通知我们的朋友了,告诉它刚才记下的地址。打开Windows Media Player,输入IP地址以及端口号。(外网观看需要在服务器上映射端口到电视服务器)
需要注意的是:不要用天敏的电视精灵系列,它不能编码成功,有事电视直播时在很少人观看的情况下很卡,你看看Windows Media Encoder的cpu占用率是不是为100%,是的话把它关了在开。
默认情况下,在广播过程中编码器最多支持 5 个直接连接。通过在注册表中编辑项,可以将该数字增加到 50。(要编辑注册表项,必须具备编码计算机上的管理员身份凭据。)在注册表编辑器中,通过树形视图找到如下子键:HKEY_CLASSES_ROOT\Software\Microsoft\Windows Media Tools\Encoder\MaxClientConnections。
编辑该子键,使其反映出所需的直接连接最大数量。可能的最大数量为 50。
投资200元,就提升网吧的服务,我想大家看了应该都想试试了吧。