Video quality detection method and system, electronic device and storage medium

By establishing a penetrating communication link through a cloud-based reverse proxy server and utilizing the port mapping relationship of the virtual real-time streaming protocol, the problem of low efficiency in 4G camera video quality detection is solved, achieving simplified operation and efficient automated detection.

CN120856906AInactive Publication Date: 2025-10-28E SURFING VISION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202511350882.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-22
Publication Date
2025-10-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The video quality inspection efficiency of 4G cameras is low, and traditional inspection methods cannot be connected to local area networks and are complicated to operate, resulting in low inspection efficiency and failing to meet the high-efficiency automation requirements of modern production lines.

Method used

By deploying a reverse proxy server in the cloud, a penetrating communication link is established from the PC client to the camera's local real-time streaming protocol service. By utilizing the mapping relationship between the virtual real-time streaming protocol port and the camera's identification information, transparent transmission and quality inspection of video data are achieved, simplifying the operation process.

Benefits of technology

It enables video quality inspection without the need for account binding or mobile phone use, improving inspection efficiency. It is compatible with standard real-time streaming protocols and existing PC client production testing tools, supports concurrent testing of multiple cameras, and enhances the automation and accuracy of inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120856906A_ABST
    Figure CN120856906A_ABST
Patent Text Reader

Abstract

The invention relates to a video quality detection method and system, an electronic device and a storage medium, and is used for a reverse proxy server, the reverse proxy server is deployed at a cloud, and the method comprises the following steps: obtaining camera identification information reported by a proxy client; when a real-time streaming transmission protocol request containing a virtual real-time streaming transmission protocol port initiated by the PC client is received, forwarding the request to a corresponding proxy client according to camera identification information corresponding to the virtual real-time streaming transmission protocol port; the virtual real-time stream transmission protocol port establishes a mapping relationship with the camera identification information in advance; receiving video data uploaded by the proxy client; the video data is locally acquired by the proxy client from the camera according to the forwarding request; and encapsulating the video data into a standard real-time stream transmission protocol response, and returning the real-time stream transmission protocol response to the PC client for video quality detection. A communication link can be established for video transmission, the process is simplified, and the video quality detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network camera testing technology, and in particular to video quality testing methods, systems, electronic devices, and storage media. Background Technology

[0002] Currently, video quality testing of network cameras can help monitor the stability and reliability of video transmission, promptly identify and eliminate video quality problems caused by various factors, and is a key link in production testing, directly affecting product performance and user experience.

[0003] Traditional detection methods rely on a local area network (LAN) environment, directly pulling video streams for analysis via real-time streaming protocols. However, with the widespread adoption of 4G cameras, these devices lack Wi-Fi modules and cannot connect to LANs, rendering traditional detection methods ineffective. Furthermore, related technologies require binding the 4G camera to a cloud-based user account and viewing real-time video via a mobile or PC client to complete the detection, resulting in complex operations and low testing efficiency, thus hindering the efficiency of video quality detection.

[0004] There is currently no effective solution to the problem of low efficiency in video quality detection using 4G cameras in related technologies. Summary of the Invention

[0005] This embodiment provides a video quality detection method, system, electronic device, and storage medium to address the problem of low efficiency in video quality detection using 4G cameras in related technologies.

[0006] Firstly, this embodiment provides a video quality detection method for a reverse proxy server deployed in the cloud; the method includes:

[0007] Obtain camera identification information reported by the proxy client;

[0008] When a real-time streaming protocol request containing a virtual real-time streaming protocol port is received from a PC client, the request is forwarded to the corresponding proxy client based on the camera identification information corresponding to the virtual real-time streaming protocol port; the virtual real-time streaming protocol port has a pre-established mapping relationship with the camera identification information;

[0009] Receive video data uploaded by the proxy client; wherein the video data is obtained by the proxy client from the camera locally according to the forwarding request;

[0010] The video data is encapsulated into a standard real-time streaming protocol response, and the real-time streaming protocol response is returned to the PC client for video quality detection.

[0011] In some embodiments, before obtaining the camera identification information reported by the proxy client, the method further includes:

[0012] Based on the connection with the proxy client, the system receives registration information sent by the proxy client; the registration information includes the camera identification information.

[0013] Establish a stable long-lived connection with the proxy client and maintain a heartbeat mechanism to keep the long-lived connection active.

