Method and apparatus for detecting local video playback quality and electronic device

CN122120484APending Publication Date: 2026-05-29AMLOGIC (SHANGHAI) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
AMLOGIC (SHANGHAI) CO LTD
Filing Date
2024-11-27
Publication Date
2026-05-29

Smart Images

  • Figure CN122120484A_ABST
    Figure CN122120484A_ABST
Patent Text Reader

Abstract

The application discloses a method and device for detecting local video playing quality and electronic equipment, and the method for detecting local video playing quality comprises the following steps: acquiring frame data of a currently played local video; performing quality detection on the currently played local video based on the frame data, wherein the quality detection comprises at least one of frame checking and playing state detection; and obtaining a quality detection result of the currently played local video. The method can automatically detect the local video playing quality without relying on manual observation, is not affected by subjective factors, has high efficiency in a large number of detections, can easily detect small changes in the video, avoids visual misjudgment, has a simple detection process, is strong in universality and easy to popularize, and improves the accuracy of the detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video playback, and in particular to a method for detecting the quality of local video playback, as well as an apparatus, electronic device, and computer-readable storage medium for detecting the quality of local video playback. Background Technology

[0002] In related technologies, the detection of local video playback quality often relies on manual observation or the use of neural network training models. This is inefficient when checking the quality of a large number of videos, and is easily affected by subjective factors. Small changes in the video may not be easily noticed, which can lead to visual misjudgment. In addition, the operation is cumbersome, not easy to promote and lacks universality, has high requirements for computer performance, and the detection results are inaccurate. Summary of the Invention

[0003] This invention aims to at least solve one of the technical problems existing in the prior art. Therefore, one objective of this invention is to propose a method for detecting the quality of local video playback. This method can automatically detect local video playback quality without relying on manual observation, is unaffected by subjective factors, has high efficiency in large-scale testing, easily detects subtle changes in the video, avoids visual misjudgments, simplifies the detection process, is highly versatile and easy to promote, and improves the accuracy of the detection results.

[0004] The second objective of this invention is to provide a device for detecting the quality of local video playback.

[0005] The third objective of this invention is to provide an electronic device.

[0006] The fourth objective of this invention is to provide a computer-readable storage medium.

[0007] To address the aforementioned problems, a first aspect of the present invention provides a method for detecting the playback quality of a local video, comprising: acquiring frame data of a currently playing local video; performing quality detection on the currently playing local video based on the frame data, wherein the quality detection includes at least one of frame verification and playback status detection; and obtaining a quality detection result of the currently playing local video.

[0008] The method for detecting the playback quality of local videos according to embodiments of the present invention first acquires the frame data of the currently playing local video, automatically detects the currently playing local video based on the frame data, and obtains the quality detection result of the currently playing local video. It does not rely on manual observation, is not affected by subjective factors, has high efficiency when detecting a large number of videos, makes it easy to detect small changes in the video, avoids visual misjudgment, simplifies the detection process, has strong versatility and is easy to promote, and improves the accuracy of the detection results.

[0009] In some embodiments, quality detection of the currently playing local video based on the frame data includes: determining the total number of frames played in the currently playing local video based on the frame data; determining that the playback status of the currently playing local video is normal when the total number of frames is in a linearly increasing state; or determining that the playback status of the currently playing local video is abnormal when the total number of frames is not in the linearly increasing state.

[0010] In some embodiments, the total number of frames not being in the linearly increasing state includes at least one of the following: a first state: the total number of frames is maintained at 0; a second state: the total number of frames is in a non-uniformly increasing state; a third state: the total number of frames is any non-zero value and the duration of the total number of frames being the any non-zero value reaches a time threshold.

[0011] In some embodiments, the method for detecting the playback quality of a local video further includes: when the currently playing local video finishes playing, the total number of frames played in the currently playing local video is automatically reset to zero.

[0012] In some embodiments, quality detection includes the frame verification. The quality detection of the currently playing local video based on the frame data includes: performing a CRC check on each frame of the currently playing local video that has been played to obtain a CRC check value for each frame; obtaining a total CRC check value for all played frame data of the currently playing local video, wherein the total CRC check value is obtained by performing a CRC check on the entire set of CRC check values ​​of all played frame data; determining that the currently playing local video is playing normally when the total CRC check value is the same as a standard check value; or determining that the currently playing local video is playing abnormally when the total CRC check value is different from the standard check value.

[0013] In some embodiments, when the quality detection includes the frame verification and the playback state detection, it further includes: If the quality detection method based on the playback status has determined that the playback status of the currently playing local video is abnormal, then the frame verification of the currently playing local video is stopped, and the detection information of the currently playing video is recorded; or, if the frame verification has determined that the playback status of the currently playing local video is abnormal, then the playback status detection of the currently playing local video is stopped, and the detection information of the currently playing video is recorded.

[0014] In some embodiments, the method for detecting local video playback quality further includes displaying the quality detection result.

[0015] In some embodiments, displaying the quality inspection results includes: displaying a quality inspection list, the quality inspection list including a result column and a status column; wherein, the result column includes video inspection passed, video inspection failed, and preset standard comparison items, and the status column includes detailed information of the quality inspection results.

