CN115426534A - Video stream quality detection method, device, equipment and storage medium - Google Patents

Video stream quality detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN115426534A
CN115426534A CN202211022894.5A CN202211022894A CN115426534A CN 115426534 A CN115426534 A CN 115426534A CN 202211022894 A CN202211022894 A CN 202211022894A CN 115426534 A CN115426534 A CN 115426534A
Authority
CN
China
Prior art keywords
video
video stream
frame
acquisition time
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211022894.5A
Other languages
Chinese (zh)
Inventor
唐鹏
闫涛
唐海峰
刘丽
朱敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiuchi Network Technology Co ltd
Original Assignee
Shanghai Jiuchi Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jiuchi Network Technology Co ltd filed Critical Shanghai Jiuchi Network Technology Co ltd
Priority to CN202211022894.5A priority Critical patent/CN115426534A/en
Publication of CN115426534A publication Critical patent/CN115426534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/49Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes

Abstract

The embodiment of the application discloses a video stream quality detection method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a recorded video for displaying pictures corresponding to an active video stream and a video stream to be tested, wherein each frame of image of the active video stream is provided with different two-dimensional codes, the two-dimensional codes carry the acquisition time of each frame of image corresponding to the active video stream, and the video stream to be tested is generated by rendering the received active video stream by video receiving equipment; according to the frame rate of the recorded video, dividing the recorded video frame by frame to obtain picture images for displaying the active video stream and the video stream to be tested in the recorded video; carrying out two-dimensional code recognition on each frame of picture image, and determining a first acquisition time and a second acquisition time; based on the first acquisition time and the second acquisition time, video delay is determined. The scheme can simply and effectively detect the video delay and the frame rate of the video stream.

Description