[0014] In some embodiments, when a Real-Time Streaming Protocol (RTP) request containing a Virtual Real-Time Streaming Protocol (VRLP) port is received from a PC client, forwarding the request to the corresponding proxy client based on the camera identification information corresponding to the VRLP port includes:

[0015] Based on the camera identification information reported by the agent client, the virtual real-time streaming protocol port that matches the camera identification information is determined.

[0016] Secondly, this embodiment provides a video quality detection method for a proxy client, the proxy client being deployed inside a 4G camera or on an embedded module attached to the 4G camera; the method includes:

[0017] The system initiates a Real-Time Streaming Protocol (RTP) request to the reverse proxy server and reports the camera identification information; the reverse proxy server is deployed in the cloud.

[0018] Upon receiving a real-time streaming protocol request corresponding to the camera identification information, the system connects to the camera's local real-time streaming protocol service port according to the received real-time streaming protocol request to obtain video data.

[0019] The video data obtained from the local real-time streaming protocol service is encapsulated and transmitted to the reverse proxy server, which then sends the encapsulated video data to the PC client for video quality testing.

[0020] In some embodiments, the step of connecting to the camera's local Real-Time Streaming Protocol (RTP) service port according to the received RTP request to obtain video data upon receiving the RTP request includes:

[0021] Receive the Real-Time Streaming Protocol (RTP) request forwarded by the reverse proxy server, and pass the RTP request through to the camera's local RTP server.

[0022] The system receives response data parsed and processed by the local real-time streaming protocol server to obtain the video data.

[0023] Thirdly, this embodiment provides a video quality detection method for a PC client, including:

[0024] A Real-Time Streaming Protocol (RTP) connection request is initiated to the reverse proxy server, and the RTP request includes the target camera identification information; the reverse proxy server is deployed in the cloud.

[0025] Receive the Virtual Real-Time Streaming Protocol (VRLP) proxy address and port information returned by the reverse proxy server, and establish a connection with the reverse proxy server based on the VRLP proxy address and port information;

[0026] The video data encapsulated into a real-time streaming protocol response and forwarded by the reverse proxy server is subjected to quality inspection.

[0027] In some embodiments, the quality inspection method further includes:

[0028] The pre-set image analysis module automatically identifies abnormal phenomena in the video data.

[0029] The detection results containing the anomalies are uploaded to the reverse proxy server.

[0030] Fourthly, this embodiment provides a video quality detection system, including a PC client, a cloud platform, and a proxy client; the cloud platform is equipped with a reverse proxy server; the reverse proxy server is used to execute the video quality detection method described in the first aspect.

[0031] Fifthly, this embodiment provides an electronic device including a memory and a processor, the memory storing a computer program, and the processor being configured to run the computer program to perform the video quality detection method described in the first aspect.

[0032] In a sixth aspect, this embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the video quality detection method described in the first aspect.

[0033] Compared with related technologies, this embodiment provides a video quality detection method, system, electronic device, and storage medium. The video quality detection method is used in a reverse proxy server deployed in the cloud. In this method, firstly, camera identification information reported by the proxy client is obtained; then, upon receiving a Real-Time Streaming Protocol (RTP) request from a PC client containing a Virtual Real-Time Streaming Protocol (VRLP) port, the request is forwarded to the corresponding proxy client based on the camera identification information corresponding to the VRLP port; the VRLP port has a pre-established mapping relationship with the camera identification information; subsequently, video data uploaded by the proxy client is received; the video data is obtained locally from the camera by the proxy client based on the forwarding request; finally, the video data is encapsulated into a standard RTP response, and the RTP response is returned to the PC client for video quality detection. This method can establish a penetrating communication link from the PC client to the camera's local RTP service, is fully compatible with standard RTP protocols and existing PC client testing tools, requires no account binding or mobile phone use, simplifies the operation process, and improves video quality detection efficiency.

[0034] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0035] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0036] Figure 1 This is a hardware structure block diagram of the terminal of the video quality detection method according to an embodiment of this application;

[0037] Figure 2 This is a flowchart of a video quality detection method according to one embodiment of this application;

[0038] Figure 3 This is a flowchart of a video quality detection method according to one embodiment of this application;

[0039] Figure 4 This is a flowchart of a video quality detection method according to one embodiment of this application;

