A solution for national standard stream without plug-ins

By creating a variety of services that support the GB28181 protocol, a plug-in-free solution for national standard flow is realized, which solves the problems of high differences and enclosure in the existing technology, and improves application and expansion performance.

CN115865872BActive Publication Date: 2025-05-27XINZHI DAOSHU (SHANGHAI) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211375481.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-04
Publication Date
2025-05-27
Estimated Expiration
2042-11-04

AI Technical Summary

Technical Problem

In the prior art, there are differences in the implementation of the GB28181 protocol and strongly closedness, which leads to various problems encountered by downstream manufacturers and engineers when connecting projects. The open part is only in the form of plug-ins, and the application and scalability are extremely poor.

Method used

By creating signaling interaction services, national standard stream parser, transcoding service, streaming media service, center management service and national standard stream monitoring service that supports GB28181 protocol, we realize a plug-in solution for national standard streaming, and support a variety of audio and video encoding formats, protocol conversion and data forwarding.

Benefits of technology

It realizes a plug-in-free solution of the GB28181 protocol, provides good application and high expansion performance, supports external use, and reduces the difficulties for downstream manufacturers and engineers in project docking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115865872B_ABST
    Figure CN115865872B_ABST
Patent Text Reader

Abstract

The present invention discloses a solution for national standard stream without plug-ins, which relates to the technical field of information processing. The present invention includes creating a signaling interaction service that supports the GB28181 protocol, a stream parser that supports the parsing of national standard streams, a transcoding service that supports multiple audio and video coding formats, a streaming media service that supports both pulling and pushing streams, and supports the RTSP protocol, RTMP protocol, HTTP-FLV protocol, HLS protocol, and WebSocket protocol, a central management service that supports service scheduling, negotiation operation, and external user interaction, and a national standard stream monitoring service that monitors the access status, running status, and running quality of the national standard stream in real time. The solution for national standard stream without plug-ins of the present invention can realize the national standard stream without plug-ins, is non-closed, can be used externally, and has good applicability and high expandability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of information processing, and in particular relates to a solution for solving the problem of national standard flow without plug-in. Background Art

[0002] The full name of GB28181 protocol is GB / T28181 "Technical Requirements for Information Transmission, Exchange and Control of Networked Security Video Surveillance Systems". It is a national standard proposed by the Science and Technology Information Bureau of the Ministry of Public Security, managed by the National Security Alarm System Standardization Technical Committee (SAC / TC100), and jointly drafted by multiple units of the Ministry of Public Security.

[0003] GB28181 protocol session channel actually uses SIP protocol, and privatizes it based on SIP protocol. SIP is a protocol developed by IETF MMUSIC working group, and is proposed as a standard for creating, modifying and terminating interactive sessions including video, voice, instant messaging, online games and virtual reality and other multimedia elements. SIP protocol will work together with other protocols, such as SIP message content sending session description protocol (SDP), SDP protocol describes the details of the streaming media used in the session, such as: which IP port is used, which codec is used, etc. A typical use of SIP protocol is: SIP session transmits some simple real-time transport protocol streams through messages, and RTP itself is the carrier of voice or video. In the GB28181 protocol, when the networked system is transmitting and controlling audio and video, two transmission channels including a session channel and a media stream channel should be established; the session channel is used to establish sessions between devices and transmit system control commands; the media stream channel is used to transmit audio and video data. The compressed and encoded audio and video streams are transmitted using the streaming media protocol RTP / RTCP. The media streams transmitted in the GB28181 protocol media channel are encapsulated in the MPEG2-PS format, the full name of which is ProgramStream, referred to as PS stream. Because the standards in the GB28181 protocol specification are adopted, the PS stream is also called the national standard stream. The GB28181 protocol is widely used in national safe city, transportation, road and other monitoring. If you want to build a unified large-scale monitoring platform, it is essential to support the access of the GB28181 protocol. Now many manufacturers want to expand on the basis of the GB28181 protocol platform used before. From the first version of the GB28181 protocol formulated in 2011 to the latest 2016 version, the content of the protocol has become more and more detailed and more and more complete. This standard has been widely used in the security field.

[0004] Although the protocol standards are unified, each manufacturer develops its own platform according to its own understanding, and there are always some differences in the products implemented. Moreover, a closed strategy is adopted, and the platform software is only used in its own projects and not provided for external use. Downstream manufacturers and engineering contractors often encounter various problems during project docking. The externally open part of each platform is only in the form of plugins, with extremely poor applicability and scalability. Summary of the Invention

