Video frame rate detection method and system
By adding uniformly changing marks to the input and output ends of the video transmission system, the output frame rate of the video transmission system is accurately detected, which solves the problem of inaccurate detection in the prior art and improves the video viewing effect.
Patent Information
- Application Number
- CN202111622724.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The prior art cannot accurately detect the output frame rate of the video transmission system, resulting in a decrease in the video viewing effect.
By adding uniformly changing marks to the input and output ends of the video transmission system, the decoded video frames are obtained, and the actual output frame rate of the system is determined based on these marks.
It improves the accuracy of the output frame rate detection of the video transmission system and ensures the improvement of the video viewing effect.
Smart Images

Figure CN114302133B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio and video technology, and in particular to a video frame rate detection method and system. Background Art
[0002] In the field of audio and video display and control, the components that make up the video transmission system generally include five devices: video source, encoder, switch, decoder and display device.
[0003] Video frame rate is an important quality parameter of the video transmission system. However, since the transmission of the video is based on the video transmission system, it is impossible to determine whether the output frame rate of the entire video transmission system meets the preset actual frame rate by detecting the decoder output frame rate alone. The video frame rate will affect the video viewing effect. If the video frame rate detection is inaccurate, the actual frame rate is lower than the detection frame rate, and the detection frame rate meets the output requirements but the actual frame rate does not meet the frame rate requirements, it will be mistakenly believed that the frame rate meets the requirements, resulting in a reduced viewing effect. For example: If the output frame rate of the decoder detected is 60 frames, and the video frame rate when the user is watching is only 40 frames, it will cause viewing fatigue, but the playback end still thinks that the video is being transmitted normally at 60 frames. Summary of the invention
[0004] The object of the present invention is to provide a video frame rate detection method and system to improve the accuracy of output frame rate detection of a video transmission system.
[0005] In a first aspect, an embodiment of the present invention provides a video frame rate detection method, which includes: obtaining a first continuous video frame to be input into a system to be tested, and adding a corresponding first identifier in sequence to each video frame in the first continuous video frames; the system to be tested is used to encode the received video frames and transmit them to an output end, and decode the video frames at the output end and output them; obtaining the decoded second continuous video frames from the system to be tested, and adding a corresponding second identifier in sequence to each video frame in the second continuous video frames to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers; based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames, determining the actual output frame rate of the system to be tested, wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system to be tested according to the first identifier and the second identifier within the preset frame rate value.
[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the type of the first identifier and the second identifier is one of: a number, a letter, and a symbol.
[0007] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein, if the types of the first identifier and the second identifier are both digital; the step of determining the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames includes: subtracting the first identifier and the second identifier corresponding to each video frame in the third continuous video frames to obtain the difference between the first identifier and the second identifier; determining the actual output frame rate of the system under test based on the difference between the first identifier and the second identifier.
[0008] In combination with the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein, before the step of determining the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames, the method also includes: deduplicating the first identifier corresponding to each video frame in the third continuous video frames, removing repeated frames corresponding to the first identifier, and obtaining deduplicated frames corresponding to the first identifier.
[0009] In combination with the first aspect, the embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein both the first identifier and the second identifier are electronic identifiers generated based on OSD technology.
[0010] In a second aspect, an embodiment of the present invention provides a video frame rate detection system, wherein the system includes: a video signing device and a video analysis device; the video signing device is connected to the input end of the system to be tested; the video signing device is used to obtain a first continuous video frame to be input into the system to be tested, and to add a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to encode the received video frame and transmit it to the output end, and to decode the video frame at the output end and output it; the video signing device is also connected to the output end of the system to be tested; the video signing device is also used to obtain a first identifier from the system to be tested. The system obtains the decoded second continuous video frames, and adds the corresponding second identifier to each video frame in the second continuous video frames in sequence to obtain third continuous video frames; the first identifier and the second identifier are both uniformly changing identifiers; the video analysis device is connected to the video signing device; the video analysis device is used to determine the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames; wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system under test according to the first identifier and the second identifier within the preset frame rate value.
[0011] In combination with the second aspect, an embodiment of the present invention provides a first possible implementation scheme of the second aspect, wherein the system to be tested includes: an encoder and a decoder; the video signing device includes: a first video signing device and a second video signing device; the first video signing device is connected to the input end of the encoder; the first video signing device is used to obtain a first continuous video frame to be input into the system to be tested, and to add a corresponding first identifier in sequence to each video frame in the first continuous video frame; the system to be tested is used to encode the received video frame and transmit it to the output end, and to decode the video frame at the output end and output it; the second video signing device is connected to the output end of the decoder; the second video signing device is also used to obtain a decoded second continuous video frame from the system to be tested, and to add a corresponding second identifier in sequence to each video frame in the second continuous video frame to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers.
[0012] In combination with the second aspect, an embodiment of the present invention provides a second possible implementation of the second aspect, wherein the system also includes: a client and a signal exchange device; the client is connected to a peripheral display device; the client communicates with the video signing device and the video analysis device through the signal exchange device; the client is used to perform parameter configuration on the video signing device; the parameter configuration includes: the type of the first identifier and the second identifier and a law of uniform change; the client is also used to receive the actual output frame rate of the system under test output by the video analysis device, and display it on the display device.
[0013] In combination with the second aspect, an embodiment of the present invention provides a third possible implementation of the second aspect, wherein the video analysis device is also used to deduplicate the first identifier corresponding to each video frame in the third continuous video frames, remove the repeated frames corresponding to the first identifier, and obtain the deduplicated frames corresponding to the first identifier.
[0014] In combination with the second possible implementation of the second aspect, the embodiment of the present invention provides a fourth possible implementation of the second aspect, wherein the signal exchange device is: a switch.
[0015] The embodiments of the present invention bring the following beneficial effects:
[0016] The present invention provides a video frame rate detection method and system, the method comprising: obtaining a first continuous video frame to be input into a system to be tested, and adding a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to transmit the received video frame to an output end after encoding and processing, and output the video frame after decoding at the output end; obtaining a decoded second continuous video frame from the system to be tested, and adding a corresponding second identifier to each video frame in the second continuous video frame in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers; based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frame, determining the actual output frame rate of the system to be tested; wherein the third continuous video frame is pulled based on a preset frame rate value, so as to determine the actual output frame rate of the system to be tested according to the first identifier and the second identifier within the preset frame rate value. The method adds identifiers to the video at the input end and the output end of the system to be tested, and determines the actual output frame rate of the system to be tested based on the identifier, thereby improving the accuracy of the output frame rate detection of the video transmission system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of a flow chart of a video frame rate detection method provided by an embodiment of the present invention;
[0019] Figure 2 A schematic flow chart of another video frame rate detection method is provided for an embodiment of the present invention;
[0020] Figure 3 A structural schematic diagram of a video frame rate checking system is provided for an embodiment of the present invention;
[0021] Figure 4 A structural schematic diagram of another video frame rate checking system is provided for an embodiment of the present invention;
[0022] Figure 5 The embodiment of the present invention provides a structural schematic diagram of a third video frame rate checking system;
[0023] Figure 6 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present invention.
[0024] Icons: 31 - video signing device; 32 - video analysis device; 33 - system under test; 61 - memory; 62 - processor; 63 - bus; 64 - communication interface. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of 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.
[0026] The existing video frame rate detection method determines whether the output frame rate of the entire video transmission system meets the actual frame rate by detecting the decoder output frame rate alone. The video frame rate will affect the video viewing effect. If the video frame rate detection is inaccurate, the actual frame rate is lower than the detection frame rate, and the detection frame rate meets the output requirements but the actual frame rate does not meet the frame rate requirements, it will be mistakenly believed that the frame rate meets the requirements, resulting in a reduced viewing effect. For example: if the output of the detected decoder is 60 frames, but the actual user only watches 40 frames, it will cause viewing fatigue, but the playback end still thinks that the video is being transmitted normally at 60 frames.
[0027] Based on this, an embodiment of the present invention provides a video frame rate detection method and system, which can alleviate the above technical problems and improve the accuracy of output frame rate detection of a video transmission system. To facilitate understanding of the embodiment of the present invention, a message processing method disclosed in an embodiment of the present invention is first introduced in detail.
[0028] Example 1
[0029] like Figure 1 A schematic flow chart of a video frame rate detection method provided by an embodiment of the present invention.
[0030] like Figure 1 As can be seen, the method comprises the following steps:
[0031] Step S101: obtaining the first continuous video frames to be input into the system under test, and sequentially adding corresponding first identifiers to each video frame in the first continuous video frames; the system under test is used to encode the received video frames and transmit them to the output end, and decode the video frames at the output end and output them.
[0032] In this embodiment, the system to be tested is a video transmission system; the video transmission system includes: an encoder and a decoder. The encoder is connected to an external video source. Further, the video source includes: a computer or other video playback device.
[0033] In actual operation, the method for obtaining the first connected video frame to be input into the system under test generally obtains the first connected video frame to be input into the system under test through the output end of the video source or the input end of the encoder.
[0034] Step S102: Obtain decoded second continuous video frames from the system under test, and sequentially add corresponding second identifiers to each video frame in the second continuous video frames to obtain third continuous video frames; the first identifier and the second identifier are both uniformly changing identifiers.
[0035] The type of the first identifier and the second identifier is one of numbers, letters and symbols.
[0036] Furthermore, the process of adding the first identifier and the process of adding the second identifier in the above step S101 and the above step S102 will not affect the video frame rate.
[0037] In this embodiment, for example, the first identifier and the second identifier are both numbers; the first identifier can be: 1, 2, 3...n, so as to achieve a uniform change of the first identifier; the second identifier can be: 5, 6, 7...n, so as to achieve a uniform change of the second identifier.
[0038] Step S103: Determine the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames; wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system under test according to the first identifier and the second identifier within the preset frame rate value.
[0039] In this embodiment, for example, the preset pull frame rate of the third continuous video frame is 60 frames. Through the second identifier, a sequence of video frames from 1 to 60 can be established. The first identifier of the encoding side is extracted from each frame of this frame sequence (the signature of the decoding end is a standard reference, so for 60fps, the decoding signature must be 60 signatures added evenly per second. The signature of the decoding side of each frame output video is uniformly increased). If the digital signature of the encoding side is repeated between frames, they are merged and considered as one frame. If there are two consecutive repeated frames in this frame sequence (if the encoding frame rate is insufficient, repeated frames will appear at the back end. Because the decoding side pulls data out at 60 frames per second, if the encoding frame rate is insufficient, or the frame rate given to the decoding is insufficient. When the decoding side pulls, the video frame has no time to update, and there is a probability that the same frame will be pulled, and repeated frames will appear), the first identifier can be considered that the frame rate is 59. Therefore, based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frame, the actual output frame rate of the system under test is determined.
[0040] The video frame rate detection method provided by the embodiment of the present invention comprises: obtaining a first continuous video frame to be input into the system to be tested, and adding a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to transmit the received video frame to the output end after encoding and processing, and output the video frame after decoding at the output end; obtaining the decoded second continuous video frame from the system to be tested, and adding a corresponding second identifier to each video frame in the second continuous video frame in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers; based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frame, determining the actual output frame rate of the system to be tested, wherein the third continuous video frame is pulled based on a preset frame rate value to determine the actual output frame rate of the system to be tested according to the first identifier and the second identifier within the preset frame rate value. The method adds identifiers to the video at the input end and the output end of the system to be tested, and determines the actual output frame rate of the system to be tested based on the identifier, thereby improving the accuracy of the output frame rate detection of the video transmission system.
[0041] Example 2
[0042] exist Figure 1 Based on the method shown, the present invention also provides another video frame rate detection method. Figure 2 A flow chart of another video frame rate detection method is provided for an embodiment of the present invention, such as Figure 2 As can be seen, the method comprises the following steps:
[0043] Step S201: obtaining the first continuous video frames to be input into the system under test, and sequentially adding corresponding first identifiers to each video frame in the first continuous video frames; the system under test is used to encode the received video frames and transmit them to the output end, and decode the video frames at the output end and output them.
[0044] Step S202: Obtain decoded second continuous video frames from the system under test, and sequentially add corresponding second identifiers to each video frame in the second continuous video frames to obtain third continuous video frames; the first identifier and the second identifier are both uniformly changing identifiers.
[0045] In one implementation manner, the first identification and the second identification are both electronic identifications generated based on OSD technology.
[0046] The third continuous video frame is pulled based on a preset frame rate value, so as to determine the actual output frame rate of the system under test according to the first identifier and the second identifier in the preset frame rate value.
[0047] Step S203: If the first identifier and the second identifier are both digital, the first identifier and the second identifier corresponding to each video frame in the third continuous video frame are subtracted to obtain the difference between the first identifier and the second identifier. In this embodiment, for example, the first identifier is: 1, 2, 3 ... n; the second identifier is: 1, 2, 3 ... n, so that the difference between the first identifier and the second identifier is always 0 in the third continuous video frame.
[0048] In actual operation, after step S223 and before step S204, the method further includes: deduplicating the first identifier corresponding to each video frame in the third continuous video frames, removing repeated frames corresponding to the first identifier, and obtaining deduplicated frames corresponding to the first identifier.
[0049] Step S204: determining the actual output frame rate of the system under test according to the difference between the first identifier and the second identifier.
[0050] In this embodiment, for example, the preset pull frame rate of the third continuous video frame is 60 frames. Through the second identifier, a sequence of video frames from 1 to 60 can be established, and the first identifier on the encoding side is extracted from each frame of this frame sequence (the signature on the decoding side is a standard reference, so for 60fps, the decoding signature must be 60 signatures added evenly per second. The decoding side signatures of each frame of the output video are uniformly increased). If the digital signatures on the encoding side are repeated between frames, they are merged and considered as one frame. If there are two consecutive repeated frames in this frame sequence (if the encoding frame rate is insufficient, repeated frames will appear at the back end. Because the decoding side pulls data out at 60 frames per second, if the encoding frame rate is insufficient, or the frame rate given to the decoding is insufficient. When the decoding side pulls, the video frame has no time to update, and there is a probability that the same frame will be pulled, resulting in repeated frames) the first identifier can be considered that the frame rate is 59. If the first identifier is: 1, 2, 3 ... 59; the second identifier is: 1, 2, 3 ... 60; the difference between the first identifier and the second identifier at the beginning of the third continuous video is 0, and during the transmission of the third continuous video, the difference between the first identifier and the second identifier is 1, so that the actual frame rate is determined to be 59. Therefore, according to the difference between the first identifier and the second identifier, the actual output frame rate of the system under test is determined.
[0051] The video frame rate detection method provided by the embodiment of the present invention comprises: obtaining a first continuous video frame to be input into the system to be tested, and adding a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to transmit the received video frame to the output end after encoding and processing, and output the video frame after decoding at the output end; obtaining the decoded second continuous video frame from the system to be tested, and adding a corresponding second identifier to each video frame in the second continuous video frame in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers; if the types of the first identifier and the second identifier are both digital; the first identifier and the second identifier corresponding to each video frame in the third continuous video frame are subtracted to obtain the difference between the first identifier and the second identifier. According to the difference between the first identifier and the second identifier, the actual output frame rate of the system to be tested is determined. The method further improves the accuracy of the output frame rate detection of the video transmission system by adding identifiers to the video at the input end and the output end of the system to be tested, and determining the actual output frame rate of the system to be tested based on the identifier by calculating the identifier.
[0052] Example 3
[0053] Based on Example 1 and Example 2, the present invention also provides a video frame rate checking system. Figure 3 A schematic diagram of the structure of a video frame rate checking system is provided in an embodiment of the present invention. Figure 3 As can be seen, the system includes: a video signing device 31 and a video analysis device 32.
[0054] The video signing device 31 is connected to the input end of the system to be tested 33; the video signing device 31 is used to obtain the first continuous video frame to be input into the system to be tested, and to add a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to encode the received video frame and transmit it to the output end, and decode the video frame at the output end and output it.
[0055] The video signing device 31 is also connected to the output end of the system under test 33; the video signing device is also used to obtain the decoded second continuous video frames from the system under test, and add a corresponding second identifier to each video frame in the second continuous video frames in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers.
[0056] The video analysis device is connected to the video signing device 31; the video analysis device 32 is used to determine the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames; wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system under test according to the first identifier and the second identifier within the preset frame rate value.
[0057] In this embodiment, the video analysis device is further used to perform deduplication processing on the first identifier corresponding to each video frame in the third continuous video frames, remove repeated frames corresponding to the first identifier, and obtain deduplicated frames corresponding to the first identifier.
[0058] In one embodiment, the system to be tested includes: an encoder and a decoder; the video signing device includes: a first video signing device and a second video signing device. The first video signing device is connected to the input end of the encoder; the first video signing device is used to obtain the first continuous video frame to be input into the system to be tested, and to add a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to encode the received video frame and transmit it to the output end, and to decode the video frame at the output end and output it. The second video signing device is connected to the output end of the decoder; the second video signing device is also used to obtain the decoded second continuous video frame from the system to be tested, and to add a corresponding second identifier to each video frame in the second continuous video frame in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers.
[0059] Furthermore, the system also includes: a client and a signal exchange device; the client is connected to a peripheral display device; the client communicates with the video signing device and the video analysis device through the signal exchange device; the client is used to configure parameters of the video signing device; the parameter configuration includes: the type of the first identifier and the second identifier and the law of uniform change; the client is also used to receive the actual output frame rate of the system under test output by the video analysis device, and display it on the display device.
[0060] The signal exchange device is a switch or a router.
[0061] For ease of understanding, Figure 4A structural schematic diagram of another video frame rate checking system is provided for an embodiment of the present invention. The client is represented as CA; the first video signing device is represented as: encoding side video signing device TAG-A; the second video signing device is represented as: decoding side video signing device TAG-B; the video analysis device is represented as: video analysis device VA-A; the system to be tested also includes: a video source, an encoder and a decoder; the video source is represented as: PC-A; the encoder is represented as: encoder A; the decoder is represented as: decoder A.
[0062] Among them, the client CA configures the video signing devices TAG-A and TAG-B in transparent transmission mode, does not control the frame rate, and configures the position of adding the mark in the encoder input video content to be (Xa, Ya, Wa, Ha). The client CA configures the video signing device TAG-B in fixed frame rate output mode (60 frames are recommended), and configures the position of adding the mark in the output video content to be (Xb, Yb, Wb, Hb), which is different from the position of adding the mark to TAG-A. The client CA configures the video analysis device VA-A, and configures the position of TAG-A (Xa, Ya, Wa, Ha) and the position of adding the OSD mark of TAG-B (Xb, Yb, Wb, Hb) to the video analysis device VA-A. And establishes a channel to obtain analysis data from the video analysis device VA-A. The video of PC-A is given to the video signing device TAG-A. After receiving a frame of data, TAG-A adds a label at the position (Xa, Ya, Wa, Ha) of the video, starting from 1, reaching 1000, and then starting from 1 again, repeating the cycle. After TAG-A adds a label to the video, it outputs the video to encoder A. Encoder A encodes the video and transmits it to decoder A through the network. The decoder outputs the video to the video signing device TAG-B. After receiving the video output by the decoder, the video signing device TAG-B adds a label at the video position (Xb, Yb, Wb, Hb). The label content is a number starting from 1, reaching 1000, and then starting from 1 again, repeating the cycle. After processing the image, TAG-B outputs the video to the video analysis device VA-A at the target frame rate. After receiving the video, the video analysis device VA-A extracts the OSD digital information of the video frame according to the previously configured OSD area position. Based on the OSD digital information printed by TAG-B, a sequence array of target frames (60 frames) is established. When establishing the array, deduplication processing should be performed based on the identification information of TAG-B. For the video frames of this target frame sequence, the identification added by TAG-A is analyzed, and the repeated information is removed. The number of frames obtained is the actual frame rate. The target frame is a detection time granularity (i.e., the accuracy value, for example, the accuracy is 60 frames, 60 times per second), which is generally set to 60 frames. The video analysis device VA-A reports the analysis results to the host computer software CA in real time, and the host computer software displays the analysis results to the user.
[0063] Furthermore, Figure 5 The embodiment of the present invention provides a schematic diagram of the structure of a third video frame rate checking system. Figure 5 It can be seen that the first video signing device and the second video signing device have different identification positions in the video frame rate. The video analysis device A continuously performs video analysis, obtains a frame rate sequence, and sends the information to the host computer software CA, which displays the information.
[0064] The video frame rate checking system provided by the embodiment of the present invention has the same technical features as the video frame rate checking method provided by the above embodiment, so it can also solve the same technical problems and achieve the same technical effects. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the device described above can refer to the corresponding process in the above method embodiment, and will not be repeated here.
[0065] Example 4
[0066] This embodiment provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the video frame rate checking method.
[0067] See also Figure 6 The schematic diagram of the structure of an electronic device shown in the figure comprises: a memory 61 and a processor 62. The memory stores a computer program that can be run on the processor 62. When the processor executes the computer program, the steps provided by the above-mentioned video frame rate checking method are implemented.
[0068] like Figure 4 As shown, the device further includes: a bus 63 and a communication interface 64, a processor 62, a communication interface 64 and a memory 61 are connected via the bus 63; the processor 62 is used to execute executable modules stored in the memory 61, such as computer programs.
[0069] The memory 61 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 64 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0070] The bus 63 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0071] Among them, the memory 61 is used to store the program, and the processor 62 executes the program after receiving the execution instruction. The method performed by the video frame rate inspection system disclosed in any embodiment of the present invention can be applied to the processor 62, or implemented by the processor 62. The processor 62 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 62. The above processor 62 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 62 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.
[0072] Furthermore, an embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor 62, the machine-executable instructions prompt the processor 62 to implement the above-mentioned video frame rate checking method.
[0073] The video frame rate checking method and the video frame rate checking system provided by the embodiments of the present invention have the same technical features, and therefore can solve the same technical problems and achieve the same technical effects.
[0074] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0075] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
Claims
1. A video frame rate detection method, characterized in that: include: Acquire first continuous video frames to be input into the system under test, and sequentially add a corresponding first identifier to each video frame in the first continuous video frames; The system to be tested is used to encode the received video frames and transmit them to the output end, and decode the video frames at the output end and output them; Obtaining decoded second continuous video frames from the system under test, and sequentially adding corresponding second identifiers to each video frame in the second continuous video frames to obtain third continuous video frames; the first identifier and the second identifier are both identifiers that change evenly; Based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames, the actual output frame rate of the system under test is determined; wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system under test according to the first identifier and the second identifier within the preset frame rate value.
2. The video frame rate detection method according to claim 1, characterized in that: The type of the first identifier and the second identifier is one of numbers, letters and symbols.
3. The video frame rate detection method according to claim 2, characterized in that: If the types of the first identifier and the second identifier are both digital; the step of determining the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames includes: Subtracting a first identifier and a second identifier corresponding to each video frame in the third continuous video frames to obtain a difference between the first identifier and the second identifier; An actual output frame rate of the system under test is determined according to a difference between the first identifier and the second identifier.
4. The video frame rate detection method according to claim 1, characterized in that: Before the step of determining the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames, the method further includes: The first identifier corresponding to each video frame in the third continuous video frames is deduplicated, and the frames corresponding to the repeated first identifier are removed to obtain the deduplicated frames corresponding to the first identifier.
5. The video frame rate detection method according to claim 1, characterized in that: The first identification and the second identification are both electronic identifications generated based on OSD technology.
6. A video frame rate detection system, characterized in that: The system includes: a video signing device and a video analysis device; The video signing device is connected to the input end of the system to be tested; the video signing device is used to obtain the first continuous video frame to be input into the system to be tested, and to add a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system to be tested is used to encode the received video frame and transmit it to the output end, and decode the video frame at the output end and output it; The video signing device is also connected to the output end of the system under test; the video signing device is also used to obtain the decoded second continuous video frames from the system under test, and add the corresponding second identifier to each video frame in the second continuous video frames in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers; The video analysis device is connected to the video signing device; the video analysis device is used to determine the actual output frame rate of the system under test based on the first identifier and the second identifier corresponding to each video frame in the third continuous video frames; wherein the third continuous video frames are pulled based on a preset frame rate value to determine the actual output frame rate of the system under test according to the first identifier and the second identifier within the preset frame rate value.
7. The video frame rate detection system according to claim 6, characterized in that: The system to be tested includes: an encoder and a decoder; the video signing device includes: a first video signing device and a second video signing device; The first video signing device is connected to the input end of the encoder; the first video signing device is used to obtain the first continuous video frame to be input into the system under test, and to add a corresponding first identifier to each video frame in the first continuous video frame in sequence; the system under test is used to encode the received video frame and transmit it to the output end, and decode the video frame at the output end and output it; The second video signing device is connected to the output end of the decoder; the second video signing device is also used to obtain the decoded second continuous video frames from the system under test, and add the corresponding second identifier to each video frame in the second continuous video frames in sequence to obtain a third continuous video frame; the first identifier and the second identifier are both uniformly changing identifiers.
8. The video frame rate detection system according to claim 6, characterized in that: The system further comprises: a client and a signal exchange device; the client is connected to a display device having an external device; The client communicates with the video signing device and the video analysis device through the signal exchange device; The client is used to perform parameter configuration on the video signing device; the parameter configuration includes: the type of the first identifier and the second identifier and the rule of uniform change; The client is also used to receive the actual output frame rate of the system under test output by the video analysis device, and display it on the display device.
9. The video frame rate detection system according to claim 6, characterized in that: The video analysis device is also used to perform deduplication processing on the first identifier corresponding to each video frame in the third continuous video frames, remove the frames corresponding to the repeated first identifier, and obtain the deduplicated frames corresponding to the first identifier.
10. The video frame rate detection system according to claim 8, characterized in that: The signal exchange device is: a switch.
Citation Information
Patent Citations
Method for testing video frequency frame rate and audio-video synchronous performance
CN101616331A
Video detection method and video detection equipment
CN108632666A