[0040] Figure 5 This is an overall timing diagram of a video quality detection system according to one embodiment of this application. Detailed Implementation

[0041] To better understand the purpose, technical solution, and advantages of this application, the application is described and explained below in conjunction with the accompanying drawings and embodiments.

[0042] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these” used in this application do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to these processes, methods, products, or devices. Words such as “connected,” “linked,” and “coupled” used in this application are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. Normally, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," "third," etc., used in this application are merely to distinguish similar objects and do not represent a specific order of objects.

[0043] Figure 1 This is a diagram illustrating the application environment of a video quality detection method in one embodiment of this application. For example... Figure 1 As shown, this video quality detection method is applied to a video quality detection system. This system includes a PC client 101, a reverse proxy server 102, a proxy client 103, and a local camera 104. The PC client 101 is responsible for sending requests and receiving video data from the reverse proxy server 102. The reverse proxy server 102 forwards requests from the PC client 101 to the proxy client 103 and receives video data from the proxy client 103. The proxy client 103 forwards requests from the reverse proxy server 102 to the local camera 104 and receives video data from the local camera. The local camera 104 pulls the video stream and obtains the video data. The reverse proxy server 102 is deployed in the cloud, and the proxy client 103 is deployed inside the 4G camera or on an embedded module attached to the 4G camera.

[0044] Specifically, first, PC client 101 sends a Real-Time Streaming Protocol (RTP) request to reverse proxy server 102; then, after receiving the RTP request containing a virtual RTP port, reverse proxy server 102 forwards the RTP request to the corresponding proxy client 103 based on the camera identification information corresponding to the virtual RTP port; next, proxy client 103 transmits the RTP request to the camera's local storage, obtains the video data pulled from the camera's local storage 104, and transmits it to reverse proxy server 102; finally, reverse proxy server 102 encapsulates the received video data into a standard RTP response and returns it to PC client 101 for video quality detection.

[0045] One embodiment provides a video quality detection method for a reverse proxy server deployed in the cloud. A custom reverse proxy service program is installed on a Linux server to set up the reverse proxy server. Listening ports are configured on the reverse proxy server; one port is used to listen for client connections, and the other port is used by PC clients to obtain the mapped proxy server address and port information. Figure 2 This is a flowchart of a video quality detection method according to one embodiment of this application, as shown below. Figure 2 As shown, the process includes the following steps:

[0046] Step S210: Obtain the camera identification information reported by the agent client.

[0047] The process involves the proxy client actively connecting to the cloud-based reverse proxy server, establishing a persistent connection (such as TCP or WebSocket), and reporting camera identification information to the reverse proxy server. This camera identification information originates from the proxy client deployed under the video quality inspection device, which may include, but is not limited to, 4G network cameras, edge computing devices, or embedded vision modules. The camera identification information serves as a unique identifier for the video quality inspection device, establishing a mapping relationship between the proxy client and the reverse proxy server. The reverse proxy server can map different virtual real-time streaming protocol ports based on different camera identification information, serving as the external video stream access entry point.

[0048] Step S220: When a real-time streaming protocol request containing a virtual real-time streaming protocol port is received from a PC client, the request is forwarded to the corresponding proxy client according to the camera identification information corresponding to the virtual real-time streaming protocol port; the virtual real-time streaming protocol port has a pre-established mapping relationship with the camera identification information.

[0049] PC clients initiate video streaming requests by running video playback software (such as VLC media player or custom-developed client applications) that supports the Real-Time Streaming Protocol (RTSP). RTSP, a network protocol specifically designed to control real-time media streaming, is used to control the transmission of data with real-time characteristics, such as audio and video streaming. RTSP allows clients to send requests to servers to receive or control multimedia streams without affecting the actual data transmission path.

[0050] In its implementation, the PC client first obtains a pre-assigned virtual real-time streaming protocol port from the reverse proxy server. This port is dynamically bound to the unique identifier of the target camera. Then, the PC client uses the reverse proxy server's public IP address and the assigned virtual port number to construct a standard real-time streaming protocol connection request. Upon receiving this request, the reverse proxy server queries its internally maintained dynamic port mapping table to accurately forward the request to the corresponding long-lived connection channel of the proxy client. The entire transmission process fully preserves the control characteristics of the real-time streaming protocol and ensures the security of the video stream transmission. This architecture allows the PC client to obtain the video stream simply by accessing the virtual real-time streaming protocol port, without needing to be aware of the actual network location of the camera.