[0005] The present invention provides a GB stream plug-in-free solution to solve the above problems.

[0006] To solve the above technical problems, the present invention is implemented through the following technical solutions:

[0007] A GB stream plug-in-free solution of the present invention includes:

[0008] Create a signaling interaction service that supports the GB28181 protocol. The signaling interaction service performs signaling interaction and media stream negotiation with the GB stream provider through the SIP protocol in the GB28181 protocol specification;

[0009] Create a stream parser that supports GB stream parsing. The stream parser supports parsing the PS format GB stream provided by the GB stream provider and simultaneously supports parsing RTP format data packets;

[0010] Create a transcoding service that supports multiple audio and video coding formats. The transcoding service performs optimized transcoding for different types of audio and video coding formats provided by the GB stream provider;

[0011] Create a streaming media service that supports pull stream and push stream methods, and supports RTSP protocol, RTMP protocol, HTTP-FLV protocol, HLS protocol, and WebSocket protocol. The streaming media service performs media stream storage, protocol conversion, and data forwarding for the optimized GB stream;

[0012] Create a central management service that supports service scheduling, negotiation operation, and external user interaction. The central management service; the central management service internally schedules the operation of each service and stores GB stream information and status in an sqlite database, and externally provides a user interface in the HTTP manner;

[0013] Create a GB stream monitoring service that monitors the access status, running status, and running quality of the GB stream in real time.

[0014] Further, the specific services of the signaling interaction service include processing platform registration and cancellation in the GB28181 protocol specification, obtaining a series of national standard stream directories, sending and receiving access requests for national standard streams, and sending and receiving requests to disconnect the connected national standard streams.

[0015] Further, the stream parser supports PS format national standard streams provided by national standard stream providers, separating video and audio streams in the national standard streams, and parsing the audio and video coding formats, bitstream bitrates, and timestamp information therein.

[0016] Further, the stream parser supports parsing RTP packets for loading PS national standard streams, receiving RTP packets, and subsequent classification, parsing, timeout response, and sorting of RTP packets.

[0017] Further, the transcoding service supports transcoding national standard stream video coding formats including H264, H265, and SVAC formats, supports transcoding national standard stream audio coding formats including AAC, G711A, and G711U formats, and supports repackaging and pass-through of the original coding format of the national standard stream.

[0018] Further, the specific services of the streaming media service include protocol conversion, stream storage, and stream distribution functions for transcoded national standard streams or non-national standard streams, providing stream play strings in multiple protocols, registration and cancellation management of streams, pulling and pushing of streams, stream connection management, delayed play processing, bitrate control, and traffic monitoring.

[0019] Further, the central management service supports providing a user interface in the HTTP manner externally, and the user interface is used for including stream information storage, stream information query, permission authentication, and secure stream access; the central management service supports internal operation scheduling, behavior monitoring, and operation status monitoring among various services, and uses the publish-subscribe method of Redis for message communication among services.

[0020] Further, the specific services of the national standard stream monitoring service support include using image analysis technology to perform quality analysis on video images, counting the time for processing national standard streams by services at different stages, and generating a quality monitoring and analysis report.

[0021] The present invention has the following beneficial effects compared with the prior art:

[0022] (1) This technical solution realizes national standard streams without plug-ins, is non-closed, can be used externally, and has good applicability and high scalability.

[0023] (2) The signaling interaction service of this technical solution supports the GB28181 protocol, supports configuring national standard encoding and the port number of the signaling channel; supports the registration and cancellation functions of all terminal devices, device manufacturers, and subordinate platforms that apply the GB28181 protocol specification to the signaling interaction service; authenticates the identity of the registrant; supports signaling communication in both UDP and TCP modes; can obtain the national standard streaming media directory channel information provided by the subordinate platform or NVR device through the SIP protocol; can test the status of the registrant through heartbeats; can send a streaming media negotiation request to the subordinate through the SIP protocol to agree on the content of the streaming media transmission channel between the two parties; can send a command to close the streaming media channel to the subordinate at any time through the SIP protocol to close the currently used streaming media channel negotiated between the two parties; communicates with the central management service to convey the negotiated media stream channel information;

[0024] (3) The national standard stream parser of this technical solution supports parsing the PS format national standard stream provided by the national standard stream provider and simultaneously supports parsing RTP format data packets; supports three access methods for the national standard stream: UDP, TCP active, and TCP passive. It is responsible for parsing RTP protocol packets and has the function of retransmitting and sorting RTP packets; it is responsible for parsing PS encapsulated format packets, parsing and separating the encoding format, timestamp, and bit rate of the media stream therein; it is responsible for allocating the port number of the national standard stream and determining the transmission method; supports the configuration of the national standard stream parser, including the receivable port range, the IP address and port where the stream parser is deployed; communicates with the transcoding service and provides the separated original raw stream to the transcoding service;

