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"