简体   繁体   中英

Dash streaming on Nginx Plus

I have hls working on nginx plus, as per this gist: https://gist.github.com/45sound/0ed2d8f971314facf72c

I assumed I could add a new location like this:

location /dash{
dash;
root /var/www
}

but I get nginx: [emerg] unknown directive "dash" in /etc/nginx/conf.d/default.conf:21 when I restart server.

Ideally I want to serve hls and dash content from same server.
Best,
Vinny
FanFootage.com

Edit: http://nginx-rtmp.blogspot.ie/2013/11/mpeg-dash-live-streaming-in-nginx-rtmp.html is the example i followed, and both "dash" and "dash on" gives the same error.

Nginx Plus supports Apple HLS and Adobe HDS for video-on-demand (VOD) only. There is no mention of a DASH module.

You can always DASH yourself the files for VOD (eg: with the GPAC MP4Box ) and just serve the segments and manifests from any location block directly without a module.

The Nginx RTMP module offers support for MPEG-DASH live streaming. It also works with the basic version:

rtmp {         
    server {

        [...]           

        application dash {
             live on;
             dash on;
             dash_path /tmp/dash;
        }
    }
}

http {
    server {
         listen      8080;

         [...]

         location /dash {
             root /tmp;
             add_header Cache-Control no-cache;
         }
    }
}

The NGINX RTMP Module (supports DASH) is available with NGINX Plus. It can be found in the NGINX Plus Extras Package .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM