-
Notifications
You must be signed in to change notification settings - Fork 21
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
- https://github.com/arut/nginx-rtmp-module/releases has the stable releases.
- https://wiki.debian.org/DhyanNataraj/RtmpVideoStreamingViaNginx
- Note you probably want to update the local Debian package version using something like:
dch -v 1.0-1local1
##Notes
- We want to record the incoming stream, so some recording related directives needed https://github.com/arut/nginx-rtmp-module/wiki/Directives#record.
##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...