[0051] Step S230: Receive video data uploaded by the proxy client; wherein the video data is obtained by the proxy client from the camera locally according to the forwarding request.

[0052] The proxy client receives a Real-Time Streaming Protocol (RTP) request forwarded from the reverse proxy server and forwards the request to the RTP server located on the camera's local machine. It then receives the response data returned by the local RTP server after parsing and processing, thus obtaining the video data. After acquiring the video stream, the proxy client encapsulates the video data and uploads it to the reverse proxy server via the existing connection, ensuring data integrity and transmission reliability during the transmission process.

[0053] Step S240: Encapsulate the video data into a standard real-time streaming protocol response and return the real-time streaming protocol response to the PC client for video quality detection.

[0054] The reverse proxy server reconstructs and encapsulates the received video data stream according to the standard Real-time Transport Protocol (RTP) specification. First, it retains the payload and timing information of the original RTP data packets, adds necessary protocol header fields, and adds auxiliary metadata for quality inspection. After encapsulation, the reverse proxy server returns the reconstructed standard RTP response to the PC client and performs quality inspection on the video.

[0055] While 4G cameras offer advantages such as flexible deployment and wide-area coverage in video surveillance, their unique network transmission architecture presents significant limitations in traditional quality inspection solutions. Specifically, these devices lack local Wi-Fi modules, preventing direct access to a local area network (LAN) for real-time video streaming, rendering LAN-based automated inspection systems completely ineffective. Furthermore, existing cloud-based inspection solutions rely on complex account binding and manual operation processes, resulting in low efficiency and inconsistent accuracy. These factors combined make 4G camera quality inspection time-consuming and labor-intensive, failing to meet the demands of modern production lines for efficient automated inspection. Therefore, key issues such as the complexity of 4G camera operation and low testing accuracy remain, hindering the efficiency of video quality inspection.

[0056] Steps S210 to S240 above involve: first, obtaining the camera identification information reported by the proxy client; then, upon receiving a Real-Time Streaming Protocol (RTP) request from the PC client containing a virtual RTP port, forwarding the request to the corresponding proxy client based on the camera identification information corresponding to the virtual RTP port; the virtual RTP port has a pre-established mapping relationship with the camera identification information; subsequently, receiving video data uploaded by the proxy client; the video data is obtained locally from the camera by the proxy client based on the forwarding request; finally, encapsulating the video data into a standard RTP response and returning the RTP response to the PC client for video quality detection. This method establishes a penetrating communication link from the PC client to the camera's local RTP service, is fully compatible with standard RTP protocols and existing PC client testing tools, eliminates the need for account binding or mobile phone use, simplifies the operation process, and improves video quality detection efficiency.

[0057] In one embodiment, before obtaining the camera identification information reported by the proxy client, the method further includes:

[0058] Based on the connection with the proxy client, it receives registration information sent by the proxy client; the registration information includes camera identification information; it establishes a stable long connection with the proxy client and maintains a heartbeat mechanism to keep the long connection active.

[0059] In the initial phase, the reverse proxy server establishes and maintains a persistent long-lived connection with the proxy client. When the proxy client connects for the first time, it proactively sends registration information to the reverse proxy server. This information includes core details such as the camera's unique serial number (SN) and current camera status. Upon receiving the registration information, the reverse proxy server stores it in a dynamic mapping database and allocates a virtual real-time streaming protocol port for the connection. To maintain connection activity, the reverse proxy server and the proxy client periodically check the link status via a heartbeat mechanism. If no heartbeat response is received multiple times consecutively, the connection is considered invalid, and a reconnection process is triggered. The entire connection establishment and maintenance process employs two-way certificate authentication to ensure communication security and provide a stable and reliable communication foundation for subsequent video streaming.

[0060] In one embodiment, upon receiving a Real-Time Streaming Protocol (RTP) request from a PC client containing a virtual real-time streaming protocol port, the request is forwarded to the corresponding proxy client based on the camera identification information corresponding to the virtual RTP port. Specifically, this may include:

[0061] Based on the camera identification information reported by the agent client, determine the virtual real-time streaming protocol port that matches the camera identification information.