[0025] (4) The transcoding service of this technical solution optimizes transcoding for different types of audio and video encoding formats provided by the national standard stream provider, receives the raw stream from the stream parser, and parses messages such as resolution from the raw stream; transcodes video encoding formats such as H264, H265, and SVAC; transcodes audio encoding formats such as AAC, G711A, and G711U; corrects and adjusts the timestamp of the media stream; can package the transcoded stream in RTP protocol and deliver it to the streaming media service; supports the configuration management of the encoding method, and can specify the format of the transcoded media stream by adjusting the template;

[0026] (5) The streaming media service of this technical solution supports pull streaming and push streaming modes, and supports RTSP protocol, RTMP protocol, HTTP-FLV protocol, HLS protocol, and WebSocket protocol. It performs media stream storage, protocol conversion, and data forwarding for the optimized national standard stream; obtains relevant media streams through the protocol playback address supported by any streaming media, including real-time stream address and stored file stream address; has the push streaming function and can push relevant media streams to the protocol address supported by any streaming media service; has the storage function, and the pulled media stream can be encapsulated into files in different formats for storage, and details such as the size, date, and relevant encoding format of the file are recorded; has the streaming media connection registration management function and can monitor the disconnection of the connection between the receiving end and the pushing end; can configure the stream reception timeout time and push timeout response of the streaming media to adapt to the national standard stream under different network conditions; supports the HTTP HOOK method and provides the stream status and key time points to the monitoring party.

[0027] (6) The central management service of this technical solution is responsible for task scheduling between various services. It communicates with each service through the publish-subscribe method of Redis, controls the behavior and timing of each service, and obtains and forwards the messages of each service; is responsible for resource scheduling between various services, records the deployment situation of each service, such as IP, port number, and push streaming address of the streaming media; is responsible for the management of the national standard stream, including creating a unique identifier for the national standard stream information, managing the national standard signaling channel and the streaming media channel; is responsible for the persistence of data related to the national standard stream and uses the sqlite database for local storage; is responsible for providing user interfaces externally, and this interface adopts the HTTP RESTFUL method. Users can control service behaviors through relevant interfaces, including querying the running status of the national standard stream, querying the service resource occupancy, and enabling the access of the national standard stream.

[0028] (7) The national standard stream monitoring service of this technical solution is responsible for monitoring the running status of the national standard stream and collecting the running time between various services; is responsible for detecting the streaming media quality of the national standard stream and monitoring the network status of the streaming media channel; generates a monitoring report and publishes the results to subscribers through Redis messages.

[0029] Of course, it is not necessary for any product implementing the present invention to achieve all the above-mentioned advantages simultaneously. Description of the Drawings

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0031] Figure 1 Schematic diagram of the working principle corresponding to a plug - in - free solution for national standard stream in the present invention;

[0032] Figure 2 Interaction sequence diagram of the national standard stream access service for a plug - in - free solution for national standard stream in the present invention;

[0033] Figure 3 Technical framework diagram corresponding to a plug - in - free solution for national standard stream in the present invention;

[0034] Figure 4 Flowchart of national standard stream processing for a plug - in - free solution of national standard stream in the present invention. Specific implementation manners

[0035] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.

[0036] Please refer to Figure 1 As shown, it is a schematic diagram of the principle of a plug - in - free solution for national standard stream in the present invention. This structure diagram elaborates the structural schematic of the invention, and the implementation method according to this structure is as follows;

[0037] The central management service, on the one hand, provides HTTP / HTTPS user interaction interfaces externally for direct access by the front - end browser, and on the other hand, supports indirect access through the nginx proxy server, and can provide NET traversal, address conversion, and stream proxy. Secondly, this service determines that the publishing channel of redis is A and the subscribing channel is B according to the configuration file, and conducts message communication with other services through the publish - subscribe method of redis, and the message format is determined as Json. At the same time, this service can also receive Http messages of the streaming media service and can capture relevant actions of the streaming media service by users. The central management service is connected to the sqlite database to persistently store the channel directory information, operation status, quality monitoring reports, etc. of the national standard stream.

