ubuntu 18.04 安装zlmediakit webrtc

sudo apt-get install cmake
sudo apt-get install libssl-dev
sudo apt-get install libsdl-dev
sudo apt-get install libavcodec-dev
sudo apt-get install libavutil-dev
sudo apt-get install ffmpeg

openssl version

git clone https://github.com/cisco/libsrtp.git
cd libsrtp
./configure --enable-openssl
make
sudo make install

git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit.git
cd ZLMediaKit
git submodule update --init
mkdir build
cd build

# 加入webrtc的编译选项
cmake .. -DENABLE_WEBRTC=on
make

 启动程序

$ cd release/linux/Debug/
$ sudo ./MediaServer

 

测试
ffmpeg -re -stream_loop -1 -i test.mp4 -vcodec h264 -acodec aac -f flv rtmp://192.168.0.142/live/test

 

http://192.168.0.142:81

http://192.168.0.142:81/index/api/webrtc?app=live&stream=test&type=play

http://192.168.0.142:81/index/api/webrtc?app=rtp&stream=34020000001320000002-34020000001320000002&type=play

http://192.168.0.142:81/index/api/webrtc?app=rtp&stream=34020000001320000013-34020000001320000013&type=play

 

http://192.168.0.142:81/index/api/getMediaList?Secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc&schema=rtsp

posted @   CHHC  阅读(549)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示