Video stream quality detection method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of audio and video processing, in particular to a method, a device, equipment and a storage medium for detecting the quality of a video stream.
Background
In the field of audio and video, the quality of a video stream is often detected, for example, the delay and frame rate of a real-time video stream are detected and used as an index for evaluating the real-time performance, definition and fluency of the real-time video stream, and the index is used for measuring the quality of the video stream and used as conclusion data for the purposes of scientific research, production, testing and the like.
At present, a commonly used method for testing time delay is to add a stopwatch in an input video source, display the stopwatch in an output video source, record the input and output video sources by using an optical camera, and analyze the stopwatch data in the input and output video sources; or, carrying the timestamp of the collected video in the video data packet in the input video source, analyzing the timestamp in the output video source to make a difference value with the local timestamp, and calculating the delay from the input to the output video.
The two methods have the defect of large error, for example, the delay standard of real-time video data is about 200ms, and a part of image of a file recorded by using a common camera cannot accurately capture hundreds of milliseconds of data change in the recording process, namely, the image is blurred, and the time displayed on a stopwatch is difficult to accurately; the inconsistency of the UTC (Universal Time Coordinated) Time of the input video source and the UTC Time of the output video source may cause a calculation error. Therefore, in the related art, there is a defect in the detection of the quality of the video stream, and it is difficult to achieve efficient detection.
Disclosure of Invention
Embodiments of the present application provide a method, an apparatus, a device, and a storage medium for detecting video stream quality, which solve the problems of complex detection and large error of video stream quality in the related art, and can simply and effectively detect video delay and frame rate of a video stream.
In a first aspect, an embodiment of the present application provides a method for detecting quality of a video stream, where the method includes:
acquiring a recorded video displaying a picture corresponding to an active video stream and a video stream to be tested, wherein each frame of image of the active video stream is provided with different two-dimensional codes, each two-dimensional code carries an acquisition time of each frame of image corresponding to the active video stream, and the video stream to be tested is generated by rendering the received active video stream by video receiving equipment;
according to the frame rate of the recorded video, dividing the recorded video frame by frame to obtain picture images of the recorded video, wherein the picture images display the source video stream and the video stream to be tested;
performing two-dimensional code recognition on each frame of picture image, and determining a first acquisition time and a second acquisition time, wherein the first acquisition time is the acquisition time corresponding to each frame of image in the source video stream, and the second acquisition time is the acquisition time corresponding to each frame of image in the video stream to be tested;
determining a video delay based on the first acquisition time and the second acquisition time.
In a second aspect, an embodiment of the present application provides an apparatus for detecting quality of a video stream, where the apparatus includes:
the video acquisition module is configured to acquire recorded videos displaying pictures corresponding to an active video stream and a to-be-tested video stream, wherein each frame of image of the active video stream is provided with different two-dimensional codes, the two-dimensional codes carry acquisition moments of each frame of image corresponding to the active video stream, and the to-be-tested video stream is generated by rendering the received active video stream by video receiving equipment;
the image acquisition module is configured to divide the recorded video frame by frame according to the frame rate of the recorded video so as to acquire picture images of the recorded video, wherein the picture images display the source video stream and the video stream to be tested;
the image identification module is configured to perform two-dimensional code identification on each frame of picture image and determine a first acquisition time and a second acquisition time, wherein the first acquisition time is the acquisition time corresponding to each frame of image in the source video stream, and the second acquisition time is the acquisition time corresponding to each frame of image in the video stream to be tested;
a delay determination module configured to determine a video delay based on the first acquisition time and the second acquisition time.
In a third aspect, an embodiment of the present application provides a video stream quality detection apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when one or more of the programs are executed by one or more of the processors, the one or more of the processors implement the video stream quality detection method according to the embodiment of the present application.
In a fourth aspect, embodiments of the present application further provide a storage medium storing computer-executable instructions, which are executed by a computer processor to perform the video stream quality detection method according to the embodiments of the present application.
According to the video frame rate detection method and device, the source video stream provided with the two-dimensional code and the video stream to be tested form the recorded video, the recorded video is divided to form the multi-frame image, the two-dimensional code is identified to obtain the relevant first acquisition time and the second acquisition time, the video delay is further determined, the video frame rate can be determined according to the number of the different second acquisition times, the video delay and the frame rate are simply and effectively detected, the video stream quality measurement is facilitated, the calculation error is small, and errors caused by inconsistent equipment time are reduced.
Drawings
Fig. 1 is a flowchart of a video stream quality detection method according to an embodiment of the present application;
fig. 2 is a schematic effect diagram of a video delay visualization provided in an embodiment of the present application;
fig. 3 is a schematic effect diagram of video frame rate visualization provided in an embodiment of the present application;
fig. 4 is a schematic view of a detection process of a video processing platform according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a video stream quality detection apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a video stream quality detection apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the embodiments described herein are illustrative of the present application and are not limiting of the present application. It should be further noted that, for the convenience of description, only some of the structures associated with the present application are shown in the drawings, not all of them.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action or object from another entity or action or object without necessarily requiring or implying any actual such relationship or order between such entities or actions or objects. For example, "first" and "second" of the first acquisition instant and the second acquisition instant are used to distinguish between two different acquisition instants.
Fig. 1 is a flowchart of a video stream quality detection method provided in an embodiment of the present application, where the method may be executed by a computing device, such as a computer, a server, and the like, and is used to detect video quality, such as time for acquisition, encoding, transmission, decoding, and rendering between two devices, that is, video delay, and number of frames rendered by a device per second, that is, video frame rate, and the like, where the method includes the following steps:
and step S110, acquiring a recorded video for displaying the active video stream and the picture corresponding to the video stream to be tested.
Each frame of image of the source video stream is provided with different two-dimensional codes, the two-dimensional codes carry the acquisition time of each frame of image corresponding to the source video stream, and the video stream to be tested is generated by rendering the received source video stream by the video receiving equipment, therefore, the two-dimensional codes also exist in each frame of image of the video stream to be tested, the source video stream on the video sending equipment and the video stream to be tested on the video receiving equipment are displayed in the picture of the recorded video, it can be understood that when the source video stream is output to the video receiving equipment, the video sending equipment can cover the two-dimensional codes on the acquisition position of each frame of image when each frame of image of the source video stream is acquired, and the acquisition position can be set according to the identification requirement. The two-dimensional Code may be a two-dimensional Code made of QR Code, maxiCode, or the like, and may be in the form of a matrix two-dimensional Code, a bar two-dimensional Code, or the like.
For example, when the video sending device and the video receiving device are local devices in the same local area network, the source video stream is displayed on the video sending device, and the video receiving device generates and displays the video stream to be tested after rendering the source video stream, so that the source video stream and the video stream to be tested can be recorded in the same picture through the recording device such as a camera, a mobile phone and the like, and the recorded video is obtained.
The acquired recorded video can also be retransmitted to the video sending device by the video receiving device, that is, pictures corresponding to the source video stream and the video stream to be tested are simultaneously displayed on the video sending device, for example, the pictures corresponding to the source video stream and the video stream to be tested are displayed in a split-screen display manner, so that the recorded video is acquired by screen recording software on the recording device or the video sending device.
And step S120, according to the frame rate of the recorded video, dividing the recorded video frame by frame to obtain picture images displaying the active video stream and the video stream to be tested in the recorded video.
The frame rate of the recorded video is greater than or equal to the frame rate of the source video stream, so that when the recorded video is divided frame by frame, all frame images of the source video stream and the video stream to be tested can be effectively acquired, that is, a plurality of frame images are divided into the recorded video according to the frame rate of the recorded video, each frame image corresponds to one frame image of the recorded video, illustratively, the frame rate of the currently recorded video is 60 frames per second, and 60 frame images are divided into each second of the recorded video.
And S130, performing two-dimensional code identification on each frame of picture image, and determining a first acquisition time and a second acquisition time.
It is conceivable that a two-dimensional code exists in an area where a frame image corresponding to a source video stream is displayed in each frame image, and a two-dimensional code also exists in an area where a frame image corresponding to a video stream to be tested is displayed in each frame image, so that by identifying the two-dimensional code in the frame image, a collection time carried in the two-dimensional code can be acquired, and a first collection time and a second collection time are determined, wherein the first collection time is a collection time corresponding to each frame image in the source video stream, and the second collection time is a collection time corresponding to each frame image in the video stream to be tested.
And step S140, determining video delay based on the first acquisition time and the second acquisition time.
The video delay can be determined by the first capture moment and the second capture moment, and it can be understood that there is a delay between the video sending device and the video receiving device, for example, due to the delay, when the video sending device currently captures a certain frame of image, such as an nth frame of image, and the video receiving device may render to an N-1 th frame or an N-2 th frame, that is, the video receiving device behind the video sending device counts frames of image. Correspondingly, the source video stream and the video stream to be tested on the picture image have time delay, that is, the source video stream and the video stream to be tested on the picture image are not the same frame image, and the acquisition moments corresponding to the two-dimensional codes on the picture image are different, that is, the first acquisition moment and the second acquisition moment are different, so that the video delay can be determined, and the values of the video time delay are different under the condition that the transmission paths of the videos are different.
In an embodiment, when the transmission path of the video is a video sending device- > a video receiving device, if the video sending device and the video receiving device are local devices in the same local area network, and a source video stream and a video stream to be tested are recorded in the same recording picture by a video recording device, a time difference between times corresponding to a first collecting time and a second collecting time is calculated and recorded, and the time difference is video delay.
In an embodiment, when the transmission path of the video is the video sending device- > video receiving device- > video sending device, as in the case of displaying the pictures corresponding to the source video stream and the video stream to be tested simultaneously on the video sending device, the video delay between the video sending device and the video receiving device is half of the time difference between the times corresponding to the first collection time and the second collection time.
According to the scheme, the recorded videos which display the source video stream and the video stream to be tested in the same picture are processed, so that calculation errors caused by different UTC time timings of the equipment can be effectively avoided, time information corresponding to the acquisition time of the frame image of the source video stream is carried in a two-dimensional code mode, the first acquisition time corresponding to the frame image of the source video stream in the picture image and the second acquisition time corresponding to the frame image of the video stream to be tested in the same picture image can be determined after the two-dimensional code is recognized, video delay is effectively detected, the video stream quality can be favorably measured, the calculation errors are small, and errors caused by inconsistent equipment time are reduced.
In an embodiment, the two-dimensional code in the picture image may be identified by using openCV (Open Source Computer Vision Library), and after the two-dimensional code is identified, the corresponding acquisition time may be obtained, for example, if the two-dimensional code on the region corresponding to the Source video stream in the picture image is identified, the first acquisition time may be determined; a second acquisition instant can be determined by identifying the two-dimensional code in the picture image on the area corresponding to the video stream to be tested. The two-dimensional code in the screen image may be recognized by using two-dimensional code recognition software, an online two-dimensional code recognition tool, or the like.
In an embodiment, for the detection of the video frame rate, the video frame rate may be determined according to the recorded second acquisition time, for example, the video frame rate may be determined according to the number of the second acquisition times different from each other in the unit time, for example, if it is determined that the second acquisition time is different from the second acquisition time determined based on the previous frame image based on the current frame image, the second acquisition time corresponding to the current frame image is recorded, that is, the second acquisition times corresponding to the adjacent frame (for example, the current frame and the previous frame) image are compared, and when the two times are different, the second acquisition time corresponding to the current frame image is recorded.
According to the number of the second acquisition time recorded in a unit time such as 1 second, the video frame rate of the video stream to be tested is determined, illustratively, the frame rate in the recorded video is 60 frames per second, and the frame rate of the source video stream is 30 frames per second, it is supposed that the video frame rate of the video stream to be tested is at most 30 frames per second, therefore, in the picture images obtained by dividing the recorded video frame by frame, two identical picture images exist for a certain frame of the source video stream or the image of the video stream to be tested, therefore, when the second acquisition times corresponding to two adjacent picture images are different, the corresponding second acquisition time is recorded, and if the number of the recorded second acquisition times is 30, the video frame rate of the video stream to be tested is 30 frames per second.
For the detection of the video frame rate, after the second acquisition time is identified, the video frame rate of the video stream to be tested can be determined according to the number of the different second acquisition times in the unit time, so that the detection of the video frame rate is simply and effectively realized.
In an embodiment, the detection result can be visually displayed, such as visually displaying the video delay and/or the video frame rate on an output display interface. Referring to fig. 2 and fig. 3, fig. 2 and fig. 3 respectively show effect diagrams of visually displaying video delay and video frequency, when the video stream quality detection method provided by the present application is executed on a computing device, a display device of the computing device, such as a display, a display screen, and the like, displays the detected video delay and/or video frame rate in the form of a visual chart, such as a bar chart, a line chart, and the like, it is contemplated that the visual display result may also be sent to other computing devices, and the visual display result is displayed through the output display interfaces of other computing devices, as shown in fig. 2, the detected video delay is visually displayed with the frame number of the picture image as an abscissa and the difference value between the first acquisition time and the second acquisition time, i.e., the video delay as an ordinate; as shown in fig. 3, taking the frame rate of the source video stream as 30 frames per second as an example, after the detection, the video frame rate of the video stream to be detected is visually displayed.
By visualizing the detection result, a tester can intuitively observe the delay condition of each frame of image and the change of the video frame rate after transmission in real time, so that the detection on the video quality is simpler, more convenient and more effective.
In practical application, a tester may build a video processing platform in a computing device, where the video processing platform is a software program running in the computing device. When a tester detects the quality of a video stream between a video transmitting device and a video receiving device, such as video delay, video frame rate and the like, the tester can upload a recorded video to a video processing platform, wherein the recorded video is a video displaying an active video stream and a video stream to be tested in a video picture. When the recorded video is uploaded, the type options corresponding to different video transmission paths can be further selected, so that the subsequent calculation of video delay is facilitated.
Fig. 4 is a schematic diagram of a detection process of a video processing platform according to an embodiment of the present application, in which a detection process of the video processing platform on a recorded video is shown, a tester uploads the recorded video to the video processing platform, a frame of the recorded video includes a source video stream carrying a two-dimensional code and a video stream to be tested, after the recorded video is successfully uploaded to the video processing platform, the video processing platform calls an openCV to capture the recorded video frame by frame to obtain each frame of picture image in the recorded video, and after all frame of picture images are successfully captured, the video processing platform calls the openCV to identify the two-dimensional code in the picture image, so as to determine a first acquisition time and a second acquisition time, and store successfully identified two-dimensional code identification results, that is, the first acquisition time and the second acquisition time, in a memory, so as to subsequently calculate video delay and a video frame rate of the video stream to be tested by using the first acquisition time and the second acquisition time, after the detection result is successfully calculated, the video processing platform outputs a video delay or a video delay for displaying, and the video delay or the video frame rate can be visually analyzed by the video delay, and the video frame rate can be visually analyzed visually.
Fig. 5 is a schematic structural diagram of a video stream quality detection apparatus according to an embodiment of the present application, where the apparatus is configured to execute a video stream quality detection method according to the foregoing embodiment, and has corresponding functional modules and beneficial effects of the execution method, and as shown in the drawing, the apparatus includes:
the video acquisition module 201 is configured to acquire a recorded video displaying an active video stream and a picture corresponding to a video stream to be tested, wherein each frame of image of the active video stream is provided with a different two-dimensional code, the two-dimensional code carries an acquisition time of each frame of image corresponding to the active video stream, and the video stream to be tested is generated by rendering the received active video stream by a video receiving device;
an image obtaining module 202, configured to perform frame-by-frame segmentation on the recorded video according to a frame rate of the recorded video, so as to obtain a picture image in the recorded video, where the source video stream and the video stream to be tested are displayed;
the image identification module 203 is configured to perform two-dimensional code identification on each frame of picture image, and determine a first acquisition time and a second acquisition time, where the first acquisition time is an acquisition time corresponding to each frame of image in the source video stream, and the second acquisition time is an acquisition time corresponding to each frame of image in the to-be-tested video stream;
a delay determination module 204 configured to determine a video delay based on the first acquisition time and the second acquisition time.
On the basis of the above embodiment, the image identification module 203 is further configured to identify the two-dimensional code in each segmented frame image based on openCV to obtain the first acquisition time and the second acquisition time.
On the basis of the foregoing embodiment, the delay determining module 204 is configured to calculate and record a time difference between the moments corresponding to the first collecting time and the second collecting time, and use the time difference as the video delay.
On the basis of the above embodiment, the video display device further comprises a visualization module, wherein the visualization module is configured to record the video delay and visually display the video delay on an output interface.
On the basis of the above embodiment, the video frame rate determining apparatus further includes a frequency determining module, and the frequency determining module is configured to determine the video frame rate according to the number of the second acquisition times within the unit time.
On the basis of the above embodiment, the frequency determination module is further configured to:
if the second acquisition time determined based on the picture image of the current frame is different from the second acquisition time determined based on the picture image of the previous frame, recording the second acquisition time corresponding to the picture image of the current frame;
and determining the video frame rate of the video stream to be tested according to the number of the second acquisition moments recorded in unit time.
On the basis of the above embodiment, the visualization module is further configured to record the video frequency, and visually display the video frequency on the output display interface.
It should be noted that, in the foregoing embodiment, each included functional unit or module is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of modules behind each functional unit are only used for distinguishing one module from another, and are not used for limiting the protection scope of the application.
Fig. 6 is a schematic structural diagram of a video stream quality detection apparatus provided in an embodiment of the present application, and as shown in the drawing, the apparatus may be configured to execute the video stream quality detection method provided in the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method, the apparatus includes a processor 301, a memory 302, an input device 303, and an output device 304, where the number of the processors 301 in the apparatus may be one or more, and fig. 6 takes one processor 301 as an example; the processor 301, the memory 302, the input means 303 and the output means 304 in the device may be connected by a bus or other means, fig. 6 taking the example of a connection by a bus. The memory 302 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the video stream quality detection method in the embodiment of the present application. The processor 301 executes software programs, instructions and modules stored in the memory 302 so as to execute various functional applications of the device and data processing, i.e. to implement the video stream quality detection method described above.
The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the device, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 302 may further include memory located remotely from the processor 310, which may be connected to the terminal device via a network. The input device 303 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output means 304 may comprise a display device such as a display screen.
In addition, the present application further provides a storage medium storing computer-executable instructions, which when executed by a computer processor, are configured to perform operations related to the video stream quality detection method provided in any of the embodiments of the present application, and have corresponding functions and advantages.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable storage medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable storage media, including persistent and non-persistent, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable storage medium does not include transitory computer-readable media such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method for video stream quality detection, the method comprising:
acquiring a recorded video displaying a picture corresponding to an active video stream and a video stream to be tested, wherein each frame of image of the active video stream is provided with different two-dimensional codes, each two-dimensional code carries an acquisition time of each frame of image corresponding to the active video stream, and the video stream to be tested is generated by rendering the received active video stream by video receiving equipment;
according to the frame rate of the recorded video, carrying out frame-by-frame segmentation on the recorded video so as to obtain picture images which display the source video stream and the video stream to be tested in the recorded video;
performing two-dimensional code recognition on each frame of picture image, and determining a first acquisition time and a second acquisition time, wherein the first acquisition time is the acquisition time corresponding to each frame of image in the source video stream, and the second acquisition time is the acquisition time corresponding to each frame of image in the video stream to be tested;
determining a video delay based on the first acquisition time and the second acquisition time.
2. The method for detecting the quality of the video stream according to claim 1, wherein the performing two-dimensional code recognition on each frame of the picture image and determining a first acquisition time and a second acquisition time comprises:
and identifying the two-dimensional code in each frame of the segmented picture image based on openCV so as to obtain the first acquisition time and the second acquisition time.
3. The method of claim 1, wherein the determining a video delay based on the first capture moment and the second capture moment comprises:
and calculating and recording a time difference value between the moments corresponding to the first acquisition moment and the second acquisition moment, and taking the time difference value as the video delay.
4. The video stream quality detection method of claim 1, further comprising:
and recording the video delay, and displaying the video delay in a visual way on an output display interface.
5. The video stream quality detection method of claim 1, further comprising:
and determining the video frame rate according to the different number of the second acquisition time in the unit time.
6. The method of claim 5, wherein determining a video frame rate according to the number of the second capturing instants within the unit time comprises:
if the second acquisition time determined based on the picture image of the current frame is different from the second acquisition time determined based on the picture image of the previous frame, recording the second acquisition time corresponding to the picture image of the current frame;
and determining the video frame rate of the video stream to be tested according to the number of the second acquisition moments recorded in unit time.
7. The video stream quality detection method of claim 6, further comprising:
and recording the video frequency, and visually displaying the video frequency on an output display interface.
8. A video stream quality detection apparatus, comprising:
the video acquisition module is configured to acquire a recorded video for displaying pictures corresponding to an active video stream and a video stream to be tested, wherein each frame of image of the active video stream is provided with different two-dimensional codes, each two-dimensional code carries the acquisition time of the frame image corresponding to the active video stream, and the video stream to be tested is generated by rendering the received active video stream by video receiving equipment;
the image acquisition module is configured to divide the recorded video frame by frame according to the frame rate of the recorded video so as to acquire picture images of the recorded video, wherein the picture images display the source video stream and the video stream to be tested;
the image identification module is configured to perform two-dimensional code identification on each frame of picture image, and determine a first acquisition time and a second acquisition time, wherein the first acquisition time is the acquisition time corresponding to each frame of image in the source video stream, and the second acquisition time is the acquisition time corresponding to each frame of image in the video stream to be tested;
a delay determination module configured to determine a video delay based on the first acquisition time and the second acquisition time.
9. A video stream quality detection apparatus, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by one or more of the processors, cause the one or more processors to implement the video stream quality detection method of any one of claims 1-7.
10. A storage medium storing computer executable instructions for performing the video stream quality detection method of any one of claims 1-7 when executed by a computer processor.
CN202211022894.5A 2022-08-25 2022-08-25 Video stream quality detection method, device, equipment and storage medium Pending CN115426534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211022894.5A CN115426534A (en) 2022-08-25 2022-08-25 Video stream quality detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211022894.5A CN115426534A (en) 2022-08-25 2022-08-25 Video stream quality detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115426534A true CN115426534A (en) 2022-12-02

