/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
终端输入上面指令;
http://brew.sh
终端输入:
brew tap homebrew/nginx
brew install nginx-full --with-rtmp-module
终端输入:
nginx
最后出现:
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
今天第一步成功.
rtmp://本机ip:5920/rtmplive/room
192.168.1.111
关闭终端:
nginx -s stop
http {
……
}
在http节点后面加上rtmp配置:
rtmp {
server {
listen 1935;
application live1 {
live on;
record off;
}
}
}
----配置ffmpeg
brew install ffmpeg
ffmpeg -re -i /Users/Rick/Movies/Demo.mov -vcodec copy -f flv rtmp://localhost:1935/live1/room1
网友评论