CN115499708A - Video playing processing method and device and electronic equipment - Google Patents

Video playing processing method and device and electronic equipment Download PDF

Info

Publication number
CN115499708A
CN115499708A CN202211174735.7A CN202211174735A CN115499708A CN 115499708 A CN115499708 A CN 115499708A CN 202211174735 A CN202211174735 A CN 202211174735A CN 115499708 A CN115499708 A CN 115499708A
Authority
CN
China
Prior art keywords
video
frame
playing
source
similarity
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
CN202211174735.7A
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.)
Shenzhen Qianhai Shenlei Semiconductor Co ltd
Original Assignee
Shenzhen Qianhai Shenlei Semiconductor 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 Shenzhen Qianhai Shenlei Semiconductor Co ltd filed Critical Shenzhen Qianhai Shenlei Semiconductor Co ltd
Priority to CN202211174735.7A priority Critical patent/CN115499708A/en
Publication of CN115499708A publication Critical patent/CN115499708A/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The embodiment of the invention provides a video playing processing method, a video playing processing device and electronic equipment, wherein the method triggers a video code stream file of a video to be tested by responding to the playing operation of the video, collects the video code stream file of a source to be tested and generates a collected video stream corresponding to the video code stream file of the source to be tested; then, acquiring an original video file of a source to be tested; calculating the frame similarity of the original video file and the collected video stream frame by frame; the playing state of the video testing equipment is tested and predicated based on the frame similarity, the testing can be completed in the video playing process, and the judgment of the playing state is completed, so that the technical effect of full-automatic testing is realized, the video testing is not dependent on manual work, and the influence of external factors such as light rays and the like can be avoided.

Description