Family

ID=84198718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211022894.5A Pending CN115426534A (en) 2022-08-25 2022-08-25 Video stream quality detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115426534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760973A (en) * 2023-08-18 2023-09-15 天津华来科技股份有限公司 Intelligent camera long connection performance test method and system based on two-dimensional code clock

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616331A (en) * 2009-07-27 2009-12-30 北京汉邦高科数字技术有限公司 A kind of method that video frame rate and audio-visual synchronization performance are tested
US20120287288A1 (en) * 2011-05-15 2012-11-15 Victor Steinberg Systems and methods for metering audio and video delays
CN103796005A (en) * 2012-10-29 2014-05-14 腾讯科技(深圳)有限公司 Video frame rate test method and device
CN103813161A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Delayed testing method and device
CN103826117A (en) * 2014-01-17 2014-05-28 浙江大学 Method of measuring end-to-end delay of mobile phone video communication application
GB201913048D0 (en) * 2019-09-10 2019-10-23 Hitomi Ltd Signal delay measurement
CN111355950A (en) * 2020-03-13 2020-06-30 随锐科技集团股份有限公司 Video transmission quality detection method and system in real-time video communication
CN113068021A (en) * 2021-03-31 2021-07-02 北京飞讯数码科技有限公司 Delay testing method, device, equipment and storage medium
CN114071127A (en) * 2021-11-10 2022-02-18 深圳Tcl新技术有限公司 Live video delay testing method and device, storage medium and electronic equipment
CN114071132A (en) * 2022-01-11 2022-02-18 浙江华睿科技股份有限公司 Information delay detection method, device, equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616331A (en) * 2009-07-27 2009-12-30 北京汉邦高科数字技术有限公司 A kind of method that video frame rate and audio-visual synchronization performance are tested
US20120287288A1 (en) * 2011-05-15 2012-11-15 Victor Steinberg Systems and methods for metering audio and video delays
CN103796005A (en) * 2012-10-29 2014-05-14 腾讯科技(深圳)有限公司 Video frame rate test method and device
CN103813161A (en) * 2012-11-12 2014-05-21 腾讯科技(深圳)有限公司 Delayed testing method and device
CN103826117A (en) * 2014-01-17 2014-05-28 浙江大学 Method of measuring end-to-end delay of mobile phone video communication application
GB201913048D0 (en) * 2019-09-10 2019-10-23 Hitomi Ltd Signal delay measurement
CN111355950A (en) * 2020-03-13 2020-06-30 随锐科技集团股份有限公司 Video transmission quality detection method and system in real-time video communication
CN113068021A (en) * 2021-03-31 2021-07-02 北京飞讯数码科技有限公司 Delay testing method, device, equipment and storage medium
CN114071127A (en) * 2021-11-10 2022-02-18 深圳Tcl新技术有限公司 Live video delay testing method and device, storage medium and electronic equipment
CN114071132A (en) * 2022-01-11 2022-02-18 浙江华睿科技股份有限公司 Information delay detection method, device, equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760973A (en) * 2023-08-18 2023-09-15 天津华来科技股份有限公司 Intelligent camera long connection performance test method and system based on two-dimensional code clock
CN116760973B (en) * 2023-08-18 2023-10-24 天津华来科技股份有限公司 Intelligent camera long connection performance test method and system based on two-dimensional code clock

