Packetized Elementary Stream - PES Packet Header

PES Packet Header

Name Size Description
Packet start code prefix 3 bytes 0x000001
Stream id 1 byte Examples: Audio streams (0xC0-0xDF), Video streams (0xE0-0xEF)
Note: The above 4 bytes is called the 32 bit start code.
PES Packet length 2 bytes Can be zero. If the PES packet length is set to zero, the PES packet can be of any length. A value of zero for the PES packet length can be used only when the PES packet payload is a video elementary stream.
Optional PES header variable length (length >= 9) not present in case of Padding stream & Private stream 2 (navigation data)
Stuffing bytes variable length
Data See elementary stream. In the case of private streams the first byte of the payload is the sub-stream number.

Read more about this topic:  Packetized Elementary Stream

Famous quotes containing the word packet:

    The captain was a duck
    With a packet on his back,
    And when the ship began to move
    The captain said, Quack! Quack!
    Mother Goose (fl. 17th–18th century. I saw a ship a-sailing (l. 13–16)