stringtranslate.com

Packetized elementary stream

Packetized Elementary Stream (PES) is a specification in the MPEG-2 Part 1 (Systems) (ISO/IEC 13818-1) and ITU-T H.222.0[1][2] that defines carrying of elementary streams (usually the output of an audio or video encoder) in packets within MPEG program streams and MPEG transport streams.[3] The elementary stream is packetized by encapsulating sequential data bytes from the elementary stream inside PES packet headers.

A typical method of transmitting elementary stream data from a video or audio encoder is to first create PES packets from the elementary stream data and then to encapsulate these PES packets inside Transport Stream (TS) packets or Program Stream (PS) packets. The TS packets can then be multiplexed and transmitted using broadcasting techniques, such as those used in an ATSC and DVB.

Transport Streams and Program Streams are each logically constructed from PES packets. PES packets shall be used to convert between Transport Streams and Program Streams. In some cases the PES packets need not be modified when performing such conversions. PES packets may be much larger than the size of a Transport Stream packet.[3]

PES packet header

Optional PES header


While above flags indicate that values are appended into variable length optional fields, they are not just simply written out. For example, PTS (and DTS) is expanded from 33 bits to 5 bytes (40 bits). If only PTS is present, this is done by catenating 0010b, most significant 3 bits from PTS, 1, following next 15 bits, 1, rest 15 bits and 1. If both PTS and DTS are present, first 4 bits for PTS are 0011 and first 4 bits for DTS are 0001. Other appended bytes have similar but different encoding.

References

  1. ^ ITU-T (November 2014). "H.222.0 Summary". Retrieved 2015-11-17.
  2. ^ ITU-T. "H.222.0 : Information technology - Generic coding of moving pictures and associated audio information: Systems". Retrieved 2010-06-03.
  3. ^ a b "ISO/IEC 13818-1 — Information technology — Generic coding of moving pictures and associated audio information: Systems" (PDF) (second ed.). 2000-12-01. Retrieved 2009-07-25.
  4. ^ "ETSI TS 101 154 - V1.9.1 - Digital Video Broadcasting (DVB); Specification for the use of Video and Audio Coding in Broadcasting Applications based on the MPEG-2 Transport Stream" (PDF). ETSI. September 2009.
  5. ^ EP 1827030, "Method and apparatus for changing codec to reproduce video and/or audio data streams encoded by different codecs within a channel" 
  6. ^ "A guide to digital terrestrial television broadcasting in the VHF/UHF bands". 15 January 1996. sec. 4.4.

External links