apt-get install wget cmake
apt-get install libssl-dev
wget https://codeload.github.com/j0sh/crtmpserver/zip/centosinit
unzip centosinit
cd builders/cmake
cmake .
make
./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
#开始推流测试
ffmpeg -i test.flv -f flv rtmp://192.168.32.128/live/mgg
ffmpeg -re -i test.mp4 -c copy -f flv rtmp://192.168.32.128/live/mgg
#使用vlc播放 rtmp://192.168.1.44/live/mgg
#使用ffplay播放 ffplay rtmp://192.168.1.44/live/mgg -fflags nobuffer
网友评论