现在网上使用的直播流有rtmp
要准备的文件有
zlib-1.2.11.tar
pcre-8.43.tar
openssl-1.1.1d.tar
安装 msys2-x86_64-20190524
安装 ActicePerl-5.24.2.2403-MSWin32-x64-403863.exe
安装 Mercurial-5.1.2-x64
安装 sed-4.2.1-setup
因为找的麻烦,我就整个在百度云上
链接:https://pan.baidu.com/s/18mmcwJ54faPsVRgbxOYULQ
提取码:xa1l
1.下载文件 HTTP-FLV 模块的项目源码和nginx 模块的项目
https://github.com/winshining/nginx-http-flv-module
nginx 下载目录
http://nginx.org/en/download.html
2.使用使用MSYS工具进行编译
进入目录
cd /e/nginx/tip/nginx-3939483cd1b5
进入编译
auto/configure --with-cc=cl --with-debug --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs/lib/pcre-8.43 --with-zlib=objs/lib/zlib-1.2.11 --with-openssl=objs/lib/openssl-1.1.1c --with-openssl-opt=no-asm --with-http_ssl_module --add-module=/path/to/nginx-http-flv-module
红色的要写上对应的路径

使用vs2015编译
nmake -f objs/Makefile

编译完成后就会生成exe 文件

编译后的文件,可以直接配置使用
https://download.youkuaiyun.com/download/qq_35978045/12320098
RTMP直播流与Nginx编译配置
本文详细介绍了如何从源码编译Nginx并添加HTTP-FLV模块,支持RTMP直播流。包括所需依赖库的下载与安装,如zlib、pcre、openssl等,以及使用MSYS工具和VS2015进行编译的具体步骤。
1204

被折叠的 条评论
为什么被折叠?



