摘要:
1、linux下 rtsp / rtmp 转 rtmp / http-flv 流;
2、html上使用flv.js直播。
一、安装nginx
方式一、下载源码编译安装
1) 新建安装目录
mkdir installnginx
cd installnginx
2) 下载安装需要内容(可以按照需要修改版本到最新版,wget失效可手动下载同名包)
wget http://nginx.org/download/nginx-1.13.4.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
wget http://www.zlib.net/zlib-1.2.11.tar.gz
wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gz
git clone https://github.com/winshining/nginx-http-flv-module.git
3) 解压文件
tar -zxvf 每个包.tar.gz
解压后含有:
4) 安装
cd nginx-1.13.4
./configure --prefix=/home/rooun/nginx --add-module=../nginx-http-flv-module --with-pcre=../pcre-8.38 --with-openssl=../openssl-1.0.2l --with-zlib=../zlib-1.2.11
make &&