[0016] In some embodiments, when the total CRC checksum of the video is the same as the standard checksum of the preset standard reference item corresponding to the video, the result column corresponding to the video records the video as having passed the detection, and the status column corresponding to the video's status information includes the video's name, the total CRC checksum of the video, and the detection time; or, when the total CRC checksum of the video is not the same as the standard checksum of the preset standard reference item corresponding to the video, the result column corresponding to the video records the video as having failed the detection, and the status column corresponding to the video's status information includes the video's name, the total CRC checksum of the video, and the detection time.

[0017] In some embodiments, when a video playback anomaly is determined by playback status detection and the anomaly corresponds to a first state, where the total number of frames in the video playback progress remains 0, the result column corresponding to the video is recorded as a video detection failure, and the status information of the status column corresponding to the video includes the video name, the video initial frame playback anomaly, and the detection time; or, when a video playback anomaly is determined by playback status detection and the anomaly corresponds to a third state, where the third state is a total number of frames in the video playback progress that is any non-zero value and the duration of the total number of frames being any non-zero value reaches a time threshold, the result column corresponding to the video is recorded as a video detection failure, and the status information of the status column corresponding to the video includes the video name, the video playback process anomaly, and the detection time.

[0018] A second aspect of the present invention provides an apparatus for detecting the playback quality of a local video, comprising: a quality detection module, the quality detection module including at least one of a frame verification module and a playback status detection module, the frame verification module being used to perform verification based on the frame verification value of each video frame of the currently playing local video; the playback status detection module being used to perform detection based on the total number of frames in the playback progress of the currently playing local video; and a result storage module, connected to the quality detection module, for storing the detection results of the quality detection module for the currently playing local video.

[0019] The device for detecting local video playback quality according to an embodiment of the present invention detects the local video playback quality through a frame verification module or a playback status detection module in the detection module, and saves the detection results in the result storage module. It is highly efficient when detecting a large number of videos, makes it easy to detect small changes in the video, avoids visual misjudgment, simplifies the detection process, is highly versatile and easy to promote, and improves the accuracy of the detection results.

[0020] In some embodiments, the device for detecting local video playback quality further includes: a video storage module for storing video frame data; and a video decoding and playback module connected to the video storage module for obtaining video files from the video storage module and decoding and playing the video files.

[0021] A third aspect of the present invention provides an electronic device, comprising: at least one processor; a memory communicatively connected to the at least one processor; the memory storing a computer program executable by the at least one processor, wherein the at least one processor executes the computer program to implement the method for detecting local video playback quality described in the above embodiments.

[0022] According to the electronic device of the present invention, a corresponding program for detecting local video playback quality can be stored in the memory. When the method for detecting local video playback quality is implemented, the processor runs the program in the memory to automatically detect the local video playback quality, thereby improving detection efficiency, making it easier to detect minute changes in the video, avoiding visual misjudgment, simplifying the detection process, and improving the accuracy of the detection results.

[0023] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed, it implements the method for detecting local video playback quality described in the above embodiments.

[0024] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0025] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart of a method for detecting local video playback quality according to an embodiment of the present invention; Figure 2 This is a flowchart of frequency stuttering detection according to an embodiment of the present invention; Figure 3 This is a flowchart of video CRC verification according to an embodiment of the present invention; Figure 4 This is a schematic diagram of CRC verification according to an embodiment of the present invention; Figure 5 This is a schematic diagram of a quality inspection list according to an embodiment of the present invention; Figure 6 This is a structural block diagram of a device for detecting local video playback quality according to an embodiment of the present invention; Figure 7 This is a schematic diagram illustrating the working steps of a device for detecting local video playback quality according to an embodiment of the present invention; Figure 8 This is a structural block diagram of an electronic device according to an embodiment of the present invention.

[0026] Figure label: 100 devices for detecting local video playback quality; 200 electronic devices; Quality inspection module 110; Result storage module 120; Video storage module 130; Video decoding and playback module 140; Frame verification module 111; playback status detection module 112; processor 201; memory 202. Detailed Implementation

[0027] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention are described in detail below.

[0028] In existing technologies, many common quality problems occur during local video playback, such as frame drops or frame decoding errors, causing abnormal video playback. The detection of these problems still mainly relies on manual observation. This method has certain limitations. Human observation is affected by subjective factors, which not only leads to inefficiency when there are many videos, but also causes eye fatigue due to prolonged observation, resulting in decreased observation accuracy. Furthermore, video quality problems may manifest as minor changes or instantaneous issues that are difficult to observe with the human eye, leading to missed detections or misjudgments. These factors make it difficult to detect and resolve video quality problems in a timely and accurate manner during video transmission and processing.

