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