[0038] The signaling interaction service, on the one hand, conducts SIP protocol communication with NVR, lower - level platforms, cameras, etc. to negotiate relevant media stream channels, and on the other hand, this service sends a registration message to channel B of Redis to notify the central management service of the unique identifier of this service. In the communication with Redis, it also includes real - time publishing of signaling interaction results to channel B of Redis.

[0039] The transcoding service integrates a stream parser, which is responsible for the access of national standard streams and the transcoding of national standard streams. On the one hand, the NVR, the lower-level platform, and the camera send national standard streams in the PS format of RTP / RTCP to the transcoding service. On the other hand, the transcoding service outputs streams in the RTP format to the streaming media service. At the same time, the transcoding service communicates with the central management service through redis to determine the receiving stream port information and the address pushed to the streaming media.

[0040] The streaming media service, on the one hand, communicates with the central management service through Redis to determine the unique identifier of the national standard stream, the push stream address, and the pull stream address. On the other hand, it obtains the RTP stream from the transcoding service through the pull stream address. At the same time, by calling the HTTP HOOK address configured in the configuration file, it transmits real-time stream status such as stream registration, stream disconnection, and protocol format to the central service.

[0041] The national standard stream monitoring service, on the one hand, obtains the stream from the streaming media address and monitors the quality of the stream, monitoring the acquisition speed of the stream and the network status. On the other hand, it reports the national standard stream quality report and the national standard stream opening time-consuming report to the central service through Redis. This service can also publish the results to a third-party service through Redis.

[0042] The Web front end includes a video playback component, which can call an Http request to the central management service to query device information, platform information, status information, the national standard stream playback address, etc. Through the national standard stream playback address returned by the central management service, it requests to play the national standard stream provided by a certain source device or the lower-level platform.

[0043] See Figure 2 , which is the interaction sequence diagram of the national standard stream access service in the national standard stream plug-in-free solution of the present invention. This diagram provides a simple interaction process for applying this solution, and the specific process is as follows:

[0044] S1. The Web front end calls an Http request to request the channel directory list of the national standard stream from the central management service.

[0045] S2. The central management service replies to the request and returns the channel information carrying the playback string.

[0046] S3. The Web front end selects a national standard channel playback string and passes it to the video playback component.

[0047] S4. The video playback component requests this playback string from the streaming media service, establishes an RTSP / FLV protocol session, and requests to receive the streaming media.

[0048] S5. When the streaming media service determines that there is a national standard stream push for this playback string, it will directly establish a connection and the process ends.

[0049] S6. When the streaming media service determines that there is no national standard stream pushed for the playback stream, it sends an Http request to the central management service to notify it to conduct national standard streaming media negotiation with the national standard stream provider.

[0050] S7. The central management service requests the transcoding service to allocate a receiving stream port through the Redis service, obtains the supported media transmission methods, and the transcoding service allocates resources and initializes the processing process, waiting for the push of the national standard stream.

[0051] S8. The central management service publishes the stream opening request information to the signaling interaction service through the Redis service.

[0052] S9. The signaling interaction service conducts media stream negotiation with the source device or the lower-level platform using the SIP protocol.

[0053] S10. After the negotiation is successful, the central will receive the stream sending IP, port number, transmission method, etc. of the national standard stream.

[0054] S11. The lower-level platform uses the RTP protocol to push the national standard stream (PS stream) to the specified IP port.

[0055] S12. After receiving the national standard stream, the stream parser parses it and sends it to the transcoding service for transcoding. The transcoded stream is pushed to the streaming media through the RTSP protocol.

[0056] S13. After receiving the transcoded stream, the streaming media pushes the stream to the front-end video player, and the RTSP / FLV protocol session is established.

[0057] See Figure 3, which is a technical architecture diagram in the national standard stream plugin-free solution. It is divided into an application layer, a service layer, a component scheduling layer, and an access device layer from top to bottom. The application layer includes components such as an Http client and a Web player, which are the service objects of this invention patent. The Http client calls the service layer request in a Restful manner, and the message format is specified as Json format. The Web player obtains the video stream from the service layer through rtsp, http-flv, websocket, etc. The service layer uses data caching Redis and the database Sqlite3. The central management service located in the service layer has the access capabilities and technologies for redis, websocket, rest, http, and sqlite. The streaming media service in the service layer has the ability to support protocols such as flv, rtsp, rtmp, and rtp, and at the same time has the ability to communicate with the central management service via http. The transcoding service in the service layer can push rtsp / rtp streams for the streaming media on the one hand, and communicate with the central management service via Redis messages on the other hand. The component scheduling layer has GB28181 and Onvif components, which can communicate with the access devices via the SIP protocol and the Onvif protocol respectively downward, and communicate with the service layer via Redis messages upward. The objects in the access device layer are the providers of the national standard stream, and the core function is to provide the national standard stream to the transcoding service in the service layer.

