MPEG-1 - Part 1: Systems - Program Streams

For more details on this topic, see MPEG program stream.

Program Streams (PS) are concerned with combining multiple packetized elementary streams (usually just one audio and video PES) into a single stream, ensuring simultaneous delivery, and maintaining synchronization. The PS structure is known as a multiplex, or a container format.

Presentation time stamps (PTS) exist in PS to correct the inevitable disparity between audio and video SCR values (time-base correction). 90 kHz PTS values in the PS header tell the decoder which video SCR values match which audio SCR values. PTS determines when to display a portion of an MPEG program, and is also used by the decoder to determine when data can be discarded from the buffer. Either video or audio will be delayed by the decoder until the corresponding segment of the other arrives and can be decoded.

PTS handling can be problematic. Decoders must accept multiple program streams that have been concatenated (joined sequentially). This causes PTS values in the middle of the video to reset to zero, which then begin incrementing again. Such PTS wraparound disparities can cause timing issues that must be specially handled by the decoder.

Decoding Time Stamps (DTS), additionally, are required because of B-frames. With B-frames in the video stream, adjacent frames have to be encoded and decoded out-of-order (re-ordered frames). DTS is quite similar to PTS, but instead of just handling sequential frames, it contains the proper time-stamps to tell the decoder when to decode and display the next B-frame (types of frames explained below), ahead of its anchor (P- or I-) frame. Without B-frames in the video, PTS and DTS values are identical.

Read more about this topic:  MPEG-1, Part 1: Systems

Famous quotes containing the words program and/or streams:

    Instead of offering the Indians a chance to surrender, and to be taken peaceably, General Connor issued a very cruel order to his men—’Take no prisoners, fight to the death; nits breed lice.’
    State of Utah, U.S. public relief program (1935-1943)

    We shall prepare the coffee of reconciliation through the filter of justice. Through reconciliation, streams of tears will come to our eyes.
    Jean-Bertrand Aristide (b. 1953)