Kurento流媒体开发环境搭建流程

1.安装Ubuntu14.04.5-desktop-LTS

http://releases.ubuntu.com/14.04/ubuntu-14.04.5-desktop-amd64.iso.torrent?_ga=1.110569923.750233303.1484704413

2.安装VIM,cmake2.8以上

sudo apt install vim
sudo apt install cmake

3.添加kms-dev PPA

      echo "deb http://ubuntu.kurento.org trusty-dev kms6" | sudo tee /etc/apt/sources.list.d/kurento-dev.list
        wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
        sudo apt-get update

4.安装kms-core-6.0-dev

sudo apt install kms-core-6.0-dev

5.安装git

sudo apt install git

6.安装openwebrtc-gst-plugins

git clone https://github.com/Kurento/openwebrtc-gst-plugins.git
cd openwebrtc-gst-plugins
sudo apt install automake
sudo apt install libtool
./autogen.sh
sudo apt install libusrsctp-dev
./configure
make
sudo make install

7.安装openssl

sudo apt install libssl-dev

8.下载kms-elements源码并编译

git clone https://github.com/Kurento/kms-elements.git
cd kms-elements
mkdir build
cd build
cmake ..

9.安装kurento-media-server-6.0-dbg

sudo apt-get install kurento-media-server-6.0=dbg

10.[如果使用make进行工程调试的话]

make
make test
根据test工程进行测试分析。

10.[使用CDT]

安装eclipse-CDT
打开并导入Makefile工程

11.编译

错误1:
src/gst-plugins/webrtcendpoint/kmswebrtcdatachannelb`in.c:26:38: fatal error: gst/sctp/sctpreceivemeta.h: 没有那个文件或目录#include \
解决1:
复制openwebrtc-gst-plugins/gst-libs/gst/sctp 文件夹和其内的.h文件到 到/usr/include/gstreamer-1.5/gst下

=====到此,kms-element源码编译环境已经搭建完成=====

如搭建kms-core源码

sudo apt-get install libvpx

如搭建kurento-media-server源码

sudo apt-get install libboost-dev
libboost-programe-option-dev
libboost-thread-dev
libboost-log-dev
libevent-dev

====往后为分析RTSP2WEBRTC延迟两秒的问题====

12.安装测试用例

git clone https://github.com/lulop-k/kurento-rtsp2webrtc

13.安装测试所需媒体流工具及库

ffmpeg
sudo apt-get install yasm //汇编支持
cd ffmpeg
./configure
sudo make installl
libvpx
sudo apt-get install libvpx

13.安装node http-server环境

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
sudo apt-get intsll npm
sudo npm install -g bower
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd kurento-rtsp2webrtc
bower install
sudo npm install -g http-server
http-server
open this URL in your browser: http://localhost:8080/

14.案例分析

案例中媒体数据传送过程 ipCamraer->playerEndpoint->rtcEndpoint->BroserPlayer
可能存在延迟的地方分析以及测试过程:

ipCamraer->playerEndpoint:
playerEndpoint->rtcEndpoint:
rtcEndpoint->BroserPlayer:

TIPS:
建议修改软件源为:http://mirrors.163.com/ubuntu/

你可能感兴趣的:(Kurento)