[0058] Figure 4 It is a way to parse the national standard stream in a national standard stream plugin-free solution. First, parse the RTP stream provided by the national standard stream provider to obtain that the RTP stream payload data format is MPEG-PS. Send the PS stream into the PS stream parser for parsing. After parsing, the PS stream will be divided into a video raw stream and an audio raw stream, and at the same time, the encoding format, timestamp, and bit rate information of the video raw stream and the audio raw stream can be obtained. The video raw stream and the audio raw stream are respectively sent to the transcoder for transcoding to obtain the transcoded video stream and audio stream. Pack the two streams in the RTP manner and reassign timestamps, and send them to the streaming media for format encapsulation via the RTSP protocol. According to the request string protocol type of the player, the corresponding HttpFlv, websocket format, or Rtsp, Rtmp protocol data packets are output. The process ends here.

[0059] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the present invention, so that those skilled in the art in the relevant technical field can understand and utilize the present invention well. The present invention is only limited by the claims and their full scope and equivalents.

Claims

1. A solution for national standard stream without plug-ins, characterized in that, it includes: Create a signaling interaction service that supports the GB28181 protocol. The signaling interaction service conducts signaling interaction and media stream negotiation with the national standard stream provider through the SIP protocol in the GB28181 protocol specification; Create a stream parser that supports the parsing of national standard streams. The stream parser supports parsing the PS format national standard streams provided by the national standard stream provider and also supports parsing RTP format data packets; Create a transcoding service that supports multiple audio and video coding formats. The transcoding service performs optimized transcoding for different types of audio and video coding formats provided by the national standard stream provider; Create a streaming media service that supports both pulling and pushing streams, and supports the RTSP protocol, RTMP protocol, HTTP-FLV protocol, HLS protocol, and WebSocket protocol. The streaming media service stores media streams, performs protocol conversion, and forwards data for the optimized national standard stream; Create a central management service that supports service scheduling, negotiation operation, and external user interaction. The central management service schedules the operation of each service internally, stores national standard stream information and status using an sqlite database, and provides a user interface in the HTTP manner externally; Create a national standard stream monitoring service that monitors the access status, running status, and running quality of the national standard stream in real time; The implementation method is as follows: The central management service, on the one hand, provides a user interaction interface of HTTP / HTTPS externally for direct access by the front-end browser, and on the other hand, supports indirect access through the nginx proxy server, providing NET traversal, address conversion, and stream proxy; Secondly, this service determines that the publishing channel of redis is A and the subscribing channel is B according to the configuration file, and conducts message communication with other services through the publish-subscribe method of redis. The message format is determined to be Json; at the same time, this service can also receive the Http messages of the streaming media service and the user captures the relevant actions of the streaming media service; The central management service is connected to the sqlite database to persistently store the channel directory information, running status, and quality monitoring reports of the national standard stream; The signaling interaction service, on the one hand, conducts SIP protocol communication with the NVR, lower-level platform, and camera to negotiate the relevant media stream channels, and on the other hand, this service sends a registration message to the channel B of Redis to notify the central management service of its unique identifier; in the communication with Redis, it also includes real-time publishing of the signaling interaction results to the channel B of Redis; The transcoding service integrates a stream parser and is responsible for the access and transcoding of the national standard stream; On the one hand, the NVR, lower-level platform, and camera send the PS format national standard stream of RTP / RTCP to the transcoding service, and on the other hand, the transcoding service outputs the RTP format stream to the streaming media service. At the same time, the transcoding service conducts message communication with the central management service through redis to determine the receiving stream port information and the address pushed to the streaming media; The streaming media service communicates with the central management service through Redis to determine the unique identifier of the national standard stream, the push stream address, and the pull stream address. On the other hand, it obtains the RTP stream from the transcoding service through the pull stream address. At the same time, by calling the HTTP HOOK address configured in the configuration file, it transmits the stream registration, stream disconnection, and real-time stream status of the protocol format to the central service; The national standard stream monitoring service, on the one hand, obtains the stream from the streaming media address and monitors the quality of the stream, including the acquisition speed and network status of the stream. On the other hand, it reports the national standard stream quality report and the national standard stream opening time-consuming report to the central service through Redis. This service can also publish the results to a third-party service through Redis; The Web front-end contains a video playback component, which calls an Http request to the central management service to query device information, platform information, status information, and the national standard stream playback address. Through the national standard stream playback address returned by the central management service, it requests to play the national standard stream provided by a certain source device or lower-level platform; The simple interaction process of applying this solution is as follows: S1. The Web front-end calls an Http request to request the channel directory list of the national standard stream from the central management service; S2. The central management service replies to the request and returns the channel information carrying the playback string; S3. The Web front-end selects a national standard channel playback string and passes it to the video playback component; S4. The video playback component requests this playback string from the streaming media service, establishes an RTSP / FLV protocol session, and requests to receive the streaming media; S5. When the streaming media service determines that there is already a national standard stream push for this playback string, it will directly establish a connection and the process ends; S6. When the streaming media service determines that there is no national standard stream push for this playback string, it sends an Http request to the central management service to notify it to conduct national standard streaming media negotiation with the national standard stream provider; S7. The central management service requests the transcoding service to allocate a stream receiving port through the Redis service, obtains the supported media transmission methods, and the transcoding service allocates resources and initializes the processing process, waiting for the push of the national standard stream; S8. The central management service publishes the stream opening request information to the signaling interaction service through the Redis service; S9. The signaling interaction service conducts media stream negotiation with the source device or lower-level platform using the SIP protocol; S10. After successful negotiation, the central will receive the national standard stream sending IP, port number, and transmission method; S11. The lower-level platform uses the RTP protocol to push the national standard stream, i.e., the PS stream, to the specified IP port; S12. After receiving the national standard stream, the stream parser parses it and sends it to the transcoding service for transcoding; The transcoded stream is pushed to the streaming media through the RTSP protocol; S13. After receiving the transcoded stream, the streaming media pushes the stream to the front-end video player, and the RTSP / FLV protocol session is established; A method of parsing the national standard stream in the national standard stream plug-in-free solution; First, parse the RTP stream provided by the national standard stream provider to obtain that the RTP stream payload data format is MPEG-PS; Send the PS stream into the PS stream parser for parsing. After parsing, the PS stream will be divided into a video raw stream and an audio raw stream, and at the same time, obtain the encoding format, timestamp, and bitrate information of the video raw stream and the audio raw stream; the video raw stream and the audio raw stream are respectively sent into the transcoder for transcoding to obtain the transcoded video stream and audio stream; Pack the two streams in the RTP manner, reassign the timestamp, and send them into the streaming media for format encapsulation through the RTSP protocol; According to the request string protocol type of the player, output data packets in the HttpFlv, websocket format, or Rtsp, Rtmp protocol accordingly.

2. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The specific services of the signaling interaction service include processing platform registration and cancellation in the GB28181 protocol specification, obtaining a series of national standard stream directories, sending and receiving access requests for national standard streams, and sending and receiving requests to disconnect the already connected national standard streams.

3. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The stream parser supports PS format national standard streams provided by national standard stream providers, separates the video and audio streams in the national standard stream, and parses the audio and video encoding formats, bitstream bitrates, and timestamp information therein.

4. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The stream parser supports parsing RTP packets for loading PS national standard streams, receiving RTP packets, and subsequent classification, parsing, timeout response, and sorting of RTP packets.

5. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The transcoding service supports transcoding national standard stream video encoding formats including H264, H265, and SVAC formats, supports transcoding national standard stream audio encoding formats including AAC, G711A, and G711U formats, and supports repackaging and pass-through of the original encoding format of the national standard stream.

6. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The specific services of the streaming media service include protocol conversion, stream storage, and stream distribution functions for the transcoded national standard streams or non-national standard streams, provide stream play strings in multiple protocols, registration and cancellation management of streams, pulling and pushing of streams, stream connection management, delay play processing, bitrate control, and traffic monitoring.

7. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The central management service supports providing a user interface in the HTTP manner externally, and the user interface is used for including stream information storage, stream information query, permission authentication, and secure stream access; the central management service supports internal operation scheduling, behavior monitoring, and operation status monitoring among various services, and uses the publish-subscribe method of Redis for message communication among services.

8. A method for solving the problem of no plug-in for national standard streams according to claim 1, characterized in that, The specific service support for the national standard stream monitoring service includes using image analysis technology to perform quality analysis on video images, counting the time for processing the national standard stream in different service stages, and generating a quality monitoring analysis report.

Citation Information

Patent Citations

  • Plug flow web playing method and system based on national standard GB28181

    CN115174545A