A method for analyzing surveillance video frame loss to determine switch performance

By accessing multiple brands of surveillance cameras and configuring code streams, and using ESEyE software to analyze video files, the problem of low switch test efficiency and inability to accurately determine frame loss in the existing technology has been solved, enabling fast and accurate switch performance evaluation, improving improve testing efficiency and accuracy.

CN115941573BActive Publication Date: 2024-09-24SICHUAN TIANYI COMHEART TELECOM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211566612.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2024-09-24
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

The production testing efficiency of existing switches is low, especially in NVR surveillance scenarios. The method of manually reviewing surveillance videos by copying them is inefficient and cannot accurately judge the performance of the switch, especially when the video is fully loaded and the video frame is lost.

Method used

By connecting multiple brands of surveillance cameras, configuring the main stream and auxiliary stream, using ESEyE software to transfer the video files into key frame statistics in table format, and combining the fixed frame number and key frame number to determine whether the video has dropped frames. , and analyze the frame loss situation through the i-frame interval and video frame rate.

Benefits of technology

It can quickly determine the key frame loss of the switch under the condition of full camera load, improve the test efficiency, accurately analyze the switch performance, and reduce the consumption of manpower and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941573B
    Figure CN115941573B
Patent Text Reader

Abstract

The present invention discloses a method for analyzing the frame loss of monitoring video to judge the performance of switch, including the following specific steps: connecting monitoring cameras of multiple brands to the input end of the tested switch, and connecting the output end to the superior monitoring device; the superior monitoring device configures fixed code streams for the main code stream and auxiliary code stream of each camera monitoring; each camera is aimed at the picture for video acquisition, and the superior monitoring device checks the real-time code stream of the video; open the ESEyE software, import the monitoring video file recorded by the superior monitoring device, and transfer the video file to the key frame statistics in a table format; calculate the total number of frames of the recorded video without frame loss by the fixed frame number, and judge whether the monitoring environment video has frame loss by the number of key frames. The present invention can check the key frame loss of the switch when it is hung up under the condition of full camera load, and can quickly judge whether the key frame is lost by setting the estimated key frame interval and FPS value to uniformly analyze the number of fixed-duration key frames.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of switch on-hook testing, and in particular to a method for analyzing monitoring video frame loss to judge switch performance. Background Art

[0002] A switch is a plug-and-play device. When it is powered on, the internal frame exchange table is empty. As the hosts communicate with each other, the frame exchange table is automatically and gradually established through the self-learning algorithm. At present, the whole machine production test mode of existing switches is still in the manual test stage: Ethernet switches have many ports and a large production volume. The whole machine production test process is very cumbersome, and the test efficiency is very low, and the test effect is not very ideal. The current application scenarios of switches are mostly NVR monitoring and ordinary office scenarios. In the NVR scenario, the main method is to conduct 7*24 hours on-hook testing. The inspection method is mainly to copy the monitoring video to the local for playback. This method is too inefficient and consumes manpower and time. Summary of the invention

[0003] In view of the defects of the existing video surveillance review method that is inefficient and cannot accurately judge, the purpose of this patent is to provide a method for analyzing the frame loss of surveillance video to judge the performance of the switch. The purpose of this invention is achieved through the following technical solutions:

[0004] A method for analyzing monitoring video frame loss to judge switch performance includes the following specific steps:

[0005] S1: Connect surveillance cameras of multiple brands to the input end of the switch under test, and connect the output end to the upper-level monitoring equipment;

[0006] S2: The upper-level monitoring device configures fixed bit streams for the main bit stream and auxiliary bit stream of each camera monitoring;

[0007] S3: Each camera focuses on the screen to collect video, and the upper-level monitoring device checks the real-time video stream;

[0008] S4: Open the ESEyE software, import the surveillance video files recorded by the superior surveillance equipment, and convert the video files into key frame statistics in a table format;

[0009] S5: The total number of frames of the recorded video without frame loss is calculated by the fixed frame number, and whether there is frame loss in the monitoring environment video is determined by the number of key frames.

[0010] Furthermore, the step S2 specifically includes: the upper-level monitoring device is configured to use the general ONVIF protocol to discover the camera mounted on the switch, and configures a fixed code stream for the main code stream and auxiliary code stream of each camera.

[0011] Furthermore, the configuration of the fixed bit stream specifically includes: uniformly configuring the i-frame interval and the video frame rate on the surveillance camera management page.

