标签:blank import max col 更改 rtm 重启 成功 types
原帖地址:https://blog.csdn.net/qq_24904667/article/details/80063031
最近搭建基于RTMP的本地Nginx服务器,没想到第一步克隆就报错:homebrew/nginx was deprecated. This tap is now empty as all its formulae were migrated.具体如下:
第一步使用:
将Nginx Clone到本地 $ brew tap homebrew/nginx
报错如下:
出现的原因是homebrew/nginx的git路径变了(貌似是2018年3月更新)
查找得到把克隆到本地的命令更改后可解决,更改为:
brew tap denji/homebrew-nginx
克隆成功,然后执行第二步:
安装Nginx
$ brew install nginx-full --with-rtmp-module
结果如下:
根据提示需要执行:
brew unlink nginx
执行成功,总和上面的步骤为:
配置文件的路径(/usr/local/etc/nginx/nginx.conf)
1>配置Nginx,支持http协议拉流
2>配置Nginx,支持rtmp协议推流
3>重启
nginx -s reload
ffmpeg -re -i story.mp4 -vcodec libx264 -vprofile baseline -acodec aac -ar 44100 -strict -2 -ac 1 -f flv -s 1280x720 -q 10 rtmp://localhost:1935/rtmplive/demo
ffmpeg -re -i /Users/apple/Desktop/ffmepg/story.mp4 -vcodec libx264 -vprofile baseline -acodec aac -ar 44100 -strict -2 -ac 1 -f flv -s 1280x720 -q 10 rtmp://localhost:1935/hls/demo
(转)mac 搭建基于RTMP的本地Nginx服务器报错homebrew/nginx was deprecated. This tap is now empty as all its form
标签:blank import max col 更改 rtm 重启 成功 types
原文地址:https://www.cnblogs.com/blackhumour2018/p/9402397.html