Skip to content

live streaming server built on nginx with nginx-rtmp-module

Notifications You must be signed in to change notification settings

kevin828/live-streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live streaming server using Nginx with RTMP module

Operation System

  • Ubuntu 18.04.2 LTS

Prerequisites

Build Nginx with RTMP module

  • 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

Nginx Configurations

FFmpeg Command Example

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

Reference

About

live streaming server built on nginx with nginx-rtmp-module

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published