现代信息科技2024,Vol.8Issue(21) :57-60,66.DOI:10.19850/j.cnki.2096-4706.2024.21.012

Nginx-rtmp推拉流鉴权模式分析与应用研究

Research on Analysis and Application of Push and Pull Streaming Authentication Mode of Nginx-rtmp

郑超 张志国 李佳恒 焦金金 王子怡
现代信息科技2024,Vol.8Issue(21) :57-60,66.DOI:10.19850/j.cnki.2096-4706.2024.21.012

Nginx-rtmp推拉流鉴权模式分析与应用研究

Research on Analysis and Application of Push and Pull Streaming Authentication Mode of Nginx-rtmp

郑超 1张志国 2李佳恒 2焦金金 2王子怡1
扫码查看

作者信息

  • 1. 天津中医药大学图书馆,天津 301617
  • 2. 天津中医药大学教务处,天津 301617
  • 折叠

摘要

文章介绍了Nginx-rtmp回调机制的基本原理和相关变量应用方法,分析Nginx-rtmp服务器推流发布和拉流播放视频流鉴权方法,根据功能需求在Nginx服务器设计三个虚拟服务器,分别提供网络访问服务、rtmp视频流发布录制控制和Nginx-rtmp推拉流的鉴权服务,使用配置文件、虚拟服务器解析PHP、查询匹配虚拟服务器数据库三种途径对推拉数据流进行鉴权,不断增加推拉流并发量,记录其推拉流并发数量和响应时间,分析其效能,根据效能设置应用场景,为Nginx-rtmp服务器推拉流鉴权提供解决方案.

Abstract

This paper describes the basic principle and the application methods of related variables of the Nginx-rtmp callback mechanism,and analyzes the authentication methods for publishing of push streaming and playing video of pull streaming on Nginx-rtmp servers.In accordance with the functional requirements,it designs three virtual servers on the Nginx server to respectively provide network access services,rtmp video streaming control of publishing and recording,and authentication services for Nginx-rtmp push and pull streaming.It authenticates the push and pull streaming through three ways of configuration files,PHP resolution of virtual server,and database queries of matched virtual server.It continuously increases the concurrent number for push and pull streaming,records their concurrent number and response time,and analyzes the performance.According to the performance,it sets application scenarios,which provides solutions for push and pull streaming authentication of Nginx-rtmp server.

关键词

Nginx服务器/虚拟服务器/推流/鉴权/效能

Key words

Nginx server/virtual server/push streaming/authentication/performance

引用本文复制引用

出版年

2024
现代信息科技
广东省电子学会

现代信息科技

ISSN:2096-4706
段落导航相关论文