使用Nimble轻松搭建MPEG-DASH 流媒体点播服务器

Nimble必须依赖64-bit 平台,笔者使用的是Ubuntu 14.04 64bit


首先,在WMSPanel网站下用邮箱注册

https://wmspanel.com/account/sign_up


配置步骤如下


1、添加rep到 /etc/apt/sources.list 文件

Ubuntu 10.04 Lucid : deb http://nimblestreamer.com/ubuntu lucid/ 
Ubuntu 12.04 Precise :deb http://nimblestreamer.com/ubuntu precise/ 
Ubuntu 14.04 Trusty :deb http://nimblestreamer.com/ubuntu trusty/ 

(CentOS安装有点不一样,看步骤5)


2、 命令行安装nimble

$wget -q -O - http://nimblestreamer.com/gpg.key | sudo apt-key add - 
$sudo apt-get update 
$sudo apt-get install nimble

3、命令行把最开始注册的用户邮箱及密码信息注册到本地服务器

<pre name="code" class="plain">$sudo /usr/bin/nimble_regutil -u test@yourcompany.com -p mypassword


 4、重启 nimble 服务器 

$sudo service nimble restart

启动nimble 服务器命令为:

sudo service nimble start


5、CentOS的安装将步骤1、2改为如下方式


CentOS:

(1)安装 RHEL EPEL 

$wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
$wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 
$sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

(2)新建文件 /etc/yum.repos.d/nimble.repo  并写入以下内容

[nimble] 
name= Nimble Streamer repository 
baseurl=http://nimblestreamer.com/centos/6/$basearch #CentOS6
<pre name="code" class="plain">baseurl=http://nimblestreamer.com/centos/7/$basearch #CentOS7
enabled=0 gpgcheck=1 gpgkey=http://nimblestreamer.com/gpg.key

 

(3)执行以下命令

$sudo yum update 
$sudo yum install nimble



配置nimble 服务器 MPEG-DASH文件目录

(1)设定用户服务器中点播视频文件的目录为 /home/user/vod


(2)登入WMSPanel 管理页面 https://wmspanel.com/account/signin


(3)选择菜单项 Nimble Streamer->Edit Nimble Routes

(4)点击 Set up VOD streaming 按钮,填写路径并保存



(5)此时,只要把视频文件放进服务器目录底下,就能以MPEG-DASH的方式访问MPD索引文件接收m4s流媒体分片

http://server_IP:8081/vod/sample_file.mp4/manifest.mpd





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值