Linux流媒体服务器的安装与简单配置

tzsky博客 发表于:12年05月02日 11:26 [转载] 51CTO

  • 分享:
[导读]本文主要介绍,在Linux环境下安装流媒体服务器,以及简单的配置。

实验环境:

需要rs1115-ga-linux-rhel4.bin,DistributedLicensing.lic

实验步骤:

一、安装服务器

[root@localhost ~]# mount -o username=love //192.168.1.188/dd /media/

Password:

[root@localhost ~]# tar zxvf /media/rs1115-ga-linux-rhel4.tar.gz -C /usr/local/src/

rs1115-ga-linux-rhel4.bin

[root@localhost ~]# cd /usr/local/src/

[root@localhost src]# chmod u+x rs1115-ga-linux-rhel4.bin

[root@localhost src]# ./rs1115-ga-linux-rhel4.bin

Extracting files for Helix installation........................

Welcome to the Helix Server 11.1.5 (11.1.5.2387) Setup for UNIX

Setup will help you get Helix Server running on your computer.

Press [Enter] to continue...

If a Helix Server license key file has been sent to you,

please enter its directory path below. If you have not

received a Helix Server license key file, then this server

WILL NOT OPERATE until a license key file is placed in

the server's License directory. Please obtain a free

Basic Helix Server license or purchase a commercial license

from our website at https://www.real.com/. If you need

further assistance, please visit our on-line support area

at https://service.real.com/.

License Key File: []:

Installation and use of Helix Server requires

acceptance of the following terms and conditions:

Press [Enter] to display the license text...

Choose "Accept" to accept the terms of this

license agreement and continue with Helix Server setup.

If you do not accept these terms, enter "No"

and installation of Helix Server will be cancelled.

I accept the above license: [Accept]:

Enter the complete path to the directory where you want

Helix Server to be installed. You must specify the full

pathname of the directory and have write privileges to

the chosen directory.

Directory: [/usr/local/src]:

Please enter a username and password that you will use

to access the web-based Helix Server Administrator and monitor.

Username []: admin

Password []:

Confirm Password []:

Please enter a port on which Helix Server will listen for

RTSP connections. These connections have URLs that begin

with "rtsp://"

Port [554]:

Please enter a port on which Helix Server will listen for

HTTP connections. These connections have URLs that begin

with "https://"

Port [80]: 8080

Please enter a port on which Helix Server will listen for

MMS connections. These connections have URLs that begin

with "mms://"

Port [1755]:

Helix Server will listen for Administrator requests on the

port shown. This port has been initialized to a random value

for security. Please verify now that this pre-assigned port

will not interfere with ports already in use on your system;

you can change it if necessary.

Port [26840]: 12345

You have selected the following Helix Server configuration:

Admin User/Password: admin/****

Encoder User/Password: admin/****

Monitor Password: ****

RTSP Port: 554

HTTP Port: 8080

MMS Port: 1755

Admin Port: 12345

Destination: /usr/local/src

Enter [F]inish to begin copying files, or [P]revious to go

back to the previous prompts: [F]:

Copying Helix Server files...

Helix Server installation is complete.

If at any time you should require technical

assistance, please visit our on-line support area

at https://service.real.com/.

Cleaning up installation files...

Done.

二、启动服务器

[root@localhost src]# cp /media/DistributedLicensing.lic License/

[root@localhost src]# ./Bin/rmserver rmserver.cfg &

三、使用web界面管理服务器

在地址栏中输入:https://192.168.1.169:12345/admin/index.html进入web管理界面

ip绑定:192.168.1.169

加载点的配置:描述:new movies

加载点:/mov/

基于路径:/data/public

别名的配置:描述:test

别名:/mtv/

资源地址:/cname/

限制最大用户连接数:100

四、服务器的监控

[root@localhost ~]# ps -ef | grep rmserver

root 4038 1 0 21:50 ? 00:00:00 ./Bin/rmserver rmserver.cfg

root 4504 4038 3 22:05 ? 00:00:03 ./Bin/rmserver rmserver.cfg

root 4505 4038 0 22:05 ? 00:00:00 ./Bin/rmserver rmserver.cfg

root 4617 4573 0 22:07 pts/1 00:00:00 grep rmserver

[root@localhost ~]# netstat -tulnp | grep rmserver

tcp 0 0 127.0.0.1:9090 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:9090 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:7077 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:7077 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:4040 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:4040 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:554 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:554 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:8080 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:12345 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:12345 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 127.0.0.1:1755 0.0.0.0:* LISTEN 4504/rmserver

tcp 0 0 192.168.1.169:1755 0.0.0.0:* LISTEN 4504/rmserver

udp 0 0 0.0.0.0:1026 0.0.0.0:* 4504/rmserver

udp 0 0 0.0.0.0:9875 0.0.0.0:* 4504/rmserver

udp 0 0 192.168.1.169:1755 0.0.0.0:* 4504/rmserver

五、流媒体客户端的安装和使用

推荐使用realone for Linux, RealOne Player RealPlayer

六、流媒体文件的制作

使用Helix Producer Plus

七、视频点播,广播,多播的实现及广告的发布

八、客户端测试

Rm或Rmvb格式:rtsp://服务器ip:554/加载点名/电影目录名/电影文件名

wmv、asf等Media格式:mms://服务器ip:1755/加载点名/电影目录名/电影文件名

在地址栏输入Helix服务器的URL例如:rtsp://192.168.1.169/real9vedio.rm 。其中rtsp表示连接Helix服务器使用RTSP应用级协议,192.168.1.169是Helix服务器IP地址

注意:用Helix点播media媒体文件时,请不要使用中文的目录和文件名,否则很可能出现莫名其妙的错误,网上现在有人提供了解决的办法,但相对复杂,所以还是避开为妙。

其它格式:

AVI、mpg4等其它格式的媒体文件也是可以用Helix点播的,具体方法请参照以上实例自行试验。

[责任编辑:赵航]
咸师
中国企业信息化从90年代初期开始起步,经过20年的发展,许多企业尤其是大中型企业的IT架构已经搭建完毕。但是,中国企业信息化建设有一个非常显著的特点是,IT系统建设是根据企业各个阶段的需求完成,并没有一个整体的规划。这就导致企业各个IT系统是孤立的,各个系统无法有效地连接起来。
官方微信
weixin
精彩专题更多
存储风云榜”是由DOIT传媒主办的年度大型活动。回顾2014年,存储作为IT系统架构中最基础的元素,已经成为了推动信息产业发展的核心动力,存储产业的发展迈向成熟,数据经济的概念顺势而为的提出。
华为OceanStor V3系列存储系统是面向企业级应用的新一代统一存储产品。在功能、性能、效率、可靠性和易用性上都达到业界领先水平,很好的满足了大型数据库OLTP/OLAP、文件共享、云计算等各种应用下的数据存储需求。
联想携ThinkServer+System+七大行业解决方案惊艳第十六届高交会
 

公司简介 | 媒体优势 | 广告服务 | 客户寄语 | DOIT历程 | 诚聘英才 | 联系我们 | 会员注册 | 订阅中心

Copyright © 2013 DOIT Media, All rights Reserved. 北京楚科信息技术有限公司 版权所有.