1

根据这个要点,我有 hls 在 nginx plus 上工作:https ://gist.github.com/45sound/0ed2d8f971314facf72c

我以为我可以像这样添加一个新位置:

位置/破折号{
破折号;
根 /var/www
}

但是当我重新启动服务器时,我在 /etc/nginx/conf.d/default.conf:21 中得到 nginx: [emerg] unknown directive "dash"。

理想情况下,我想从同一服务器提供 hls 和 dash 内容。
最好的, 文尼
FanFootage.com

编辑: http: //nginx-rtmp.blogspot.ie/2013/11/mpeg-dash-live-streaming-in-nginx-rtmp.html是我遵循的例子,“破折号”和“破折号”都给出同样的错误。

4

2 回答 2

1

Nginx Plus仅支持 Apple HLSAdobe HDS用于视频点播 (VOD)。没有提到DASH模块。

您始终可以DASH自己处理 VOD 文件(例如:使用GPAC MP4Box),并且无需模块即可直接从任何位置块提供片段和清单。

Nginx RTMP 模块提供对MPEG-DASH实时流的支持。它也适用于基本版本:

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;
         }
    }
}
于 2015-09-05T09:11:52.390 回答
0

NGINX RTMP 模块(支持 DASH)可用于 NGINX Plus。它可以在NGINX Plus Extras Package中找到。

于 2015-09-05T14:01:40.017 回答