Opencv采集RTSP或者系统相机视频帧RGB => 通过FFMPEG转换成YUV格式 => YUV数据编码成H264 => 编码后的数据推流到RTMP服务器
git clone https://github.com/arut/nginx-rtmp-module.git
wget http://nginx.org/download/nginx-1.13.3.tar.gz
tar -zxvf nginx-1.13.3.tar.gz
cd nginx*
./configure --add-module=/root/rtmp/nginx-rtmp-module
make
sudo make install
pkill nginx
sudo /usr/local/nginx/sbin/nginx
ps -ef | grep nginx
ffplay rtmp://10.88.7.193/live -fflags nobuffer