install relay
1 | sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev |
install nginx
prepare
1 | sudo wget http://nginx.org/download/nginx-1.13.1.tar.gz |
compile & install
1 | sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master |
config
1 | rtmp { |
http://blog.csdn.net/defonds/article/details/9274479/
nginx
restart1
2sudo /usr/local/nginx/sbin/nginx -s stop
sudo /usr/local/nginx/sbin/nginx
1 | ps -ef|grep nginx |
test
1 | ffmpeg -re -i "/mnt/pny/T25.mp4" -vcodec libx264 -r 15 -vprofile baseline -acodec aac -ar 44100 -strict -2 -ac 1 -f flv -b:v 500k -s 360x240 -q 10 rtmp://192.168.xxx.xxx:1935/live/demo |