[0062] When the reverse proxy server receives a Real-Time Streaming Protocol (RTP) request from a PC client destined for a specific virtual RTP port, the reverse proxy server first parses the RTP port in the request message. Then, it queries a pre-established dynamic mapping database to quickly retrieve the complete mapping record bound to that RTP port, including the camera's unique identifier (SN), the RTP port, and the port status flag. After verifying the long-connection status of the proxy client via a heartbeat packet, the reverse proxy server accurately forwards the standardized request to the target proxy client through the long-connection channel. The entire process is fast and secure, and any routing failure immediately returns a standardized RTP error response, ensuring the system's real-time performance and reliability. This routing mechanism based on RTP ports ensures the stability of the video quality detection system under large-scale concurrent access from devices.

[0063] In one embodiment, a video quality detection method is provided for a proxy client, which is deployed inside a 4G camera or on an embedded module attached to the 4G camera. Figure 3 This is a flowchart of a video quality detection method according to one embodiment of this application, as shown below. Figure 3 As shown, the process includes the following steps:

[0064] Step S310: Send a request to the reverse proxy server and report the camera identification information; the reverse proxy server is deployed in the cloud.

[0065] Step S320: Upon receiving a real-time streaming protocol request corresponding to the camera identification information, connect to the camera's local real-time streaming protocol service port according to the received real-time streaming protocol request to obtain video data.

[0066] Step S330 involves encapsulating the video data obtained from the local real-time streaming protocol service and transmitting the encapsulated video data to the reverse proxy server, which then sends the encapsulated video data to the PC client for video quality testing.

[0067] In steps S310 to S330 above, the reverse proxy server and the proxy client can establish a one-to-one mapping between virtual real-time streaming protocol ports and camera identification information. Therefore, the reverse proxy server can handle connections and requests from multiple cameras simultaneously, supporting multiple PC clients to concurrently test different cameras, improving testing efficiency, and enabling parallel video quality testing of local camera devices. PC clients do not need to repeatedly configure or switch network environments; they only need to specify different virtual ports to access video data from different cameras, which can improve efficiency in batch 4G camera production testing scenarios.

[0068] In one embodiment, upon receiving a Real-Time Streaming Protocol (RTP) request corresponding to camera identification information, the system connects to the camera's local RTP service port according to the received RTP request to obtain video data. Specifically, this may include:

[0069] It receives the Real-Time Streaming Protocol (RTP) request forwarded by the reverse proxy server and passes the RTP request through to the camera's local RTP server; it receives the response data returned after being parsed and processed by the local RTP server and obtains the video data.

[0070] As a communication relay hub, the proxy client's core function is to establish a transparent transmission channel between the reverse proxy server and the camera's local real-time streaming protocol service. Specifically: First, the proxy client receives data packets forwarded by the reverse proxy server and accurately identifies the source PC client corresponding to the request, but does not perform any parsing or processing of the real-time streaming protocol content within the data packets. Then, the proxy client establishes a connection with the camera's local real-time streaming protocol server and transmits the received raw request data packets completely and without loss to the local real-time streaming protocol server. During this process, the proxy client does not modify the real-time streaming protocol message content, does not participate in the protocol interaction process, and only acts as a byte stream transmission channel. The camera's local real-time streaming protocol server parses and processes the real-time streaming protocol request messages. Finally, the proxy client sends the encapsulated response data back to the cloud-based reverse proxy server through a pre-established long-lived connection channel.

[0071] It's worth noting that during data transmission, the proxy client receives data packets returned by the camera in real time, performing integrity checks and timing reassembly to ensure the continuity and synchronization of video frames. Simultaneously, the proxy client dynamically monitors network conditions, automatically triggering a retransmission mechanism when packet loss is detected to guarantee complete acquisition of video data. The final standardized video stream data is then transmitted back to the reverse proxy server via the established proxy client long connection, completing the end-to-end video transmission link. In addition to the video stream, real-time streaming protocol control signaling, including play, pause, and termination commands, is also transmitted bidirectionally through the aforementioned link, ensuring that the PC client can fully control the video stream. The entire process is fully compatible with the standard real-time streaming protocol stack and ensures the real-time performance and stability of data transmission.