[0012] Furthermore, the step S3 specifically includes: all cameras are aimed at the same player playing high-definition video, and the same high-definition video source is played repeatedly. The upper-level monitoring device checks that the real-time video stream is fully loaded, and the collection is completed.

[0013] Furthermore, the step S4 specifically includes: calculating the expected value of fixed I frames and P frames within the set time according to the set i-frame interval and video frame rate, comparing the key frame statistical data table, and analyzing the frame loss situation of the device under test.

[0014] Beneficial effects of the present invention:

[0015] The present invention can detect the key frame loss situation when the switch is hung up under the condition of full camera load, and can quickly determine whether the key frame is lost by setting the estimated key frame interval and FPS value to uniformly analyze the number of key frames of fixed length. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0017] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION

[0018] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0020] like Figure 1As shown, a method for analyzing monitoring video frame loss to determine switch performance includes the following steps:

[0021] S1, except for the uplink port, all the surveillance cameras of various brands are connected to the DUT switch device under test, and the DUT uplink port is connected to the upper-level NVR monitoring device;

[0022] S2, the upper monitoring NVR configuration uses the general ONVIF protocol to discover the cameras under the switch, and configures fixed streams for the main and auxiliary streams of each camera monitoring;

[0023] S3, the surveillance camera management page uniformly configures the i-frame interval to 50 and the video frame rate to 25;

[0024] S4, all cameras are aimed at the same TV playing HD video, repeatedly playing the same HD video source, and the real-time bit stream of the NVR viewing video is at 80-90% full load;

[0025] S5, open ESEyE software, import the 1-hour surveillance video file recorded by NVR, open tools-savestatistics, and save the video file into a key frame statistical data table in ecxel format, as shown in Table 1:

[0026]

[0027] S6, the fixed key frame is 50, so the total number of frames without frame loss in the current recording time can be inferred by the fixed frame number. For example, for a 1-hour video, the FPS is set to 25, the I frame interval is 50, and the number of P frames is 49. 50 / 25 is 1 frame every two seconds, so the number of I frames in one hour is 1800 and the number of P frames is 88200. By comparing the statistics of the number of key frames analyzed in the statistical video file, it is possible to quickly determine whether the current video has frame loss in the monitoring environment.

[0028] In step S3, configure the i-frame interval to 50 and the video frame rate to 25.

[0029] In the video analysis results in step S5, the fixed duration, fixed FPS of 25 and i-frame interval of 50 are counted. By using the fixed recording duration of 60 minutes and 50 / 25, i-frame is 1 frame every two seconds, the expected value of fixed I-frame of the current video is calculated to be 1800 and the expected value of P-frame is 88200. In step S5, ESEyE can quickly convert the video directly into a corresponding format file that is convenient for statistics.

[0030] The present invention can check the key frame loss situation of the switch when it is hung up for 7*24 hours under the condition of full load of cameras. By setting the estimated key frame interval and FPS value and uniformly analyzing the number of key frames of fixed duration, it can quickly determine whether the key frame is lost.

[0031] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A method for analyzing monitoring video frame loss to determine switch performance, characterized in that: The specific steps include: S1: Connect surveillance cameras of multiple brands to the input end of the switch under test, and connect the output end to the upper-level monitoring equipment; S2: The upper-level monitoring device configures fixed bitstreams for the main bitstream and auxiliary bitstream of each camera, specifically including: the upper-level monitoring device uses the general ONVIF protocol to discover the camera under the switch, and configures fixed bitstreams for the main bitstream and auxiliary bitstream of each camera; S3: Each camera is aimed at the screen to collect video, and the upper monitoring device checks the real-time video stream. Specifically, each camera is aimed at the same player that plays high-definition video, and the same high-definition video source is played repeatedly. The upper monitoring device checks that the real-time video stream is full, and the collection is completed; S4: Open the ESEyE software, import the surveillance video files recorded by the superior surveillance equipment, and convert the video files into key frame statistics in a table format; S5: Calculate the total number of frames of the recorded video without frame loss through the fixed frame number, and determine whether there is frame loss in the monitoring environment video through the number of key frames, specifically including: according to the set i-frame interval and video frame rate, calculate the expected value of fixed I frames and the expected value of P frames within the set time, compare the key frame statistical data table, and analyze the frame loss situation of the device under test.

2. According to claim 1, a method for analyzing monitoring video frame loss to judge switch performance is characterized in that: The configuration of the fixed bit stream specifically includes: uniformly configuring the i-frame interval and the video frame rate on the surveillance camera management page.