Video playing processing method and device and electronic equipment
Technical Field
The present invention relates to the technical field of video processing, and in particular, to a method and an apparatus for processing video playing, and an electronic device.
Background
At present, for the test of video playing, mostly the test is carried out through the manual work, and through the observation of manual operation naked eyes, the video played is the condition that there is the broadcast anomaly enough, for example: black screen, frame loss or discontinuous play, etc.
Or, the method is partially used for automatic testing, video recording or software screen capture is performed on display screen content through a camera, then the video recording content or screen capture image of the camera is analyzed, whether abnormal conditions exist in a played video is often limited due to conditions such as artificial patience degree or energy consumption, and the situation that a testing effect is poor is caused, and the method for video recording or software screen capture of the content played by video playing has influence depending on external environments, such as light conditions and other factors, so that a testing result is influenced.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and an electronic device for processing video playback to solve the above existing technical problems.
In a first aspect, an embodiment of the present invention provides a method for processing video playback, where the method includes: responding to a video playing operation acted on the video testing equipment, and triggering the video testing equipment to play a video code stream file of a source to be tested; responding to a video acquisition operation acted on the video acquisition equipment, triggering the video acquisition equipment to acquire a video code stream file of a source to be tested, which is played by the video test equipment, and generating an acquired video stream corresponding to the video code stream file of the source to be tested; acquiring an original video file of a source to be tested; calculating the frame similarity of the original video file and the collected video stream frame by frame; and testing and asserting the playing state of the video testing equipment based on the frame similarity.
Further, the step of calculating the frame similarity of the original video file and the captured video stream frame by frame includes: splitting a source video code stream file of an original video file frame by frame to generate a source video frame of the original video file; splitting a video code stream file of the collected video stream frame by frame to generate a collected frame of the collected video stream; and calculating the frame similarity of the source video frame and the collected frame by frame according to the video playing sequence.
Further, the step of calculating the frame similarity of the source video frame and the acquisition frame by frame comprises: calculating a first histogram of a source video frame and a second histogram of a collected frame by frame; normalizing the first histogram and the second histogram to the same preset scale space; calculating distance parameters of the first histogram and the second histogram in a preset scale space; and determining the distance parameter as the frame similarity of the source video frame and the acquisition frame.
Further, the step of performing test assertion on the playing state of the video test device based on the frame similarity includes: comparing the frame similarity with a preset similarity threshold range of the playing state; and determining the playing state corresponding to the similarity threshold range to which the frame similarity belongs as the playing state of the video test equipment according to the comparison result, and generating test assertion information of the video test equipment.
Further, wherein the playing state comprises: video playing failure, video playing abnormity and video playing normality; the similarity threshold ranges respectively comprise similarity threshold ranges corresponding to video playing failures; a similarity threshold range corresponding to video playing abnormity and a similarity threshold range corresponding to video playing normality; determining the playing state corresponding to the similarity threshold range to which the frame similarity belongs as the playing state of the video test equipment according to the comparison result, and generating test assertion information of the video test equipment, wherein the step comprises the following steps of: if the frame similarity falls into the similarity threshold range corresponding to the video playing failure, determining that the playing state of the video testing equipment is the video playing failure, and generating testing assertion information of the video playing failure; if the frame similarity falls into the similarity threshold range corresponding to the video playing abnormity, determining that the playing state of the video testing equipment is the video playing abnormity, and generating testing assertion information of the video playing abnormity; and if the frame similarity falls into the similarity threshold range corresponding to the video playing normality, determining that the playing state of the video testing equipment is the video playing normality, and generating testing assertion information of the video playing normality.
Further, the step of triggering the video test equipment to play the video code stream file of the source to be tested includes: and triggering the video test equipment to play the video code stream file of the source to be tested through a preset first control script.
Further, the step of triggering the video acquisition device to acquire the video code stream file of the source to be tested, which is played by the video test device, includes: and triggering the video acquisition equipment to acquire the video code stream file of the source to be tested, which is played by the video test equipment, through a preset second control script.
In a second aspect, an embodiment of the present invention provides a processing apparatus for video playback, where the apparatus includes: the first trigger module is used for responding to the video playing operation acted on the video test equipment and triggering the video test equipment to play the video code stream file of the source to be tested; the second trigger module is used for responding to the video acquisition operation acted on the video acquisition equipment, triggering the video acquisition equipment to acquire the video code stream file of the source to be tested, which is played by the video test equipment, and generating an acquired video stream corresponding to the video code stream file of the source to be tested; the acquisition module is used for acquiring an original video file of a source to be tested; the computing module is used for computing the frame similarity of the original video file and the collected video stream frame by frame; and the testing module is used for testing and asserting the playing state of the video testing equipment based on the frame similarity.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the above methods.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform any of the methods described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a video playing processing method, wherein the method triggers a video code stream file of a video to be tested by responding to the playing operation of the video, also collects the video code stream file of a source to be tested, and generates a collected video stream corresponding to the video code stream file of the source to be tested; then obtaining an original video file of a source to be tested; calculating the frame similarity of the original video file and the collected video stream frame by frame; the playing state of the video testing equipment is tested and predicated based on the frame similarity, the testing can be completed in the video playing process, and the judgment of the playing state is completed, so that the technical effect of full-automatic testing is realized, the video testing is not dependent on manual work, and the influence of external factors such as light rays and the like can be avoided.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a video playing processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of another video playing processing method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating normal source video frames according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an acquisition frame in a black screen state according to an embodiment of the present invention;
FIG. 5 is a diagram of another normal source video frame according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an acquisition frame with mosaic phenomenon according to an embodiment of the present invention;
FIG. 7 is a diagram of another normal source video frame according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a normal acquisition frame according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a video playback processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, for the test of video playing, mostly test through the manual work, through manual operation naked eye observation, the video of playing is the condition that there is the broadcast exception enough, if: black screen, frame loss or discontinuous play, etc. Or, the method is partially used for automatic testing, video recording or software screen capture is performed on display screen content through a camera, then the video recording content or screen capture image of the camera is analyzed, whether abnormal conditions exist in a played video is often limited due to conditions such as artificial patience degree or energy consumption, and the situation that a testing effect is poor is caused, and the method for video recording or software screen capture of the content played by video playing has influence depending on external environments, such as light conditions and other factors, so that a testing result is influenced.
Based on this, the video playing processing method, the video playing processing device and the electronic device provided by the embodiment of the invention can complete the test in the video playing process and complete the judgment of the playing state, thereby realizing the technical effect of a fully automatic test.
To facilitate understanding of the present embodiment, a detailed description is first given of a processing method for video playing disclosed in the present embodiment.
An embodiment of the present invention provides a video playing processing method, such as a flowchart of a video playing processing method shown in fig. 1, where the method includes the following steps:
step S102, responding to a video playing operation acted on a video testing device, and triggering the video testing device to play a video code stream file of a source to be tested;
specifically, a script can be preset to realize video playing operation of the video test equipment, and the script is used to play the video code stream file of the source to be tested, so that the video code stream file is played.
Step S104, responding to the video acquisition operation acted on the video acquisition equipment, triggering the video acquisition equipment to acquire a video code stream file of a source to be tested, which is played by the video test equipment, and generating an acquired video stream corresponding to the video code stream file of the source to be tested;
specifically, after the script triggers the playing of the video code stream file, the acquisition card is used for acquiring the video code stream file of the source to be tested, which is played by the video test equipment, to generate a corresponding acquired video stream, and the acquired video stream is output to the test station.
Step S106, obtaining an original video file of a source to be tested;
specifically, an original video file of a source to be tested is stored in a testing station.
Step S108, calculating the frame similarity of the original video file and the collected video stream frame by frame;
specifically, an acquired video stream acquired by an acquisition card is split into frames, which are named as acquisition frames; splitting a test source video into frames, and naming the frames as source video frames; comparing the collected frame with the corresponding source video frame, wherein the comparison algorithm adopts a histogram method, the collected frame and the corresponding source video frame are used as two input images, histograms H1 and H2 are obtained through calculation, and the histograms are normalized to the same scale space; then, the similarity degree of the two histograms can be obtained by calculating the distance between the H1 and the H2, and then the similarity degree of the images is compared, so that the basis of the video playing detection assertion is provided.
Since video is a continuous image, if the frame rate is a video stream of M frames per second and 30 seconds in duration, there are N =30M frame data in total. When the video is played, the acquisition card acquires the video, and the acquired N frame data is compared with the corresponding frame of the N frames of the test source video from the 1 st frame to the N frame from the beginning of playing, so that the abnormity of the video playing is detected.
Step S110, testing and asserting the playing state of the video testing equipment based on the frame similarity.
Compared with manual testing, the video playing processing method provided by the application has the advantages that the testing speed is high: the acquisition card can acquire 60 frames per second at most in 1 second, the automatic test script can flexibly control the test duration, and the defects that the manual test is slow, the fatigue is observed by manual eyes and the reliability is gradually reduced are overcome; meanwhile, compared with the existing method of shooting the video picture by adopting the camera and manually or automatically comparing, the method reduces the influence of external environment such as lamplight and shooting camera equipment hardware parameters, directly inputs the output end of the video output to a test station computer through an HDMI (high-definition multimedia interface) line and an HDMI acquisition card, avoids the influence of external factors such as the ambient lamplight and the like, and has higher reliability.
Based on the above embodiments, fig. 2 shows a flowchart of another video playing processing method, which is implemented on the basis of the video playing processing method shown in fig. 1, and as shown in fig. 2, the method includes the following steps:
step S202, responding to a video playing operation acted on a video testing device, and triggering the video testing device to play a video code stream file of a source to be tested;
specifically, a script can be preset to realize video playing operation of the video playing test equipment, and the script is used for playing the video code stream file of the source to be tested, so that the video code stream file is played.
Step S204, responding to the video acquisition operation acted on the video acquisition equipment, triggering the video acquisition equipment to acquire the video code stream file of the source to be tested, played by the video test equipment, and generating an acquired video stream corresponding to the video code stream file of the source to be tested;
specifically, the video acquisition equipment is triggered to acquire the video code stream file of the source to be tested, which is played by the video test equipment, through a preset second control script.
Step S206, acquiring an original video file of a source to be tested;
step S208, splitting the source video code stream file of the original video file frame by frame to generate a source video frame of the original video file;
step S210, splitting a video code stream file of the collected video stream frame by frame to generate a collected frame of the collected video stream;
step S212, calculating the frame similarity of the source video frame and the collected frame by frame according to the video playing sequence;
specifically, the process of calculating the frame similarity between the source video frame and the capture frame by frame includes the following steps A1 to A4:
a1, calculating a first histogram of a source video frame and a second histogram of a collected frame by frame;
step A2, normalizing the first histogram and the second histogram to the same preset scale space;
step A3, calculating distance parameters of the first histogram and the second histogram in a preset scale space;
and step A4, determining the distance parameter as the frame similarity of the source video frame and the acquisition frame.
Step S214, testing and asserting the playing state of the video testing equipment based on the frame similarity.
Specifically, the process of testing and asserting the playing state of the video test device based on the frame similarity includes the following steps B1 to B4:
step B1, comparing the frame similarity with a preset similarity threshold range of a playing state;
and step B2, determining the playing state corresponding to the similarity threshold range to which the frame similarity belongs as the playing state of the video test equipment according to the comparison result, and generating test assertion information of the video test equipment.
Specifically, the playing state includes: video playing failure, video playing abnormity and video playing normality;
in practical application, after the video of the video code stream file is played, the acquisition card acquires the acquisition frame of the black screen and judges that the video playing fails; after the video of the video code stream file is played, judging that the video playing is abnormal if the acquisition card acquires an acquisition frame with mosaic phenomenon; after the video of the video code stream file is played, if the acquisition card acquires normal acquisition frames, the video playing is judged to be normal.
When the similarity threshold ranges respectively comprise the similarity threshold ranges corresponding to the video playing failures; a similarity threshold range corresponding to video playing abnormity and a similarity threshold range corresponding to video playing normality;
determining the playing state corresponding to the similarity threshold range to which the frame similarity belongs as the playing state of the video test equipment according to the comparison result, and generating test assertion information of the video test equipment, wherein the step comprises the following steps of:
if the frame similarity falls into the similarity threshold range corresponding to the video playing failure, determining that the playing state of the video testing equipment is the video playing failure, and generating testing assertion information of the video playing failure;
if the frame similarity falls into the similarity threshold range corresponding to the video playing abnormity, determining that the playing state of the video testing equipment is the video playing abnormity, and generating testing assertion information of the video playing abnormity;
and if the frame similarity falls into the similarity threshold range corresponding to the video playing normality, determining that the playing state of the video testing equipment is the video playing normality, and generating testing assertion information of the video playing normality.
Specifically, the following three anomalies are illustrated by comparison:
the first situation is that after the video of the video code stream file is played, the acquisition card acquires the acquisition frame of the black screen, as shown in fig. 3 and 4, fig. 3 shows a schematic diagram of the source video frame in a normal situation, fig. 4 shows a schematic diagram of the acquisition frame in a black screen state, then through a histogram image comparison algorithm, in an actual test, the similarity ratio 0.003986383 of fig. 3 and fig. 4 is close to 0, and according to the great difference between the two frames, it can be declared that the video test is abnormal, and the video playing fails.
The second situation is that after the video of the video code stream file is played, the acquisition card acquires the acquisition frames with mosaic phenomenon: as shown in fig. 5 and 6, fig. 5 shows another schematic diagram of a source video frame in a normal condition, and fig. 6 shows a schematic diagram of a captured frame with a mosaic phenomenon, then through a histogram image contrast algorithm, in an actual test, the similarity of the similarity 0.430035800 in fig. 5 and fig. 6 is only 0.43, which can determine that a played video is inconsistent, and can determine that a video test is abnormal, and there is a significant difference with the source video frame.
The third situation is that after the video of the video code stream file is played, the acquisition card acquires normal acquisition frames: as shown in fig. 7 and 8, fig. 7 shows another source video frame in a normal condition, and fig. 8 shows a schematic diagram of a captured frame in a normal state, then, through a histogram image contrast algorithm, in an actual test, the similarity ratio between the above-mentioned fig. 7 and fig. 8 is 1.000000000, and the similarity is 1, then the captured frame captured by the capture card is completely the same as the source video frame, and it can be determined that the video test is normal.
In practical applications, the similarity threshold ranges respectively corresponding to the video playing failure, the video playing abnormality, and the video playing normality can be set according to specific playing equipment and playing conditions, and are not particularly limited herein.
As to the foregoing method embodiment, an embodiment of the present invention provides a processing apparatus for video playing, and as shown in fig. 9, the processing apparatus for video playing includes:
the first triggering module 901 is configured to trigger the video testing device to play a video code stream file of a source to be tested in response to a video playing operation acting on the video testing device;
the second triggering module 902 is configured to trigger the video acquisition device to acquire a video code stream file of a source to be tested, which is played by the video testing device, in response to a video acquisition operation performed on the video acquisition device, and generate an acquired video stream corresponding to the video code stream file of the source to be tested;
an obtaining module 903, configured to obtain an original video file of a source to be tested;
a calculating module 904, configured to calculate frame similarity between an original video file and a captured video stream frame by frame;
the testing module 905 is configured to test and assert the playing state of the video testing apparatus based on the frame similarity.
An embodiment of the present invention further provides an electronic device, as shown in fig. 10, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 81 and a memory 82, the memory 82 stores machine executable instructions that can be executed by the processor 81, and the processor 81 executes the machine executable instructions to implement the processing method for playing the video.
In the embodiment shown in fig. 8, the electronic device further comprises a bus 83 and a communication interface 84, wherein the processor 81, the communication interface 84 and the memory 82 are connected by the bus.
The Memory 82 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 84 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
Processor 81 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 81. The Processor 81 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device 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 Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory, and the processor 81 reads the information in the memory 82, and completes the steps of the processing method for video playing of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the processing method for playing the video.
The video playing processing method and apparatus and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the video playing processing method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing video playback, the method comprising:
responding to a video playing operation acted on video testing equipment, and triggering the video testing equipment to play a video code stream file of a source to be tested;
responding to a video acquisition operation acted on a video acquisition device, triggering the video acquisition device to acquire the video code stream file of the source to be tested played by the video test device, and generating an acquired video stream corresponding to the video code stream file of the source to be tested;
acquiring an original video file of the source to be tested;
calculating the frame similarity of the original video file and the acquired video stream frame by frame;
and testing and asserting the playing state of the video testing equipment based on the frame similarity.
2. The method of claim 1, wherein the step of calculating the frame similarity of the original video file and the captured video stream on a frame-by-frame basis comprises:
splitting a source video code stream file of the original video file frame by frame to generate a source video frame of the original video file; and the number of the first and second groups,
splitting a video code stream file of the collected video stream frame by frame to generate a collection frame of the collected video stream;
and calculating the frame similarity of the source video frame and the acquisition frame by frame according to the video playing sequence.
3. The method according to claim 2, wherein the step of calculating frame similarity of the source video frames and the capture frames on a frame-by-frame basis comprises:
calculating a first histogram of the source video frame and a second histogram of the acquisition frame by frame;
normalizing the first histogram and the second histogram to the same preset scale space;
calculating distance parameters of the first histogram and the second histogram in the preset scale space;
and determining the distance parameter as the frame similarity of the source video frame and the acquisition frame.
4. The method of claim 1, wherein the step of test asserting the play state of the video test device based on the frame similarity comprises:
comparing the frame similarity with a preset similarity threshold range of a playing state;
and determining the playing state corresponding to the similarity threshold range to which the frame similarity belongs as the playing state of the video test equipment according to the comparison result, and generating test assertion information of the video test equipment.
5. The method of claim 4, wherein the play state comprises: video playing failure, video playing abnormity and video playing normality;
the similarity threshold ranges respectively comprise similarity threshold ranges corresponding to the video playing failures; a similarity threshold range corresponding to the video playing abnormity and a similarity threshold range corresponding to the video playing normality;
determining a playing state corresponding to the similarity threshold range to which the frame similarity belongs as a playing state of the video test device according to the comparison result, and generating test assertion information of the video test device, wherein the steps include:
if the frame similarity falls into the similarity threshold range corresponding to the video playing failure, determining that the playing state of the video testing equipment is the video playing failure, and generating testing assertion information of the video playing failure;
if the frame similarity falls into the similarity threshold range corresponding to the video playing abnormity, determining that the playing state of the video testing equipment is the video playing abnormity, and generating testing assertion information of the video playing abnormity;
and if the frame similarity falls into the similarity threshold range corresponding to the video playing normality, determining that the playing state of the video testing equipment is the video playing normality, and generating testing assertion information of the video playing normality.
6. The method of claim 1, wherein the step of triggering the video test device to play the video bitstream file of the source to be tested comprises:
and triggering the video test equipment to play the video code stream file of the source to be tested through a preset first control script.
7. The method of claim 1, wherein the step of triggering the video capture device to capture the video bitstream file of the source to be tested played by the video test device comprises:
and triggering the video acquisition equipment to acquire the video code stream file of the source to be tested, which is played by the video test equipment, through a preset second control script.
8. A processing apparatus for video playback, the apparatus comprising:
the first trigger module is used for responding to a video playing operation acted on the video test equipment and triggering the video test equipment to play a video code stream file of a source to be tested;
the second trigger module is used for responding to the video acquisition operation acted on the video acquisition equipment, triggering the video acquisition equipment to acquire the video code stream file of the source to be tested, which is played by the video test equipment, and generating an acquired video stream corresponding to the video code stream file of the source to be tested;
the acquisition module is used for acquiring the original video file of the source to be tested;
the calculation module is used for calculating the frame similarity of the original video file and the acquired video stream frame by frame;
and the testing module is used for testing and asserting the playing state of the video testing equipment based on the frame similarity.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to carry out the method of any of claims 1 to 7.
CN202211174735.7A 2022-09-26 2022-09-26 Video playing processing method and device and electronic equipment Pending CN115499708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211174735.7A CN115499708A (en) 2022-09-26 2022-09-26 Video playing processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211174735.7A CN115499708A (en) 2022-09-26 2022-09-26 Video playing processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115499708A true CN115499708A (en) 2022-12-20

