nginxs的RTMP模块记录的文件如何命名?

问题描述

我有一个正在运行的NGINX RTMP服务器,带有“全部记录”选项。文件已存储,但是我需要知道文件的命名方式,以便我可以设置VOD以便以后查看这些文件。 这是我的RTMP配置:

rtmp {
        server {
                listen 1935;
                chunk_size 4096; #uncoment this
                #notify_method get; #and this
                application live {
                             live on;
                             record all;
                             # files are stored here
                             record_path /var/www/html/recordings;
                             record_unique on;
                             wait_video on;
                             interleave on;
                             allow play 127.0.0.1;
                             deny play all;
                             access_log /var/log/nginx/access_live.log;
                }

                application output {
                        live on;
                        wait_video on;
                        interleave on;
                        record off;
                        allow play all;
                        pull rtmp://localhost/live/;
                        access_log /var/log/nginx/access_output.log;
                }

                application vod {
                        # I want to watch them in here,but I need to know the filename
                        play /var/www/html/recordings;
                }
        }
}

但这会保存名称为** stream-1600788165.flv **的文件。我可以理解流的来源,但其他数字似乎是随机的。有没有办法获取或覆盖文件名?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)