[0029] Alternatively, by combining a neural network training model and importing the video into the model, video quality detection results can be obtained. The specific method is as follows: acquire the video and audio data of the video to be detected; perform abnormal playback detection on the video data to obtain the initial quality detection result; if the initial quality detection result is unqualified, determine the duration of abnormal playback; if the duration does not exceed a preset threshold, extract audio features from the audio data to obtain the corresponding audio spectrum; based on the abnormal playback duration and the audio spectrum of the audio data, determine the quality detection result of the video to be detected. Among these, abnormal playback detection is the core part of the method. It can detect whether there are abnormal playback phenomena in the video by analyzing the video data. In this method, the result of abnormal playback detection is used to determine the initial detection result of the video to be detected, thereby further determining the quality result of the video to be detected.

[0030] Traditional video quality inspection methods still rely mainly on manual inspection, which is time-consuming and labor-intensive. In contrast to traditional manual inspection methods, neural networks require training models and comparing audio, which is cumbersome, difficult to promote, and has high requirements for computer performance. Neural network models are only applicable to specific types of video files and lack universality. Detection based on neural network models is easily affected by factors such as video file quality and audio interference, resulting in inaccurate detection results.

[0031] To address the above problems, the first aspect of this invention provides a method for detecting the playback quality of local videos. This method can automatically detect local video playback quality without relying on manual observation, is unaffected by subjective factors, has high efficiency in large-scale testing, easily detects minute changes in the video, avoids visual misjudgment, simplifies the detection process, is highly versatile and easy to promote, and improves the accuracy of the detection results.

[0032] The following is for reference. Figure 1 A method for detecting local video playback quality according to an embodiment of the first aspect of the present invention is described, such as... Figure 1 As shown, the method includes at least steps S1 to S3.

[0033] Step S1: Obtain the frame data of the currently playing local video.

[0034] Specifically, video frame data refers to individual still images in a video. These images are played at a certain rate to create a continuous visual effect. Each frame is a basic unit in the video. When these frames are displayed quickly and continuously, they create a visual effect of continuous motion for the viewer. In video processing, frame data plays a crucial role. Each frame is essential to the entire video, enhancing the visual narrative and rhythm. The currently playing local video can be understood as the video being detected. When detecting the currently playing local video, the frame data of the currently playing local video is first acquired to facilitate the analysis of each frame data in subsequent detection.

[0035] For example, each frame of an image is typically represented in YUV format, which is an abbreviation for luminance, chrominance, and colorimetry. The YUV format decomposes each pixel into luminance (Y) and chrominance (U and V) components to efficiently represent a color image. In digital video processing, the YUV format is widely used for storing and transmitting video data.

[0036] Luminosity (Y): Represents the brightness of an image, i.e., grayscale information. The luminosity channel determines the black-and-white level and contrast of the image. Chromaticity (U and V): Represents color information. The chromaticity channels describe the color and saturation of an image. The U channel represents the difference between blue and luminance, and the V channel represents the difference between red and luminance. The YUV representation of each pixel contains one luminance value (Y) and two chromaticity values ​​(U and V), which can vary within a specific range, such as 0 to 255. By combining YUV values, images with various colors and brightness levels can be presented.

[0037] Step S2: Perform quality detection on the currently playing local video based on frame data.

[0038] The quality detection includes at least one of frame verification and playback status detection.

[0039] Specifically, playback status detection is performed based on the total number of frames in the current local video playback progress, or it can be based on the display information corresponding to the frame data. Frame verification is performed based on the total frame verification value of the currently played local video frames.

[0040] For example, when performing frame verification and playback status detection simultaneously, a CRC check is performed on the YUV data of each decoded frame. If no abnormality is found in the playback status detection (if an abnormality is found, the video test will be terminated and a new video will be switched for quality detection), a CRC check will be performed on each CRC check value as a whole to obtain the total CRC check value. By comparing the total CRC check value with the standard total CRC check value, it is determined whether there is an abnormality.

[0041] After acquiring the frame data of the currently playing local video, frame verification or playback status detection is performed based on the frame data. Frame verification treats a frame as a long binary number or an 8-bit hexadecimal number, processes it using a prescribed method, and obtains a specific value, which is then used as the verification value. Playback status detection checks whether the currently playing local video is playing normally, and whether there are any stutters or abnormalities. The system records the total number of video frames, which increases linearly. Since the total number of video frames is fixed, therefore... The total number of video frames can be used to determine whether video playback is normal. Other abnormal situations can also be used to identify video playback abnormalities. For example, if the total number of playback frames is always 0, it means that the video playback has started to stutter. If the current total number of playback frames has not reached the preset total number of frames and the frame rate does not increase after a preset time (e.g., 10 seconds), it is determined that the video is stuttering, and the detection of this video is directly exited and the next video is detected, which can save detection time. Alternatively, if the display screen corresponding to the frame data of the currently playing local video does not change smoothly or does not change for a certain period of time, it is determined that there is an abnormality in the playback of the currently playing local video.

[0042] For example, this invention is designed to detect locally stored videos (which may be stored on a USB flash drive or an external hard drive). When a substandard video is detected, its specific information is recorded. After reviewing the recorded information, testers will manually retest the relevant video. If a program error is found, the testers will communicate with relevant technical personnel to resolve the issue and optimize the detection program.