Family

ID=84469918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211174735.7A Pending CN115499708A (en) 2022-09-26 2022-09-26 Video playing processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115499708A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120075480A1 (en) * 2010-09-24 2012-03-29 Hon Hai Precision Industry Co., Ltd. Video testing system and method
CN110175591A (en) * 2019-05-31 2019-08-27 中科软科技股份有限公司 A kind of method and system obtaining video similarity
CN111669574A (en) * 2020-06-19 2020-09-15 新华三大数据技术有限公司 Video playing quality detection method and device
CN112995654A (en) * 2021-02-08 2021-06-18 咪咕音乐有限公司 Video playing pause detection method and device, server and readable storage medium
CN113596467A (en) * 2020-04-30 2021-11-02 北京达佳互联信息技术有限公司 Transcoding service detection method and device, electronic equipment and storage medium
CN113709447A (en) * 2021-08-02 2021-11-26 北京奇艺世纪科技有限公司 Method and device for detecting playing performance of terminal equipment
CN115022675A (en) * 2022-07-01 2022-09-06 天翼数字生活科技有限公司 Video playing detection method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120075480A1 (en) * 2010-09-24 2012-03-29 Hon Hai Precision Industry Co., Ltd. Video testing system and method
CN110175591A (en) * 2019-05-31 2019-08-27 中科软科技股份有限公司 A kind of method and system obtaining video similarity
CN113596467A (en) * 2020-04-30 2021-11-02 北京达佳互联信息技术有限公司 Transcoding service detection method and device, electronic equipment and storage medium
CN111669574A (en) * 2020-06-19 2020-09-15 新华三大数据技术有限公司 Video playing quality detection method and device
CN112995654A (en) * 2021-02-08 2021-06-18 咪咕音乐有限公司 Video playing pause detection method and device, server and readable storage medium
CN113709447A (en) * 2021-08-02 2021-11-26 北京奇艺世纪科技有限公司 Method and device for detecting playing performance of terminal equipment
CN115022675A (en) * 2022-07-01 2022-09-06 天翼数字生活科技有限公司 Video playing detection method and system

Similar Documents

Publication Publication Date Title
CN107509107B (en) Method, device and equipment for detecting video playing fault and readable medium
US8289397B2 (en) System and method for testing a digital camera module
JP6343430B2 (en) Video detection apparatus and missing video frame detection method
CN103873852A (en) Multi-mode parallel video quality fault detection method and device
US20110026823A1 (en) System and method for detecting blemishes in an image captured by an electronic device
CN116519707A (en) Lithium battery defect detection method and device based on machine vision and electronic equipment
CN116527879A (en) Set top box testing method, device, medium and computer device
CN113362270A (en) Method and device for monitoring abnormal display of display screen picture
CN105704485B (en) Performance parameter detection method and system of display equipment
CN114742992A (en) Video abnormity detection method and device and electronic equipment
CN108881876B (en) Method and device for carrying out white balance processing on image and electronic equipment
CN118042285A (en) Industrial camera self-adaptive exposure method and device for dimming film and electronic equipment
CN112073713B (en) Video leakage test method, device, equipment and storage medium
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN115499708A (en) Video playing processing method and device and electronic equipment
US8417019B2 (en) Image correction system and method
CN112685128B (en) Live image pornography detection and image filtering method
CN110211085B (en) Image fusion quality evaluation method and system
CN109982069B (en) Method and system for measuring respiratory effect
TWI599222B (en) Photographic device anomaly detection method
CN112949490A (en) Device action detection method and device, electronic device and readable storage medium
US8351690B2 (en) System and method for detecting black bars in electronic image
KR101076478B1 (en) Method of detecting the picture defect of flat display panel using stretching technique and recording medium
CN115942032B (en) Method, device, equipment and storage medium for detecting multimedia interface
CN114973255B (en) Single-point character recognition method and device

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