一天一个脚丫子

/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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容