Skip to content

Nginx streaming

Mark Van den Borre edited this page Oct 6, 2016 · 7 revisions

Nginx rtmp config (to be included in nginx.conf, top level). The url would be rtmp://server/st/STREAMNAME. This does not have auth.

rtmp_auto_push on;

rtmp {

    server {

        listen 1935;

        application st {
            live on;

            hls on;
            hls_path /home/stream/hls;

            dash on;
            dash_path /home/stream/dash;

            drop_idle_publisher 20s;

        }

    }
}

##Installation

dch -v 1.0-1local1

##Notes

##Scaling https://groups.google.com/forum/#!topic/nginx-rtmp/zf7pt2Byfp8 makes for an interesting read. Basicly, use HLS and friends to scale through simple http proxy instead of having to spin up extra instances...

Clone this wiki locally