Introduction and analysis of TS Stream, es stream, PES stream

Source: Internet
Author: User
The IP datagram has a header and data two parts, the first part of the header is a fixed length of 20 bytes, is all the IP datagram must have. The header includes: total length, logo, MF, DF, offset.
The digital signal actually transmits the data stream, the general data flow includes the following three kinds:
ES streams: Also called basic streams, which contain continuous streams of video, audio, or data.
PES stream: Also known as the basic code stream of packaging, is the basic stream es stream according to the need to be divided into the length of the packet, and add the Baotou to form a packaged basic stream PES stream.
TS Stream: Also known as the transport Stream, is composed of a fixed length of 188 bytes of packets, containing a separate time base of one or more programs, suitable for more error-free environment.
A TS Stream (Transportstream) is a standard flow of information that is generated by the video, audio es stream, and secondary data multiplexing in the MPEG-2 system, called the MPEG-2 Transport stream, for actual transmission. The process of information lamination/separation is called system multiplexing/splitting, and according to the quality of the transmitted media, two kinds of compound information flows are defined in MPEG-2: Transport Stream (TS) and program flow (Ps:programstream)

The difference between TS Stream and PS flow is that the packet structure of TS flow is fixed length, and the packet structure of PS flow is variable length. This difference in structure between PS packet and TS package causes them to have different resistance to transmission error, so the application environment varies.

Because of the fixed-length packet structure, the receiver can detect the synchronization information in the bread after the transmission error has destroyed the synchronization information of a TS packet, thus recovering the synchronization and avoiding the loss of information.

PS Package due to the length of the change, once a PS packet synchronization information is lost, the receiver can not determine the next packet synchronization position, will cause the loss of steps, resulting in serious loss of information. Therefore, in the channel environment is very bad, transmission error is high, the general use of TS Code stream;

But in the channel environment is good, the transmission error is low, the general use of PS stream because TS Stream has a strong ability to resist transmission error, so currently in the transmission media transmission of the MPEG-2 stream is basically the use of TS Code stream packet

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.