- Ubuntu 18.04.2 LTS
- Nginx 1.17.4 from Nginx.org or Github
- Openssl 1.1.1 from OpenSSL.org or Github
- Pcre 8.43 from PCRE.org
- Zlib 1.2.11 from Zlib
- Nginx-rtmp-module from Github
- Generate Makefile
./configure \\
--prefix=/usr/local/nginx \\
--with-pcre=../pcre-8.43 \\
--with-openssl=../openssl-1.1.1d \\
--with-zlib=../zlib-1.2.11 \\
--with-http_ssl_module \\
--with-http_v2_module \\
--with-http_flv_module \\
--with-http_mp4_module \\
--add-module=../nginx-rtmp-module \\
- Compile and install Nginx
sudo make install
ffmpeg.exe -f dshow -i video="your Webcam" -vf scale=640x480 -b:v 750k -minrate 375k -maxrate 1088k -bufsize 2176k -g 60 -threads 4 -quality good -crf 33 -c:v libx264 -preset:v ultrafast -c:a aac -f flv rtmp://xxx.xxx.xxx.xxx/dash/mystream
-
Build Nignx on Ubuntu
-
Nginx
-
FFmpeg