crtmp server搭建

2018-03-08 17:04:54 浏览数 (1)

代码语言:javascript复制
apt-get install wget cmake
apt-get install libssl-dev
mkdir crtmp
wget https://codeload.github.com/j0sh/crtmpserver/zip/centosinit
unzip centosinit
cd crtmpserver-centosinit/builders/cmake
cmake . 
make
./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
开始推流测试
代码语言:javascript复制
ffmpeg -i test.mp4 -c copy -f flv rtmp://123.207.71.137/live/test
使用vlc播放 rtmp://123.207.71.137/live/test
使用ffplay播放 ffplay rtmp://123.207.71.137/live/test -fflags nobuffer

我的1M云服务器拉流看视频—好卡!

0 人点赞