Packetized elementary stream
Appearance
Defined by MPEG communication protocol. An Elementary Stream is packetized by adding a packet header. An elementary stream contains only one kind of data, for example audio or video. The output of a video encoder is an elementary stream which is then packetized. Packets are used to enable multiplexing of the data and to minimize the size of buffers (reduce cost) in receivers.
MPEG-2 packet header[1]:
- Packet start code prefix - 3 bytes - 0x000001
- Stream id - 1 byte - For example: Audio streams 0xB8, Video streams 0xB9, etc...
- PES Packet length - 2 bytes - Can be zero as in not specified.
- Optional PES header - variable length
- Data
- Padding bytes