[0043] During frame verification, each decoded video frame (the video frame data involved in this invention is YUV data) undergoes CRC (Cyclic Redundancy Check) verification. Finally, the CRC checksums of each frame are summed and subjected to another CRC check to obtain the total CRC checksum, ensuring the integrity and accuracy of the video data. Playback status detection records the total number of frames in the current video playback progress during video decoding and playback. The system uses whether the number of decoded video frames increases linearly as an indicator to determine whether the video is playing normally and whether there are any stutters or abnormalities. CRC checksum is a technique used to detect errors in data transmission. In simple terms, it's like adding a "checksum" to the data during transmission. The receiving end calculates whether this checksum is correct to determine if an error occurred during transmission.

[0044] Taking the frame data as an 8-bit hexadecimal number as an example, this embodiment of the invention uses CRC32 checksum. Assuming the video has only 3 frames, its YUV CRC32 is 8-bit hexadecimal. The CRC checksum value of the first frame is 9db4d0c7, the CRC checksum value of the second frame is b804eab8, and the CRC checksum value of the third frame is 43f47b06. After obtaining the CRC checksum value of each frame, the CRC checksum values ​​of the three frames are put together and then a CRC checksum is performed on the whole. The final total CRC checksum value is 9db012b3. If the final total CRC checksum value is consistent with the standard value, it means that the video playback is normal.

[0045] In this embodiment, the CRC checksum can be imagined as a digital fingerprint. It is calculated by the sending end and appended to the data. Then, the receiving end recalculates this digital fingerprint. If the digital fingerprint calculated by the receiving end matches the one appended by the sending end, it can be confirmed that the data has not been modified or corrupted during transmission. CRC checksums are widely used in data communication and storage to ensure data integrity and reliability. For example, during local video playback, the CRC checksum of each frame of data is equivalent to the digital fingerprint of that frame, and the total CRC checksum is equivalent to the overall digital fingerprint of all played frames.

[0046] Step S3: Obtain the quality detection result of the currently playing local video.

[0047] Specifically, after performing a quality check on the currently playing local video, the system obtains the quality check result of the currently playing local video and saves the check results of the previously played local video. The quality check result of the currently playing local video includes information such as playback verification result and verification time, so that users can view and analyze it later.

[0048] The method for detecting the playback quality of local videos according to embodiments of the present invention first acquires the frame data of the currently playing local video, automatically detects the currently playing local video based on the frame data, and obtains the quality detection result of the currently playing local video. It does not rely on manual observation, is not affected by subjective factors, has high efficiency when detecting a large number of videos, makes it easy to detect small changes in the video, avoids visual misjudgment, simplifies the detection process, has strong versatility and is easy to promote, and improves the accuracy of the detection results.

[0049] In some embodiments, quality detection of the currently playing local video is performed based on frame data, including: determining the total number of frames played in the currently playing local video based on the frame data; determining that the playback status of the currently playing local video is normal when the total number of frames is in a linear increasing state; or determining that the playback status of the currently playing local video is abnormal when the total number of frames is not in a linear increasing state.

[0050] Specifically, during playback status detection, the quality of the currently playing local video is checked based on frame data. The number of frames of the currently playing local video is obtained in real time, and the total number of frames played in the currently playing local video is determined based on the frame data. If the total number of frames is in a linear increasing state, it means that the currently playing local video can be played normally, and at this time, it is determined that the currently playing local video is playing normally. If the total number of frames is not in a linear increasing state, it means that the currently playing local video is playing stuttering or abnormal, and at this time, it is determined that the currently playing local video is playing abnormally.

[0051] In some embodiments, the total number of frames not being in a linearly increasing state includes at least one of the following: first state: the total number of frames remains at 0; second state: the total number of frames is in a non-uniformly increasing state; third state: the total number of frames is any non-zero value and the duration of the total number of frames being any non-zero value reaches a time threshold.

[0052] Specifically, during playback status detection, if an abnormality is detected in the currently playing local video, it indicates that the total number of frames in the current local video playback progress is not increasing linearly. This may result in the following states: First state: The total number of frames remains at 0, meaning the video started with a pause and did not play. Second state: The total number of frames is not increasing at a uniform speed, indicating that the video is experiencing stuttering during playback, preventing it from playing at a normal, uniform speed. Third state: The total number of frames is any non-zero value, and the duration of this non-zero value reaches a time threshold, indicating that the video is stuttering during playback, and the stuttering time exceeds the time threshold. For example, the time threshold can be set to 10 seconds; if stuttering occurs when the total number of frames is any non-zero value, and the stuttering time exceeds 10 seconds, it indicates that the video is stuttering during playback.

[0053] In some embodiments, the method for detecting the playback quality of a local video further includes: when the currently playing local video finishes playing, the total number of frames played in the currently playing local video is automatically reset to zero.

[0054] Specifically, after the currently playing local video finishes playing, the quality detection result of the currently playing local video is stored, and the total number of frames played in the currently playing local video is automatically cleared to zero. The recording of the total number of frames will start again when the next local video is played.

