一天一个脚丫子

2016-06-16  本文已影响5人  IceWall_Rin

/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

上一篇下一篇

猜你喜欢

热点阅读