nginx-rtmp

簡介

http://bingnan.github.io/blog/2015/12/22/nginx-rtmp-module-directives%E7%BF%BB%E8%AF%91%E5%92%8C%E6%B3%A8%E9%87%8A/nginx

exec_push 執行外部命令
on_publish,on_publish_done 流上下線通知c++

github nginx-rtmpgit

環境搭建

  • 0.一些可能用到的庫
yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
wget et http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
./configure
make && make install
pcre-config --version
  • 1.下載rtmp模塊
git clone https://github.com/arut/nginx-rtmp-module.git
  • 2.下載nginx並編譯
wget get http://nginx.org/download/nginx-1.14.0.tar.gz
cd ./nginx-1.14.0
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_stub_status_module --with- http_v2_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with- http_flv_module --with-http_mp4_module --with-pcre=../pcre-8.35 --with-pcre-jit --with-http_xslt_module

make & make install
  • 3.rtmp模塊配置模塊配置
相關文章
相關標籤/搜索