【问题标题】:nginx-rtmp-module -- unknown directive "dash_variant"nginx-rtmp-module -- 未知指令“dash_variant”
【发布时间】:2020-04-23 15:18:14
【问题描述】:

我在 nginx 中的 dash 应用程序遇到了一个奇怪的问题。如果我不在下面的代码中包含 dash_variant 行,一切正常。第二次我取消注释,nginx 配置失败,unknown directive "dash_variant"。我正在寻找添加dash_variant 指令,以便我可以根据用户带宽/连接的质量拥有不同的比特率流。任何帮助将不胜感激!提前致谢!

                     application dash {
                                allow play all;
                                live on;
                                #record all;
                                record off;
                                record_path videos;
                                record_unique on;
                                #allow publish <your_sender_ip_here>;
                                #allow publish 127.0.0.1;
                                #deny publish all;
                                meta copy;
                                wait_key on;
                                wait_video on;
                                idle_streams off;

                                # Dash settings and pushing towards repeaters
                                dash on;
                                dash_nested on;
                                dash_path /tmp/dash;
                                dash_fragment 3;
                                dash_playlist_length 20;
                                dash_cleanup on;

                                #dash_clock_compensation http_head;
                                #dash_clock_helper_uri https://localhost/time;

                                dash_variant _low bandwidth="500000"  width="640"  height="360";
                                dash_variant _med bandwidth="1500000" width="1280"  height="720";
                                dash_variant _high bandwidth="5000000" width="1920" height="1080" max;

                                #push rtmp://localhost/hls/hls; // it goes to generate a HLS streaming
                        }

【问题讨论】:

    标签: nginx mpeg-dash


    【解决方案1】:

    目前,根据文档不支持 dash_variant。如果你想使用 dash_variant,你可以使用 this 模块构建 nginx,它是实际模块的增强版本。

    RTMP DIRECTIVES

    【讨论】:

      猜你喜欢
      • 2018-11-23
      • 1970-01-01
      • 1970-01-01
      • 2011-12-12
      • 2017-07-28
      • 2020-04-09
      • 1970-01-01
      • 1970-01-01
      • 2020-08-24
      相关资源
      最近更新 更多