Data processing method, device, computer device and storage medium

The method addresses audio-video synchronization issues by smoothing PTS data fluctuations, ensuring stable playback and reducing system load through software adjustments.

JP2024538799AInactive Publication Date: 2024-10-23SHENZHEN TCL NEW-TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024522530
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2024-10-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing display technologies face issues with audio and video synchronization due to PTS data fluctuations, leading to playback errors such as screen freezing, sound stopping, and desynchronization.

Method used

A data processing method that analyzes PTS data for fluctuations, applies smoothing algorithms to generate stable target PTS data, and ensures audio-video synchronization by adjusting PTS data using software algorithms.

Benefits of technology

The method stabilizes PTS data, reduces hardware adjustments, and enhances user experience by improving audio-video synchronization and system efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024538799000001_ABST
    Figure 2024538799000001_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, computer device and storage medium, which first obtains current PTS data, analyzes the current PTS data, identifies current PTS data with fluctuation, and performs smoothing processing on the current PTS data with fluctuation by a software algorithm, thereby realizing smoothness and stability of target PTS data, and improving the processing efficiency of PTS data by performing smoothing processing only on the current PTS data with fluctuation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the field of display technology, and in particular to a display processing method, apparatus, computer device and storage medium. [Background technology]

[0002] Since the amount of data in audiovisual frames is very large and often requires real-time processing, the playback delay must be as small as possible. The reference clocks on the encoding and decoding sides do not usually match, and the timeline of the audiovisual frames is referenced to the encoding side clock, so if no adjustments are made, the error will continue to grow. Therefore, the data stream (TS stream, Transport Stream) packet for transmitting the audiovisual program contains one piece of information, and the decoding side obtains the PTS (Presentation Time Stamp) timestamp to instruct the player on the display timing of this frame of data. However, because there are fluctuations in the PTS of the actual TS stream, there is a possibility that technical problems such as the playback screen stopping, the sound stopping, the screen turning black and no sound being heard, and other audio and video out of sync problems may occur. Summary of the Invention [Problem to be solved by the invention]

[0003] The present disclosure provides a data processing method, an apparatus, a computer device and a storage medium for smoothing a PTS curve to repair a technical problem of audio and video out of sync in the playback content caused by PTS jumps during normal video playback. [Means for solving the problem]

[0004] In order to solve the above technical problems, the present disclosure provides the following technical solution: the present disclosure provides a data processing method, which includes: obtaining current PTS data of a current video frame, analyzing the current PTS data to determine whether there is a fluctuation, and if it is determined that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data.

[0005] In the data processing method of the present disclosure, when the judgment result indicates that the current PTS data has a fluctuation, the smoothing process is performed on the current PTS data to generate target PTS data. The method includes checking the current PTS data to identify abnormal data in the current PTS data; and performing a smoothing process on the abnormal data in the current PTS data to generate the target PTS data.

[0006] In the data processing method disclosed herein, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes scoring each of the abnormal data and identifying an abnormal score of the abnormal data, and deleting the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

[0007] In the data processing method disclosed herein, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes analyzing the abnormal data and identifying a type of abnormal fluctuation corresponding to the abnormal data, and searching for a target smoothing algorithm corresponding to the type of abnormal fluctuation from a mapping table of predetermined fluctuation types and smoothing algorithms, and performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data includes performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

[0008] In the data processing method of the present disclosure, obtaining current PTS data of a current video frame includes obtaining PCR data and STC data of the current video frame, verifying the PCR data and the STC data, and, if the verification result indicates that both the PCR data and the STC data are valid, obtaining the current PTS data.

[0009] In the data processing method of the present disclosure, analyzing the current PTS data and determining whether or not there is a fluctuation includes drawing a first curve based on the current PTS data, obtaining a predetermined standard curve, and determining whether or not there is a fluctuation in the first curve based on the first curve and the standard curve.

[0010] In the data processing method of the present disclosure, if the judgment result indicates that the current PTS data has a fluctuation, after performing a smoothing process on the current PTS data and generating target PTS data, it is further included: determining whether the target PTS data is valid; and if the target PTS data is valid, performing audio-screen synchronous display with the current video frame based on the target PTS data.