[0072] One embodiment provides a video quality detection method for a PC client. Figure 4 This is a flowchart of a video quality detection method according to one embodiment of this application, as shown below. Figure 4 As shown, the process includes the following steps:

[0073] Step S410: Initiate a Real-Time Streaming Protocol (RTP) connection request to the reverse proxy server. The RTP request includes the target camera identification information. The reverse proxy server is deployed in the cloud.

[0074] Step S420: Receive the Virtual Real-Time Streaming Protocol (VRLP) proxy address and port information returned by the reverse proxy server, and establish a connection with the reverse proxy server based on the VRLP proxy address and port information.

[0075] Step S430: Perform quality inspection on the video data encapsulated into a real-time streaming protocol response that has been forwarded by the reverse proxy server.

[0076] Steps S410 to S430 above, through the relay of a cloud-based reverse proxy server, enable remote video quality inspection. Access to the video quality inspection device is achieved solely through the proxy address and port information of the Virtual Real-Time Streaming Protocol (VRLP), expanding the application scenarios for video quality inspection. Furthermore, the reverse proxy server uses a standardized VRLP to encapsulate the response video data transmitted to the PC client, ensuring the integrity and consistency of the video data during transmission, avoiding analysis errors caused by protocol differences, and improving the accuracy of video quality inspection results.

[0077] In one embodiment, the quality inspection method further includes:

[0078] The system automatically identifies anomalies in video data using a pre-set image analysis module and uploads the detection results containing the anomalies to the reverse proxy server.

[0079] The system offers a dual quality inspection mechanism on the PC client. First, a manual inspection mode allows testers to view video footage in real-time and intuitively assess subjective quality indicators such as image clarity and smoothness. Second, it automatically analyzes video quality by integrating computer vision algorithms to intelligently identify typical quality issues such as black screens (brightness below a threshold), screen distortion (abnormal image structure similarity), and stuttering (frame interval timeout). Inspection results are displayed in real-time through a visual interface, generating a structured quality report (including key parameters such as anomaly type, occurrence time, and duration) and automatically uploading it to the video quality management system, forming a complete closed-loop quality inspection process. While ensuring protocol compatibility, the entire system achieves visualization, indexing, and automation of the inspection process, reducing manual intervention and improving the overall intelligence and automation level of the production line.

[0080] Figure 5 This is an overall timing diagram of a video quality detection system according to one embodiment of this application. Figure 5 As shown, when the video quality inspection system starts, the camera first initializes the real-time streaming media server service locally. Subsequently, the proxy client deployed on the camera side actively connects to the cloud reverse proxy server, completes login, and reports registration information, including camera identification information.

[0081] After receiving the registration information, the reverse proxy server dynamically allocates a Virtual Real-Time Streaming Protocol (VRLP) port and establishes a mapping relationship between the VRLP port and the camera identification information. When the PC client needs to obtain the video stream, it first obtains the VRLP address and port information corresponding to the target camera from the reverse proxy server, and then initiates a standard Real-Time Streaming Protocol (RTP) connection request.

[0082] The reverse proxy server uses the port mapping table to find the corresponding proxy client connection.

[0083] After receiving the forwarding request, the proxy client connects to the camera's local real-time streaming protocol service port to obtain video data, and then sends the data back to the reverse proxy server through the established long connection channel. Finally, the server forwards the video stream to the PC client for decoding and playback.

[0084] The entire process achieves a bidirectional path from request forwarding to data return, including key steps such as connection establishment, request routing, and data relay, ultimately building a complete video data transmission link from the local camera to the PC client.

[0085] This embodiment also provides an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0086] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0087] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0088] S1, Obtain camera identification information reported by the agent client;

[0089] S2, when receiving a real-time streaming protocol request from a PC client that includes a virtual real-time streaming protocol port, forwards the request to the corresponding proxy client based on the camera identification information corresponding to the virtual real-time streaming protocol port; the virtual real-time streaming protocol port has a pre-established mapping relationship with the camera identification information;

[0090] S3 receives video data uploaded by the proxy client; the video data is obtained by the proxy client from the camera's local storage based on the forwarding request.

[0091] S4 encapsulates the video data into a standard real-time streaming protocol response and returns the real-time streaming protocol response to the PC client for video quality inspection.

[0092] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.

[0093] Furthermore, in conjunction with the video quality detection method provided in the above embodiments, this embodiment can also provide a computer-readable storage medium on which a computer program is stored.

[0094] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0095] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0096] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0097] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0098] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. A video quality detection method, characterized in that, For use with a reverse proxy server, the reverse proxy server being deployed in the cloud; the method includes: Obtain camera identification information reported by the proxy client; When a real-time streaming protocol request containing a virtual real-time streaming protocol port is received from a PC client, the request is forwarded to the corresponding proxy client based on the camera identification information corresponding to the virtual real-time streaming protocol port; the virtual real-time streaming protocol port has a pre-established mapping relationship with the camera identification information; Receive video data uploaded by the proxy client; wherein the video data is obtained by the proxy client from the camera locally according to the forwarding request; The video data is encapsulated into a standard real-time streaming protocol response, and the real-time streaming protocol response is returned to the PC client for video quality detection.

2. The video quality detection method according to claim 1, characterized in that, Before obtaining the camera identification information reported by the proxy client, the method further includes: Based on the connection with the proxy client, the system receives registration information sent by the proxy client; the registration information includes the camera identification information. Establish a stable long-lived connection with the proxy client and maintain a heartbeat mechanism to keep the long-lived connection active.

3. The video quality detection method according to claim 1, characterized in that, When receiving a real-time streaming protocol request from a PC client containing a virtual real-time streaming protocol port, the step of forwarding the request to the corresponding proxy client based on the camera identification information corresponding to the virtual real-time streaming protocol port includes: Based on the camera identification information reported by the agent client, the virtual real-time streaming protocol port that matches the camera identification information is determined.

4. A video quality detection method, characterized in that, For use as a proxy client, the proxy client being deployed inside a 4G camera or on an embedded module attached to a 4G camera; the method includes: The system initiates a Real-Time Streaming Protocol (RTP) request to the reverse proxy server and reports the camera identification information; the reverse proxy server is deployed in the cloud. Upon receiving a real-time streaming protocol request corresponding to the camera identification information, the system connects to the camera's local real-time streaming protocol service port according to the received real-time streaming protocol request to obtain video data. The video data obtained from the local real-time streaming protocol service is encapsulated and transmitted to the reverse proxy server, which then sends the encapsulated video data to the PC client for video quality testing.

5. The video quality detection method according to claim 4, characterized in that, Upon receiving a real-time streaming protocol request corresponding to the camera identification information, the system connects to the camera's local real-time streaming protocol service port according to the received real-time streaming protocol request to obtain video data, including: Receive the Real-Time Streaming Protocol (RTP) request forwarded by the reverse proxy server, and pass the RTP request through to the camera's local RTP server. The system receives response data parsed and processed by the local real-time streaming protocol server to obtain the video data.

6. A video quality detection method, characterized in that, For PC clients, including: A Real-Time Streaming Protocol (RTP) connection request is initiated to the reverse proxy server, and the RTP request includes the target camera identification information; the reverse proxy server is deployed in the cloud. Receive the Virtual Real-Time Streaming Protocol (VRLP) proxy address and port information returned by the reverse proxy server, and establish a connection with the reverse proxy server based on the VRLP proxy address and port information; The video data encapsulated into a real-time streaming protocol response and forwarded by the reverse proxy server is subjected to quality inspection.

7. The video quality detection method according to claim 6, characterized in that, The quality testing method further includes: The pre-set image analysis module automatically identifies abnormal phenomena in the video data. The detection results containing the anomalies are uploaded to the reverse proxy server.

8. A video quality inspection system, characterized in that, It includes a PC client, a cloud platform, and a proxy client; the cloud platform is equipped with a reverse proxy server; the reverse proxy server is used to execute the video quality detection method according to any one of claims 1 to 3.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the video quality detection method according to any one of claims 1 to 3.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the video quality detection method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method, device and system for forwarding data by real time streaming protocol (RTSP) proxy

    CN101989978A

  • Web camera monitoring method and system as well as server

    CN105872453A

  • A method and equipment for proxy forwarding of real-time streaming protocol streaming media data

    CN109862438A

  • Cross-network cloud remote monitoring system and method based on RTSP protocol

    CN110958432A

  • Camera video stream acquisition system and method

    CN113259626A

Cited By

  • Video quality defect intelligent detection system based on CV model and big data analysis

    CN121924289A