[0055] For example, this invention proposes a method for detecting local video playback quality, focusing on resolving quality issues such as frame drops or frame decoding errors that may occur during video playback. To ensure the integrity and quality of video playback, we employ multiple detection methods, including YUV CRC check and video stuttering detection. Video stuttering detection determines whether the video is playing normally, and can promptly respond to scenarios where the video has not started, is stuck, or has not played completely. From retrieving the video from the video storage module to decoding and playing it through the video decoding and playback module, the system records the total number of frames played. For videos playing normally, the total number of frames increases linearly. There are three abnormal scenarios: first, if the total number of frames remains 0, meaning the video has not played; second, if the total number of frames does not increase uniformly, meaning there is stuttering in the video playback; third, if the total number of frames stops increasing during video playback (exceeding 10 seconds), then the video may have frozen. In these abnormal scenarios, no detection is needed; the CRC check thread is notified to stop the check, the detection status of the video is recorded, and the next video is switched. This reduces resource consumption to some extent. Once the current video finishes playing, the system will immediately release the player, and the total frame count record for the current video will be automatically cleared to zero. Then, it will wait for the quality check of the next video.

[0056] The following is for reference. Figure 2 The steps for video stuttering detection are illustrated below: Step S4, Begin.

[0057] Step S5: Obtain the video file.

[0058] Step S6: Video decoding and playback.

[0059] Step S7: Calculate the number of video decoding frames in real time.

[0060] Step S8: Check if the video frame rate is increasing. If yes, proceed to step S10; otherwise, proceed to step S9.

[0061] Step S9: Playback error occurs. Record the video stuttering and notify the CRC thread to stop verification.

[0062] Step S10: Has the video finished playing? If yes, proceed to step S11; otherwise, proceed to step S7.

[0063] Step S11, End.

[0064] In some embodiments, quality detection includes frame verification. Quality detection of the currently playing local video is performed based on frame data, including: performing CRC verification on each frame of the currently playing local video to obtain the CRC check value of each frame; obtaining the total CRC check value of all played frame values ​​of the currently playing local video, the total CRC check value being obtained by performing CRC verification on the entire set of CRC check values ​​of all played frame values; determining that the currently playing local video is playing normally when the total CRC check value is the same as the standard check value; or determining that the currently playing local video is playing abnormally when the total CRC check value is different from the standard check value.

[0065] The standard checksum can be the total CRC checksum of the current local video when it is playable. Specifically, the raw data of each played frame is obtained, the frame data is used as input, and the CRC checksum of the frame is calculated using the CRC calculation function. The CRC checksum of each played frame is stored. The CRC checksum of all played frame data is checked again to obtain the total CRC checksum. Each decoded frame data is checked for CRC and a CRC checksum is obtained. The total CRC checksum is obtained by combining the CRC checksums of the YUV data of all decoded frames and checking them together. The known standard checksum is read from storage, and the calculated total CRC checksum is compared with the standard checksum. If the total CRC checksum is the same as the standard checksum, the current local video is considered to be playing normally. If the total checksum is different from the standard checksum, the current local video is considered to be playing abnormally.

[0066] In some embodiments, when the quality detection includes frame verification and playback status detection, it further includes: if the method for quality detection through playback status has determined that the playback status of the currently playing local video is abnormal, then stop the frame verification of the currently playing local video and record the detection information of the currently playing video.

[0067] Specifically, when performing quality checks on the currently playing local video based on frame data, the playback status of the video is monitored in real time. If the currently playing local video finishes playing normally, the playback status will not continue to be checked, and frame verification will also be completed at the same stage. Frame verification and playback status detection do not have to exit at the same minute and second, but they must stop at the same time and stage. When a playback abnormality is detected, such as inability to continue playback, stuttering, audio and video desynchronization, anomaly handling is triggered. When anomaly handling is triggered, the ongoing frame verification process is immediately stopped. At the same time as stopping frame verification, the current detection information is recorded. Based on the recorded information, the cause of the video playback abnormality can be further analyzed, and then the next video can be quality checked. Playback status detection is only used as an auxiliary function. It detects abnormalities in advance and stops detection, reducing detection time, saving resources, improving efficiency, and increasing test reliability.

[0068] Alternatively, in some embodiments, if frame verification has determined that the playback status of the currently playing local video is abnormal, the detection of the playback status of the currently playing local video is stopped, and the detection information of the currently playing video is recorded.

[0069] For example, for the currently playing local video, playback status detection and frame verification are performed separately. For each frame of data, CRC verification is performed, and the obtained CRC verification value is compared with the CRC standard value of the current frame to determine whether a certain frame of video is abnormal during the frame verification process. If an abnormality is found, both frame verification and playback status detection are stopped, and the process switches to the quality detection of the next local video.

[0070] In some embodiments, the method for detecting local video playback quality further includes displaying the quality detection result.

[0071] Specifically, after the local video playback quality test is completed, the test result can be displayed on the screen. If the local video is playing normally, the test is displayed as passed; if the local video is playing abnormally, the test is displayed as failed. The user or administrator will be notified and corresponding diagnostic information will be provided. Some recovery measures can also be considered, such as reloading the video file or repairing the damaged file.

[0072] For example, the local video playback quality detection is divided into two threads: one for video stuttering detection and the other for CRC verification. The two threads complement each other, making the detection results more rigorous and effective.

[0073] The video CRC check thread retrieves video from the video storage module and decodes and plays it from the video decoding and playback module. The system performs a CRC check on each frame of YUV data decoded from the video, finally summing the CRC check values ​​of each frame to obtain the total CRC check value, which is then recorded. The specific steps are as follows: Figure 3 As shown: Step S12, Begin.

[0074] Step S13: Obtain the video file.

[0075] Step S14: Video decoding and playback.

[0076] Step S15: Obtain the decoded YUV data.

[0077] Step S16: Calculate the CRC check value of the YUV data.

[0078] Step S17: Is the video playing abnormally? If yes, proceed to step S20; otherwise, proceed to step S18.

[0079] Step S18: Has the video finished playing? If yes, proceed to step S19; otherwise, proceed to step S15.

[0080] Step S19: Summarize the CRC check values ​​of all frames, obtain the total CRC check value, and record it.

[0081] Step S20, End.

[0082] The process of obtaining the total CRC checksum can be combined with Figure 4 To understand this, even if a video appears to play normally and completely to the naked eye, if a frame is decoded incorrectly or is missing, the CRC checksum for that frame will be inconsistent with the standard value or lack a CRC checksum. This will lead to an inconsistency in the total CRC checksum, resulting in an error. Therefore, video quality inspection primarily relies on CRC checking to ensure quality. Video stuttering detection assists CRC checking, making the results more rigorous and effective. If an abnormal scene occurs in the video, the next video can be immediately inspected, reducing resource consumption to some extent.

[0083] In some embodiments, displaying quality inspection results includes: displaying a quality inspection list, which includes a result column and a status column.

[0084] The results column includes options for video detection passed, video detection failed, and preset standard comparison, while the status column includes detailed information on the quality detection results.

[0085] Specifically, after the local video playback quality test is completed, the quality test results will be displayed in a quality test list. The quality test list is divided into a result column and a status column. The result column will display the video test results and the comparison standard. Therefore, the result column includes video test passed, video test failed, and preset standard comparison items. The status column will display detailed information about the quality test results, such as video name, total CRC check value, and test time.

[0086] In some embodiments, when the total CRC checksum of the video is the same as the standard checksum of the preset standard reference item for the corresponding video, the result record of the corresponding video in the result column is "video detection passed", and the status information of the corresponding video in the status column includes the video name, the total CRC checksum of the video, and the detection time; or, when the total CRC checksum of the video is different from the standard checksum of the preset standard reference item for the corresponding video, the result record of the corresponding video in the result column is "video detection failed", and the status information of the corresponding video in the status column includes the video name, the total CRC checksum of the video, and the detection time.

[0087] Specifically, during local video playback quality testing, the total CRC checksum of the video is compared with the corresponding preset standard checksum. If the total CRC checksum of the video is the same as the preset standard checksum, the result column records the video as having passed the test, and the status column records the name of the current video, the total CRC checksum, and the test time. If the total CRC checksum of the video is different from the preset standard checksum, the result column records the video as having failed the test, and the status column records the name of the current video, the total CRC checksum, and the test time. This facilitates subsequent analysis and troubleshooting. For videos that fail the test, the reasons can be further analyzed, such as file corruption or transmission errors, and corresponding repair measures can be taken.

[0088] In some embodiments, when a video playback anomaly is determined by playback status detection and the anomaly corresponds to a first state, the first state is characterized by a total number of frames in the video playback progress remaining at 0. In this case, the result record for the corresponding video in the result column is "video detection failed," and the status information for the corresponding video in the status column includes the video name, the video's initial frame playback anomaly, and the detection time. Alternatively, when a video playback anomaly is determined by playback status detection and the anomaly corresponds to a third state, the third state is characterized by a total number of frames in the video playback progress being any non-zero value and the duration of this non-zero value reaching a time threshold. In this case, the result record for the corresponding video in the result column is "video detection failed," and the status information for the corresponding video in the status column includes the video name, the video playback process anomaly, and the detection time.

[0089] Specifically, playback status detection determines that a video playback error is occurring, and this error corresponds to the first state. In the first state, the total number of frames in the video playback progress remains at 0, meaning the video stutters and fails to start playing. At this time, the result column for the corresponding video records "video detection failed," and the status column for the corresponding video records the current video's name, the video's initial frame playback error, and the detection time. When playback status detection determines that a video playback error is occurring, and this error corresponds to the third state, the total number of frames in the video playback progress is any non-zero value, and the duration of this non-zero value reaches a time threshold. This indicates that the video is stuttering during playback, and the stuttering time exceeds the time threshold. For example, the time threshold can be set to 10 seconds. If the stuttering time exceeds 10 seconds, it indicates that the video is stuttering. At this time, the result column for the corresponding video records "video detection failed," and the status column for the corresponding video records the current video's name, the video's initial frame playback error, and the detection time.

[0090] For example, to facilitate the display of video quality test results, the total CRC checksum of each video will be compared with the pre-set standard checksum in the result saving module. If the two are exactly the same, it means that there are no frame drops, frame decoding errors or other quality problems during video playback. If they are different, it means that there are quality problems in video playback.

[0091] like Figure 5 As shown, this is a single output of the detection system. The table is divided into two columns: result and status. The result column stores three types of results: video detection passed (pass), failed (fail), and used as a standard for verification (standard). The status column stores detailed information about the video detection results.

[0092] Specifically, the system compares the total CRC checksum of the video with its standard value. If they match, the system will enter "pass" in the Result column of the video and save the detection result as the video name + total CRC checksum + detection time in the video status column. If they do not match, the video has a problem with frame loss or frame decoding error. The system will enter "fail" in the Result column of the video and save the detection result as the video name + total CRC checksum + detection time in the video status column.

[0093] In addition, there are two other scenarios: First, if the video does not start playing, the system will enter "fail" in the Result column of the video and save the detection result as the video name + start play error + detection time. Second, if the video does not finish playing, the system will enter "fail" in the Result column of the video and save the detection result as the video name + video play error + detection time. This allows for the recording of more detailed information, making it easier for developers and testers to view and analyze the reasons for video playback failure.

[0094] The method for detecting local video playback quality using this invention can reduce manual intervention to a certain extent and effectively detect problems such as dropped frames or frame decoding errors. Compared with visual observation and model training, our solution does not require a lot of human resources for observation, is simple and effective, and is easy to promote. The detection method provided by this invention can quickly and accurately identify video quality problems, thereby speeding up the problem-solving process. While solving many practical problems, this invention can also assist the quality service department in ensuring video quality. Once dropped frames or frame decoding errors are found, i.e., the video cannot be played normally, it is immediately reported to the platform software team for repair.

[0095] A second aspect of the present invention provides an apparatus for detecting the quality of local video playback, such as... Figure 6 As shown, the device 100 for detecting local video playback quality includes: a quality detection module 110 and a result storage module 120.

[0096] The result storage module 120 is connected to the quality detection module 110 and is used to store the detection results of the quality detection module 110 on the currently playing local video.

[0097] Specifically, the quality detection module 110 includes at least one of a frame verification module 111 and a playback status detection module 112. The frame verification module 111 is used to verify the frame verification value of each video frame of the currently playing local video, and the playback status detection module 112 is used to detect the total number of frames of the currently playing local video based on the playback progress.

[0098] The device for detecting local video playback quality according to an embodiment of the present invention detects the local video playback quality through a frame verification module or a playback status detection module in the detection module, and saves the detection results in the result storage module. It is highly efficient when detecting a large number of videos, makes it easy to detect small changes in the video, avoids visual misjudgment, simplifies the detection process, is highly versatile and easy to promote, and improves the accuracy of the detection results.

[0099] In some embodiments, the local video playback quality detection device 100 further includes a video storage module 130 and a video decoding and playback module 140.

[0100] The video storage module 130 is used to store video frame data; the video decoding and playback module 140 is connected to the video storage module 130 and is used to obtain video files from the video storage module 130 and decode and play the video files.

[0101] For example, the detection process of the local video playback quality detection device 100 is as follows: Figure 7 As shown, the video storage module 130 is used to store video data, similar to the function of a USB flash drive. Users can store video files in it. The video storage module 130 sends the video stream to the video decoding and playback module 140. The video decoding and playback module 140 obtains the video file in the video storage module 130, decodes and plays it. Then, the video decoding and playback module 140 sends the frame data to the frame verification module 111 and the playback status detection module 112. The frame verification module 111 is responsible for performing CRC verification on each decoded video frame. Finally, it summarizes the CRC verification values ​​of each frame and performs another CRC verification to obtain the total CRC verification value to ensure the integrity and accuracy of the video data. The playback status detection module 112 is used to detect the video playback status. During video decoding and playback, it records the total number of frames in the current video playback progress. By obtaining whether the decoded video frames increase linearly as an indicator, it judges whether the video plays normally and whether there are any stutters or abnormalities. Finally, the verification result is sent to the result storage module 120 to save the detection results of each video, including playback verification results, verification time and other information, for subsequent viewing and analysis.

[0102] A third aspect of the present invention provides an electronic device, such as... Figure 8 As shown, the electronic device 200 includes at least one processor 201 and a memory 202.

[0103] In this embodiment, at least one processor 201 is communicatively connected to a memory 202, which stores a computer program that can be executed by at least one processor 201. When at least one processor 201 executes the computer program, it implements a method for detecting the local video playback quality.

[0104] According to the electronic device of the present invention, a corresponding program for detecting local video playback quality can be stored in the memory. When the method for detecting local video playback quality is implemented, the processor runs the program in the memory to automatically detect the local video playback quality, thereby improving detection efficiency, making it easier to detect minute changes in the video, avoiding visual misjudgment, simplifying the detection process, and improving the accuracy of the detection results.

[0105] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed, implements a method for detecting the quality of local video playback.

[0106] In the description of this specification, any process or method described in the flowcharts or otherwise herein may be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order according to the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0107] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0108] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0109] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0110] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0111] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

[0112] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, substrate, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.

[0113] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A method for detecting the playback quality of local videos, characterized in that, include: Get the frame data of the currently playing local video; The quality of the currently playing local video is detected based on the frame data, wherein the quality detection includes at least one of frame verification and playback status detection. Obtain the quality detection result of the currently playing local video.

2. The method according to claim 1, characterized in that, Based on the frame data, quality detection is performed on the currently playing local video, including: The total number of frames played in the currently playing local video is determined based on the frame data; When the total number of frames is increasing linearly, it is determined that the playback status of the currently playing local video is normal. Alternatively, if the total number of frames is not in the linearly increasing state, it is determined that the playback state of the currently playing local video is abnormal.

3. The method according to claim 2, characterized in that, The total number of frames not being in the linearly increasing state includes at least one of the following: First state: The total number of frames remains at 0; Second state: The total number of frames is in a state of non-uniform increase; Third state: The total number of frames is any non-zero value and the duration of the total number of frames being any non-zero value reaches a time threshold.

4. The method according to claim 2, characterized in that, The method further includes: When the currently playing local video finishes playing, the total number of frames played in the currently playing local video is automatically reset to zero.

5. The method according to any one of claims 1-4, characterized in that, The quality detection includes the frame verification, and the quality detection of the currently playing local video based on the frame data includes: Perform CRC check on each frame data that has been played in the currently playing local video to obtain the CRC check value of each frame data that has been played. The total CRC checksum of all played frames of the currently playing local video is obtained by performing a CRC check on the entire set of CRC checksums of all played frames. When the total CRC checksum is the same as the standard checksum, it is determined that the currently playing local video is playing normally during playback. Alternatively, if the total CRC checksum differs from the standard checksum, it can be determined that the currently playing local video is experiencing playback abnormalities.

6. The method according to claim 5, characterized in that, When the quality detection includes the frame verification and the playback status detection, it also includes: If the quality detection method based on the playback status has determined that the playback status of the currently playing local video is abnormal, then the frame verification of the currently playing local video is stopped, and the detection information of the currently playing video is recorded. Alternatively, if the frame verification has determined that the playback status of the currently playing local video is abnormal, then the detection of the playback status of the currently playing local video is stopped, and the detection information of the currently playing video is recorded.

7. The method according to claim 6, characterized in that, The method further includes: displaying the quality inspection results.

8. The method according to claim 7, characterized in that, The display of the quality inspection results includes: Display a quality inspection list, which includes a result column and a status column; The results column includes items such as video detection passed, video detection failed, and preset standard comparison, while the status column includes detailed information on the quality detection results.

9. The method according to claim 8, characterized in that, When the total CRC checksum of the video is the same as the standard checksum of the preset standard comparison item corresponding to the video, the result column corresponding to the video's result record is that the video has passed the test, and the status column corresponding to the video's status information includes the video's name, the video's total CRC checksum, and the test time; Alternatively, if the total CRC checksum of the video is different from the standard checksum of the preset standard comparison item corresponding to the video, the result column corresponding to the video is recorded as the video detection failed, and the status column corresponding to the video's status information includes the video's name, the total CRC checksum of the video, and the detection time.

10. The method according to claim 9, characterized in that, When the video playback is determined to be abnormal through playback status detection and the abnormality corresponds to a first state, the first state is that the total number of frames of the video playback progress remains at 0. Then, the result column corresponding to the video is recorded as the video detection failed, and the status information corresponding to the video in the status column includes the name of the video, the video initial frame playback abnormality and the detection time. Alternatively, if the video playback is determined to be abnormal through playback status detection and the abnormality corresponds to a third state, wherein the third state is that the total number of frames in the video playback progress is any non-zero value and the duration of the total number of frames being any non-zero value reaches a time threshold, then the result column corresponding to the video is recorded as the video detection failed, and the status column corresponding to the video status information includes the name of the video, the abnormal video playback process, and the detection time.

11. A device for detecting the quality of local video playback, characterized in that, include: The quality detection module includes at least one of a frame verification module and a playback status detection module. The frame verification module is used to verify the playback status based on the frame verification value of each video frame of the currently playing local video. The playback status detection module is used to detect the playback status based on the total number of frames in the current playback progress of the local video. The result storage module is connected to the quality detection module and is used to store the detection results of the quality detection module on the currently playing local video.

12. The apparatus according to claim 11, characterized in that, The device further includes: The video storage module is used to store video frame data; A video decoding and playback module, connected to the video storage module, is used to obtain video files from the video storage module and to decode and play the video files.

13. An electronic device, characterized in that, include: At least one processor; A memory that is communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which, when executing the computer program, implements the method for detecting local video playback quality as described in any one of claims 1-10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer is executed, it implements the method for detecting local video playback quality as described in any one of claims 1-10.