gnolizuh / BLSS

NGINX-based Live Media Streaming Server
Other
196 stars 73 forks source link
h265 hls httpflv httpflv-server livestream nginx rtmp rtmp-server

BLSS: Bravo Live Streaming Service

Powered Build Status Downloads

Media streaming server based on nginx-rtmp-module.

Features

Systems supported

Dependencies

Build

cd to NGINX source directory & run this:

./configure --add-module=/path/to/BLSS
make
make install

Get Started

Example

worker_processes 8;   # multi-worker process mode
relay_stream hash;    # stream relay mode

rtmp {
    server {
        listen 1935 reuseport;

        service cctv {
            hostname pub rtmp publish.com;      # match rtmp push domain
            hostname sub rtmp rtmpplay.com;     # match rtmp pull domain
            hostname sub http_flv flvplay.com;  # match http-flv pull domain

            application live {
                live on;
                gop_cache on;
                gop_cache_count 5;  # cache 5 GOPs

                hls on;
                hls_fragment 10s;
                hls_playlist_length 30s;
            }
        }
    }
}