Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for decoding transport-stream data packets

A decoding method and data packet technology, applied in the field of multimedia data processing, can solve problems such as audio playback and video playback, subtitle playback out of sync, audio or video, subtitle playback errors, affecting users' viewing and listening, etc., so as to avoid playback failure The effect of synchronization

Active Publication Date: 2015-04-08
ALLWINNER TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] If when decoder 18 decodes data, still be to obtain the time stamp of a certain data packet as the start playing time of the data after the decoding of the first byte of the data packet, it will cause playback errors such as audio or video, subtitles, etc., due to audio Packages, video packages, and subtitle packages are decoded separately, which will cause the audio playback and video playback to be out of sync, affecting the user's viewing and listening
[0013] In addition, in figure 2 In the case shown in (b), if the first part of the data in the data packet P3 is decoded after the first frame of data is decoded, the time stamp of the data packet P3 is still used as the starting time of the decoding of the remaining data when the remaining data is decoded , it will cause the remaining part of the data to start playing at an incorrect time after decoding, and it will also cause the audio playback to be out of sync with the video playback, subtitle playback, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for decoding transport-stream data packets
  • Method and device for decoding transport-stream data packets
  • Method and device for decoding transport-stream data packets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The method for decoding transport stream data packets of the present invention can decode audio packets, video packets, subtitle packets, and other data packets of various multimedia files, and can also decode other transport stream data packets with time stamps.

[0034] see Figure 4 , the transport stream packet decoding device of the present invention has a transport stream controller 20, a decoder 28 and a playback control module 30, wherein the transport stream controller 20 is provided with a plurality of independently working filtering channels 21, 23, 25..., each A filter channel 21, 23, 25 is all set with the identification code of the data packet it receives, and after the transport flow controller 20 receives the data packet, it sends it to the buffer of the corresponding filter channel according to the identification code of the data packet In this way, the video packets, audio packets, subtitle packets, etc. in the data packets are filtered.

[0035] A bu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for decoding transport-stream data packets. The method comprises the following steps: a transport-stream controller receives a transport-stream data packet, stores the data packet into a buffer, and reads a frame of data to a decoder, so that the frame of data is decoded by the decoder; a play control module judges whether the timestamp of a first data packet of the frame of data read in the decoder is valid, if so, the play control module acquires the timestamp of the first data packet and takes the timestamp of the first data packet as the timestamp of data subjected to decoding, calculates the play starting time of the next frame of data, and sets that the timestamp of the first data packet is invalid; if the timestamp of the first data packet is invalid, the play control module acquires the play starting time of the next frame of data calculated when the previous frame of data is decoded and takes the play starting time as the timestamp of data subjected to decoding, and calculates the play starting time of the next frame of data; and the play control module carries out judgment on the data length of the data packet, records the current decoding position and carries out decoding on the next frame of data. The device carries out decoding on data packets by using the method. According to the invention, the synchronous playing of audio packets and video packets subjected to decoding can be ensured.

Description

technical field [0001] The invention relates to the field of multimedia data processing, in particular, a method and device for decoding transport stream data packets. Background technique [0002] Along with the development of multimedia technology, it has become more and more common to play audio and video files on the multimedia playback platform, and people are used to watching various audio and video programs on the multimedia playback platform now. The existing multimedia player needs to decode the transport stream data packets to play the multimedia audio and video files, and transmit the decoded data to the hardware for playing. Therefore, a decoding device for transport stream data packets usually needs to be set on the multimedia playing platform to decode the data packets. [0003] see figure 1 , the existing transport stream data packet decoding device has a transport stream controller (transport stream controller) 10, a decoder 18 and a playback control module...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/433H04N21/434H04N21/462
Inventor 张林山
Owner ALLWINNER TECH CO LTD