Similar Documents

Publication Publication Date Title
CN107509107B (en) Method, device and equipment for detecting video playing fault and readable medium
US10565451B2 (en) Augmented video analytics for testing internet of things (IoT) devices
CN104956339B (en) Software test script is generated from video
US20110227925A1 (en) Displaying a visualization of event instances and common event sequences
US10043079B2 (en) Method and apparatus for providing multi-video summary
CN103873852A (en) Multi-mode parallel video quality fault detection method and device
KR102260946B1 (en) Techniques for detecting media playback errors
WO2020093164A1 (en) Methods and systems for detection of anomalous motion in a video stream and for creating a video summary
CN112333467A (en) Method, system, and medium for detecting keyframes of a video
CN115426534A (en) Video stream quality detection method, device, equipment and storage medium
CN112835776A (en) Page event reproduction method, page event acquisition method, page event reproduction device and electronic equipment
CN111262987A (en) Mobile phone detection method and equipment
CN114742992A (en) Video abnormity detection method and device and electronic equipment
CN111416960A (en) Video monitoring system based on cloud service
CN110602481B (en) Video quality detection method and device in video monitoring system
CN110113598A (en) A kind of Network Personal Video Recorder test method and system
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN111368104B (en) Information processing method, device and equipment
CN111369557A (en) Image processing method, image processing device, computing equipment and storage medium
US20220398895A1 (en) Methods, Apparatuses, Systems, Media, and Computer Devices for Processing Data
CN115424405A (en) Smoke and fire monitoring and alarming method, device, equipment and storage medium
CN113252678A (en) Appearance quality inspection method and equipment for mobile terminal
CN114422777A (en) Image recognition-based time delay testing method and device and storage medium
CN112995650B (en) Method and device for detecting video continuity of camera
CN114419502A (en) Data analysis method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination