nginx rtmp模块——未知指令;破折号“U变体”;

nginx rtmp模块——未知指令;破折号“U变体”;,nginx,mpeg-dash,Nginx,Mpeg Dash,我在nginx中的dash应用程序中遇到了一个奇怪的问题。如果我在下面的代码中不包含破折号变量行,一切都正常。第二次我取消注释它们时,nginx配置失败,指令“dash\u variant”未知。我希望添加dash_variant指令,以便根据用户带宽/连接的质量拥有不同的比特率流。任何帮助都将不胜感激!提前谢谢 application dash { allow play all;

我在nginx中的dash应用程序中遇到了一个奇怪的问题。如果我在下面的代码中不包含破折号变量行,一切都正常。第二次我取消注释它们时,nginx配置失败,指令“dash\u 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
                        }
应用程序{
允许玩所有的游戏;
靠...过活
#全部记录;
记录;
录制视频;
记录上的唯一性;
#允许发布;
#允许发布127.0.0.1;
#拒绝发布所有信息;
元拷贝;
等一下,钥匙打开;
等一等;
闲散的溪流;
#短跑设置和向中继器推进
冲刺;
破折号;
仪表板路径/tmp/仪表板;
破折号3;
短跑播放列表长度20;
冲刺;
#仪表盘、时钟、补偿头;
#仪表盘\u时钟\u助手\u urihttps://localhost/time;
短跑变型低带宽=“500000”宽度=“640”高度=“360”;
dash_variant_med带宽=“1500000”宽度=“1280”高度=“720”;
dash_variant_高带宽=“5000000”宽度=“1920”高度=“1080”最大值;
#推rtmp://localhost/hls/hls;//它将生成HLS流
}

根据文档,目前不支持破折号变型。如果您想使用dash_variant,您可以使用模块构建nginx,该模块是实际模块的增强版