Audio and Video Es,pes,ps,ts introduction

Source: Internet
Author: User

1, ES Stream (Elementary stream), original stream. is a A/D conversion, encoded after the output of the data stream, is directly from the encoder output data stream;

1) ES is packaged in PES and converted to PES packs.

2) ES is a stream of data that contains only one content, such as audio data or video data.

3) A packaged PES stream contains only one content.

2, PEs stream (Packet Elementary Stream), the basic code stream after packaging. ES streams form a grouping called PES grouping, which is a data structure used to transmit ES.

1) The basic stream es is divided into different length packets according to the need, plus the PES stream of basic code stream is obtained by Baotou;

2) PES package = PEs header + payload (ES stream data).

3) Pts/dts in the PES Baotou, to solve the audio and video synchronization.

3, Pts/dts

1) PTS (presentation timestamp, which displays the time stamp), indicates the time at which the display unit (audio and video frame) appears on the system target decoder.

2) DTS (decoding timestamp, decoding time token), which represents the time to remove all bytes of the access unit from the decoding buffer.

3) Audio and video synchronization: Pts/dts + SCR (System reference clock), System time clock


4. TS Stream (transport stream transmit stream)

1) The TS Stream consists of a TS Package (188 bytes), the TS package is on the PES package in a single package.

2) split a PES package into multiple fixed-size TS packages.

5. PS Stream (Program stream), a single data stream composed of one or more PES packages with the same time benchmark is called the program stream.

1) PS flow consists of PS package, a PS package consists of several PES package.

2) One PS package = PS Header + payLoad (can be multiple PES package, can be audio, video PES package)


6. Difference between TS and PS

1) The packet structure length of the TS stream is fixed to 188 bytes, and the packet length of the PS stream is variable.

2) TS flow adapts to the environment of network poor transmission "media stream"; PS flow is suitable for network environment transport "Media stream"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.