1.安装HomeBrew..
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装Nginx..
brew tap homebrew/nginx
3.安装Nginx服务器rtmp模块
brew install nginx-full --with-rtmp-module
4.执行命令Nginx
5.local:8080测试
6.修改配置文件nginx.conf
7.nginx -s reload
8.brew install ffmpeg
9.ffmpeg 推流测试
ffmpeg -re -i /Users/xx/Desktop/test.mp4 -vcodec libx264 -acodec aac -f flv rtmp://localhost:5920/rtmplive/room
10.VlC打开播放
11.进行修改配置文件 进行HLS切片直播.