[0011] The present disclosure further provides a data processing device, which includes: an acquisition module for acquiring current PTS data of a current video frame; an analysis module for analyzing the current PTS data and determining whether there is a fluctuation; and a smoothing module for performing a smoothing process on the current PTS data to generate target PTS data if the judgment result indicates that there is a fluctuation in the current PTS data.

[0012] The present disclosure further provides a computer device, the computer device including a memory and a processor, computer-readable instructions stored in the memory, when the computer-readable instructions are executed by the processor, the processor executes the following operations: obtaining current PTS data of a current video frame; analyzing the current PTS data to determine whether or not there is a fluctuation; and if it is determined that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data.

[0013] The present disclosure further provides one or more non-transitory readable storage media having computer-readable instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to obtain current PTS data for a current video frame, analyze the current PTS data to determine whether or not there is a fluctuation, and, if it is determined that there is a fluctuation in the current PTS data, perform a smoothing process on the current PTS data to generate target PTS data. Effect of the Invention

[0014] The present disclosure provides a data processing method, an apparatus, a computer device, and a storage medium. The data processing method first obtains current PTS data of a current video frame, then analyzes the current PTS data to determine whether there is a fluctuation, and finally performs a smoothing process on the current PTS data with the fluctuation to generate smooth and stable target PTS data. The method performs a smoothing process on the PTS data with the fluctuation, and uses a software algorithm to purposefully adjust the fluctuation of the PTS data, so that the adjusted PTS data is smooth and stable, and the audio-screen synchronous display of the video is realized, and the user experience is optimized. And, by adjusting the PTS data using a software algorithm, the number of times that the hardware constantly adjusts VO (video out, video output interface) and AO (audio out, audio output interface) due to the fluctuation of the PTS data is greatly reduced, which reduces the load of the firmware system and improves the operation efficiency of the video system. [Brief description of the drawings]

[0015] The technical solutions and other inventive advantages of the present disclosure will become apparent from the detailed description of specific embodiments of the present disclosure taken in conjunction with the accompanying drawings. [Figure 1] 4 is a flowchart of a data processing method provided in an embodiment of the present invention. [Diagram 2] FIG. 2 is a comparison diagram of current PTS data and target PTS data provided in an embodiment of the present invention. [Diagram 3] FIG. 2 is a schematic diagram of the fluctuation curve of the current PTS data provided in an embodiment of the present invention. [Figure 4] FIG. 2 is a schematic diagram of the fluctuation curve of the target PTS data provided in an embodiment of the present invention. [Diagram 5] Schematic diagram of PCR / TSC fractionation curves with fractionations provided in an embodiment of the present invention. [Figure 6] FIG. 2 is a module schematic diagram of a display device provided in an embodiment of the present invention. [Figure 7] FIG. 2 is a block diagram of a computer device provided in an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] The invention according to the embodiments of the present invention will be described clearly and fully below with reference to the drawings according to the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, and are not all of the embodiments of the present invention. According to the embodiments of the present invention, a person skilled in the art can easily conceive other embodiments. The conceivable embodiments belong to the protection scope of the present invention.

[0017] In the present specification, the terms "first" and "second" are used for descriptive purposes only and to distinguish between similar objects, and are not necessarily used to describe a particular sequence or order, and should not be understood to indicate or imply relative importance or the number of technical features depicted. Thus, features defining "first" and "second" may explicitly or implicitly include one or more of the described features, and the terms so used may be interchanged as appropriate, such that the embodiments described herein may be performed in an order other than that shown or described. The term "plurality" means two or more, unless otherwise specified. Additionally, the terms "comprise" and "have" and any variations thereof are intended to be non-exclusively inclusive.

[0018] In response to technical problems such as audio and video out of sync due to PTS data fracturing in a TS stream, such as the playback screen stopping, the sound stopping, or the screen turning black with no sound, the embodiments of the present disclosure repair the PTS data fracturing, make the PTS data smooth and stable, and are advantageous in achieving audio-video synchronous display of videos, thereby optimizing the user experience.

[0019] The main terms for a TS stream according to an embodiment of the present invention are as follows: The program clock reference (PCR) is a sampling value of a clock counter on the encoding side, and is used to recover a synchronous clock on the decoding side. A presentation time stamp (PTS) indicates a presentation time including one frame of data of the PTS. The System Clock Reference (SCR) indicates the system clock value of the Program Stream.

[0020] As shown in Fig. 1, the data processing method provided in the embodiment of the present application can be applied to both a terminal and a server, and the embodiment of the present application will be described as an example applied to a server. The data processing method provided in the embodiment of the present application includes the following steps:

[0021] Step 102: Obtain the current PTS data of the current video frame.

[0022] Here, the current PTS data refers to the display timestamp of the current video frame to be used as the timestamp of the current video frame currently being played. Specifically, during the process of decoding the video stream, the timestamp PTS corresponding to each video frame is identified, and the timestamp PTS corresponding to the current video frame is obtained, that is, the current PTS data is obtained.

[0023] Step 104: Analyze the current PTS data to determine whether a fluctuation exists.

[0024] In one embodiment, the current PTS data can be converted into normal time, and the difference between the converted normal times is used to determine whether there is a fluctuation, and if the difference is greater than a predetermined standard deviation value, it is determined that the current PTS data has a fluctuation, and if the difference is less than a predetermined standard deviation value, it is determined that the current PTS data does not have a fluctuation, that is, the current PTS data is smooth and stable. In another embodiment, the current PTS data can be compared with the corresponding standard PTS data, and it is determined whether the offset amount between the two is within a predetermined offset threshold, and if the offset amount is not within the predetermined offset threshold, it is determined that the current PTS data has a fluctuation. As can be seen, this embodiment is advantageous in that the current PTS data is analyzed to later analyze the current PTS data with a fluctuation to determine whether there is a fluctuation, thereby reducing the subsequent redundant processing of the current PTS data without a fluctuation, and improving the processing efficiency of the current PTS data.

[0025] Step 106: If it is determined that the current PTS data has a fluctuation, a smoothing process is performed on the current PTS data to generate target PTS data.

[0026] Here, the smoothing process refers to processing abnormal data in a data series, so as to reduce the impact of the processed data on the change trend of the entire data series. The smoothing process method can be a box method, a Gaussian window smoothing method, or an exponential method in the smoothts function based on Matlab software, or a median filtering smoothing method. Specifically, the corresponding smoothing process method can be determined according to the fluctuation state of the current PTS data, and is not particularly limited here. Specifically, after determining that the current PTS data has fluctuation, a software algorithm is used to process the current PTS data with fluctuation, so as to smooth and stabilize the target PTS data, which is favorable to realizing the audio-visual synchronization of the video, and optimizing the user experience. Since only the current PTS data with fluctuation is smoothed, the processing efficiency of PTS data is improved, and the PTS data is adjusted by software algorithm, which greatly reduces the number of times that the hardware constantly adjusts the video output interface and audio output interface due to the fluctuation of PTS data, reduces the load of the firmware system, and improves the operation efficiency of the video system. As shown in Figure 2, the current PTS data and the target PTS data are compared, and a in Figure 2 is the curve of the current PTS data, and b in Figure 2 is the curve of the target PTS data. Obviously, the curve of b is smoother and more stable than a. As shown in Figure 3, the fluctuation curve of the current PTS data is shown, and as shown in Figure 4, the fluctuation curve of the target PTS data is shown, and obviously, the fluctuation curve of Figure 4 has a more obvious audio-screen synchronization effect than Figure 3.

[0027] In the embodiment of the present application, by analyzing the current PTS data, the current PTS data having fluctuation is identified, and then a smoothing process is performed on the current PTS data having fluctuation through a software algorithm, thereby reducing the fluctuation of the current PTS data, achieving smoothness and stability of the target PTS data, which is further beneficial for achieving video audio-screen synchronization, and optimizing the user experience. At the same time, the number of times that the hardware constantly adjusts the video output interface and the audio output interface due to the fluctuation of the PTS data is greatly reduced, the load of the firmware system is reduced, and the operating efficiency of the video system is improved. In addition, the smoothing process is performed only on the current PTS data having fluctuation, thereby improving the processing efficiency of the PTS data.

[0028] In one embodiment, when the judgment result indicates that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data includes checking the current PTS data and identifying abnormal data in the current PTS data, and performing a smoothing process on the abnormal data in the current PTS data to generate the target PTS data.

[0029] Here, the abnormal data refers to the data points of the current PTS data with fluctuation, whose fluctuation width is larger than a predetermined standard threshold, and the abnormal data may be one or more. As shown in Figure 5, the PCR / TSC fluctuation curve with fluctuation is a schematic diagram, and 503 is one abnormal data. Specifically, each data point of the current PTS data is fitted to generate a stationary curve, and the data points that deviate from the stationary curve by a set value or more are identified as abnormal data, and the abnormal data of the current PTS data is smoothed, and only the abnormal data is smoothed, so that the actual current PTS data can be retained to the maximum extent, and the accuracy and processing speed of PTS data processing are improved, and data processing efficiency is improved.

[0030] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes scoring each of the abnormal data to identify an abnormal score of the abnormal data, and deleting the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

[0031] Here, the abnormal score is an index for reflecting the degree of fluctuation of the abnormal data. Specifically, based on the difference between the abnormal data and the corresponding standard data, the abnormal score corresponding to each difference is specified based on a comparison table of a predetermined difference and score, and when the abnormal score is larger than the predetermined abnormal score threshold, it indicates that the degree of fluctuation of the abnormal data is large, and by deleting the abnormal data, the complicated processing of the abnormal data is avoided and the data processing speed is improved.

[0032] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes analyzing the abnormal data and identifying a type of abnormal fluctuation corresponding to the abnormal data, and searching for a target smoothing algorithm corresponding to the type of abnormal fluctuation from a mapping table of predetermined fluctuation types and smoothing algorithms, and performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data includes performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

[0033] Here, the type of abnormal fluctuation includes, but is not limited to, a forward jump type, a backward jump type, a wraparound type, or an extreme value type. The server pre-stores a mapping table of the fluctuation type and the smoothing algorithm, and identifies a corresponding target smoothing algorithm according to the type of abnormal fluctuation corresponding to the abnormal data, and uses the target smoothing algorithm to smooth the current PTS data to generate target PTS data. As can be seen, in this embodiment, the abnormal data is classified, and the corresponding target smoothing algorithm is used according to the type of abnormal fluctuation, so that different smoothing algorithms are used for different types of abnormal fluctuation, thereby improving the efficiency of the smoothing process of the abnormal data.

[0034] In one embodiment, obtaining current PTS data of a current video frame includes obtaining PCR data and STC data of the current video frame, verifying the PCR data and the STC data, and, if a verification result indicates that both the PCR data and the STC data are valid, obtaining the current PTS data.

[0035] Here, verification refers to a method for verifying the validity of PCR data and STC data. Specifically, PCR data and STC data can be converted into normal time respectively, and then the difference between the normal times after conversion is calculated, and each difference is compared with a corresponding predetermined standard deviation value to determine whether the PCR data and STC data are valid. On the premise that the PCR data, STC data and PTS data are all valid, video audio-screen synchronization can be realized, so that when both PCR data and STC data are valid, the current TS data can be further obtained to ensure the accuracy of data processing.

[0036] In one embodiment, analyzing the current PTS data and determining whether there is a fluctuation includes drawing a first curve based on the current PTS data, obtaining a predetermined standard curve, and determining whether there is a fluctuation in the first curve based on the first curve and the standard curve.

[0037] Specifically, the polyfit(X, Y, N) function or the polyval function in the Matlab software is used to fit the current PTS data, a first curve is drawn, and then the first curve is compared with a predetermined standard curve, and whether the current PTS data has fluctuations can be determined based on the comparison result. As can be seen, in this embodiment, the curve comparison method is used to analyze the PTS data, making the analysis of the current PTS data more intuitive and improving the efficiency of data analysis.

[0038] In one embodiment, after performing a smoothing process on the current PTS data to generate target PTS data as a judgment result when there is a fluctuation in the current PTS data, the method further includes: determining whether the target PTS data is valid; and if the target PTS data is valid, performing audio-screen synchronous display with the current video frame based on the target PTS data.

[0039] Specifically, in order to realize the audio-screen synchronous display of video, it is necessary to ensure the validity of the PTS data, so the validity of the target PTS data is judged. The judgment process involves converting the target PTS data into a normal time, then calculating the difference of the normal time corresponding to the target PTS data, and if the difference is smaller than a predetermined standard deviation value, it is determined that the target PTS data is valid. Then, the target PTS data is updated in the AV firmware to realize the audio-screen synchronous display of the current video frame, thereby optimizing the user experience.

[0040] As shown in FIG. 6, in one embodiment, the data processing apparatus provided in the embodiment of the present application includes: an acquisition module 602 for acquiring current PTS data of a current video frame; an analysis module 604 for analyzing the current PTS data and determining whether there is a fluctuation; and a smoothing module 606 for performing a smoothing process on the current PTS data to generate a target PTS data if the judgment result indicates that there is a fluctuation in the current PTS data.

[0041] Optionally, the data processing device further includes a check module for checking the current PTS data and identifying abnormal data in the current PTS data, and an adjustment module for performing a smoothing process on the abnormal data in the current PTS data to generate the target PTS data.

[0042] Optionally, the data processing device further includes a scoring module that scores each of the abnormal data and identifies an abnormal score of the abnormal data, and a deletion module that deletes the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

[0043] Optionally, the data processing device further includes an analysis module for analyzing the abnormal data and identifying a type of abnormal fluctuation corresponding to the abnormal data, a search module for searching a target smoothing algorithm corresponding to the type of abnormal fluctuation from a mapping table of predetermined fluctuation types and smoothing algorithms, and a processing module for performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

[0044] Optionally, the acquisition module further includes: a first acquisition unit for acquiring PCR data and STC data of the current video frame; a verification unit for verifying the PCR data and the STC data; and a second acquisition unit for acquiring the current PTS data when the verification result indicates that both the PCR data and the STC data are valid.

[0045] Optionally, the analysis module further includes a drawing unit for drawing a first curve based on the current PTS data, and a judgment unit for obtaining a predetermined standard curve and judging whether the first curve has a fluctuation based on the first curve and the standard curve.

[0046] Optionally, the data processing device further includes a judgment module for judging whether the target PTS data is valid, and a display module for performing audio-screen synchronous display with the current video frame based on the target PTS data when the target PTS data is valid.

[0047] FIG. 7 shows an internal configuration diagram of a computer device according to an embodiment. The computer device may specifically be a server. The server includes, but is not limited to, a high-performance computer and a high-performance computer cluster. As shown in FIG. 7, the computer device includes a processor, a memory, and a network interface connected via a system bus. Here, the memory includes a non-transitory readable storage medium and an internal memory. The non-transitory readable storage medium of the computer device may store an operating system and may also store computer-readable instructions. The computer-readable instructions, when executed by the processor, cause the processor to perform a data processing method. The internal memory may also store computer-readable instructions. The computer-readable instructions, when executed by the processor, cause the processor to perform a data processing method. It should be understood by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the present invention, and does not limit the computer device to which the present invention is applied, and a specific computer device may include more or less components than those shown in the figure, or may combine certain components or have a different component arrangement.

[0048] In one embodiment, the data processing method provided in the embodiment of the present application may be implemented in the form of computer-readable instructions executable on a computer device as shown in Fig. 7. The memory of the computer device may store various program modules constituting a data processing system, such as an acquisition module 602, an analysis module 604, and a smoothing module 606.

[0049] A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, which, when executed by the processor, achieve the following: obtaining current PTS data of a current video frame, analyzing the current PTS data to determine whether there is a fluctuation, and, when it is determined that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data.

[0050] In one embodiment, when the judgment result is that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data includes checking the current PTS data and identifying abnormal data in the current PTS data, and performing a smoothing process on the abnormal data of the current PTS data to generate the target PTS data.

[0051] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes scoring each of the abnormal data to identify an abnormal score of the abnormal data, and deleting the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

[0052] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes analyzing the abnormal data and identifying a type of abnormal fluctuation corresponding to the abnormal data, and searching for a target smoothing algorithm corresponding to the type of abnormal fluctuation from a mapping table of predetermined fluctuation types and smoothing algorithms, and performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data includes performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

[0053] In one embodiment, obtaining current PTS data of a current video frame includes obtaining PCR data and STC data of the current video frame, verifying the PCR data and the STC data, and, if a verification result indicates that both the PCR data and the STC data are valid, obtaining the current PTS data.

[0054] In one embodiment, analyzing the current PTS data and determining whether there is a fluctuation includes drawing a first curve based on the current PTS data, obtaining a predetermined standard curve, and determining whether there is a fluctuation in the first curve based on the first curve and the standard curve.

[0055] In one embodiment, after performing a smoothing process on the current PTS data to generate target PTS data as a judgment result when there is a fluctuation in the current PTS data, the method further includes: determining whether the target PTS data is valid; and if the target PTS data is valid, performing audio-screen synchronous display with the current video frame based on the target PTS data.

[0056] One or more non-transitory readable storage media having computer-readable instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to obtain current PTS data for a current video frame, analyze the current PTS data to determine whether or not there is a fluctuation, and, if it is determined that there is a fluctuation in the current PTS data, perform a smoothing process on the current PTS data to generate target PTS data.

[0057] In one embodiment, when the judgment result is that there is a fluctuation in the current PTS data, performing a smoothing process on the current PTS data to generate target PTS data includes checking the current PTS data and identifying abnormal data in the current PTS data, and performing a smoothing process on the abnormal data of the current PTS data to generate the target PTS data.

[0058] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes scoring each of the abnormal data to identify an abnormal score of the abnormal data, and deleting the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

[0059] In one embodiment, before performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, the method further includes analyzing the abnormal data and identifying a type of abnormal fluctuation corresponding to the abnormal data, and searching for a target smoothing algorithm corresponding to the type of abnormal fluctuation from a mapping table of predetermined fluctuation types and smoothing algorithms, and performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data includes performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

[0060] In one embodiment, obtaining current PTS data of a current video frame includes obtaining PCR data and STC data of the current video frame, verifying the PCR data and the STC data, and, if a verification result indicates that both the PCR data and the STC data are valid, obtaining the current PTS data.

[0061] In one embodiment, analyzing the current PTS data and determining whether there is a fluctuation includes drawing a first curve based on the current PTS data, obtaining a predetermined standard curve, and determining whether there is a fluctuation in the first curve based on the first curve and the standard curve.

[0062] In one embodiment, after performing a smoothing process on the current PTS data to generate target PTS data as a judgment result when there is a fluctuation in the current PTS data, the method further includes: determining whether the target PTS data is valid; and if the target PTS data is valid, performing audio-screen synchronous display with the current video frame based on the target PTS data.

[0063] It is understood by those skilled in the art that the whole or part of the flow of the method for implementing the above embodiments can be completed by instructing related hardware with computer-readable instructions. The program may be stored in one non-transitory readable storage medium. When the program is executed, it may include the flow of each of the above method embodiments. Here, any of the memory, storage, database, or other medium used in each of the embodiments provided in the present invention may include non-volatile and / or volatile memory. The non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. The volatile memory may include random access memory (RAM) or external cache memory. By way of example and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Memory Bus (Rambus), Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

[0064] The above examples merely show some embodiments of the present invention, and the description will be made more specific and detailed, and therefore should not be construed as limiting the patent scope of the present invention. It should be noted that the present invention is not limited to the above embodiments for those skilled in the art, and the components can be modified and embodied in the implementation stage without departing from the gist of the present invention. Therefore, the scope of the patent protection of the present invention should be defined by the appended claims.

[0065] In the above embodiments, the description of each embodiment has its own emphasis, and for the parts of an embodiment that are not described in detail, please refer to the descriptions of other embodiments.

[0066] Although the data processing method, device, computer device and storage medium provided in the embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention have been described using specific examples, the description of the above embodiments is merely intended to aid in understanding the method of the present invention and its core ideas, and a person skilled in the art may make changes to the specific embodiments and scope of application based on the ideas of the present invention. As such, the contents of this specification should not be construed as limiting the present invention.

Claims

1. 1. A data processing method comprising the steps of: Obtaining current PTS data of a current video frame; analyzing the current PTS data to determine whether a fluctuation exists; If the determination result indicates that the current PTS data is fluctuating, performing a smoothing process on the current PTS data to generate target PTS data.

23. A data processing method comprising:

2. If the current PTS data has a fluctuation as a result of the determination, the current PTS data is smoothed to generate target PTS data. checking the current PTS data and identifying abnormal data in the current PTS data; and performing a smoothing process on the abnormal data of the current PTS data to generate the target PTS data.

2. The data processing method according to claim 1.

3. Prior to performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, Scoring each of the abnormal data and identifying an abnormal score for the abnormal data; If the number of abnormal points is greater than a predetermined threshold value for the number of abnormal points, deleting the corresponding abnormal data.

3. The data processing method according to claim 2.

4. Prior to performing a smoothing process on the abnormal data of the current PTS data and generating the target PTS data, analyzing the anomalous data to identify a type of anomalous fluctuation corresponding to the anomalous data; and searching a target smoothing algorithm corresponding to the abnormal fluctuation type from a mapping table of a predetermined fluctuation type and a smoothing algorithm; The step of smoothing the abnormal data of the current PTS data to generate the target PTS data includes the steps of: performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data; 3. The data processing method according to claim 2.

5. Obtaining the current PTS data of the current video frame includes: Obtaining PCR data and STC data of the current video frame; verifying the PCR data and the STC data; and obtaining the current PTS data when the PCR data and the STC data are both valid as a verification result.

2. The data processing method according to claim 1.

6. The step of analyzing the current PTS data and determining whether a fluctuation exists includes: plotting a first curve based on the current PTS data; obtaining a predetermined standard curve, and determining whether or not there is a fluctuation in the first curve based on the first curve and the standard curve; 3. The data processing method according to claim 2.

7. If the determination result indicates that the current PTS data has a fluctuation, the smoothing process is performed on the current PTS data to generate target PTS data. determining whether the target PTS data is valid; If the target PTS data is valid, performing audio-screen synchronization display with the current video frame according to the target PTS data.

2. The data processing method according to claim 1.

8. 1. A data processing device, comprising: an acquisition module for acquiring current PTS data of a current video frame; an analysis module that analyzes the current PTS data and determines whether a fluctuation exists; and a smoothing module that performs a smoothing process on the current PTS data to generate target PTS data when the current PTS data is judged to have a fluctuation.

23. A data processing device comprising:

9. A check module checks the current PTS data and identifies abnormal data in the current PTS data; and an adjustment module for performing a smoothing process on the abnormal data of the current PTS data to generate the target PTS data.

9. A data processing apparatus according to claim 8.

10. a scoring module for scoring each of the abnormal data and determining an abnormality score for the abnormal data; and a deletion module for deleting the corresponding abnormal data when the abnormal score is greater than a predetermined abnormal score threshold.

9. A data processing apparatus according to claim 8.

11. an analysis module that analyzes the anomalous data and identifies a type of anomalous fluctuation that corresponds to the anomalous data; a search module for searching a target smoothing algorithm corresponding to the abnormal fluctuation type from a mapping table of a predetermined fluctuation type and a smoothing algorithm; and a processing module for performing a smoothing process on the current PTS data using the target smoothing algorithm to generate the target PTS data.

10. A data processing apparatus according to claim 9.

12. The acquisition module includes: a first acquisition unit for acquiring PCR data and STC data of the current video frame; a verification unit for verifying the PCR data and the STC data; and a second acquiring unit for acquiring the current PTS data when the PCR data and the STC data are both valid as a verification result.

9. A data processing apparatus according to claim 8.

13. The analysis module includes: a drawing unit for drawing a first curve according to the current PTS data; A judgment unit for acquiring a predetermined standard curve, and judging whether the first curve has a fluctuation based on the first curve and the standard curve.

10. A data processing apparatus according to claim 9.

14. a determination module for determining whether the target PTS data is valid; and a display module for performing audio-screen synchronization display with the current video frame according to the target PTS data when the target PTS data is valid.

9. A data processing apparatus according to claim 8.

15. 1. A computing device comprising: Memory, A processor; computer readable instructions stored in the memory and executable on the processor; The processor, upon execution of the computer readable instructions, Obtaining current PTS data of a current video frame; analyzing the current PTS data to determine whether a fluctuation exists; If the determination result indicates that the current PTS data is fluctuating, a smoothing process is performed on the current PTS data to generate target PTS data. A computer apparatus comprising:

16. One or more non-transitory readable storage media having computer readable instructions stored thereon, The computer readable instructions, when executed by one or more processors, cause the one or more processors to: Obtaining current PTS data of a current video frame; analyzing the current PTS data to determine whether a fluctuation exists; If the determination result indicates that there is a fluctuation in the current PTS data, a smoothing process is performed on the current PTS data to generate target PTS data. A non-transitory readable storage medium comprising:

Citation Information

Patent Citations

  • Decoder and decoding method

    JP2003284066A

  • decoder

    JP2006128819A

  • Decoder and decoding method

    JP2008118221A

  • Information processing system, information processing unit, information processing method and program

    JP2017224928A

  • Decoding device and decoding method

    US20080101478A1