Program Stream

来源:互联网 发布:长沙国安网络客服电话 编辑:程序博客网 时间:2024/06/06 05:38

Program stream (PS or MPEG-PS) is a container format for multiplexing digital audio, video and more. The PS format is specified in MPEG-1 Part 1 (ISO/IEC 11172-1) and MPEG-2 Part 1, Systems (ISO/IEC standard 13818-1[6]/ITU-T H.222.0[4][5]). The MPEG-2 Program Stream is analogous and similar to ISO/IEC 11172 Systems layer and it is forward compatible.[7][8]

Program streams are used on DVD-Video discs and HD DVD video discs, but with some restrictions and extensions.[9][10] The filename extensions are VOB and EVO respectively.

Contents

  [hide] 
  • 1 Coding structure
  • 2 Coding details
  • 3 See also
  • 4 References
  • 5 External links

[edit]Coding structure

Program streams are created by combining one or more Packetized Elementary Streams (PES), which have a common time base, into a single stream. It is designed for reasonably reliable media such as disks, in contrast to MPEG transport stream which is for data transmission in which loss of data is likely. Program streams have variable size records and minimal use of start codes which would make over the air reception difficult, but has less overhead. Program stream coding layer allows only one program of one or more elementary streams to be packaged into a single stream, in contrast to transport stream, which allows multiple programs.[7]

MPEG-2 Program stream can contain MPEG-1 Part 2 video, MPEG-2 Part 2 video, MPEG-1 Part 3 audio (MP3, MP2, MP1) or MPEG-2 Part 3 audio.[7] It can also contain MPEG-4 Part 2 video, MPEG-2 Part 7 audio (AAC) or MPEG-4 Part 3 (AAC) audio,[7] but they are rarely used.[citation needed] The MPEG-2 Program stream has provisions for non-standard data (e.g. AC-3 audio or subtitles) in the form of so-called private streams.[11] International Organization for Standardization authorized SMPTE Registration Authority, LLC as the registration authority for MPEG-2 format identifiers. It publishes list of compression formats which can be encapsulated in MPEG-2 transport stream and program stream.[12]

[edit]Coding details

If you open up an unencrypted VOB file or other program stream with a hex editor you will see the following structure.

Partial Program Stream Pack header format[13]NameNumber
of bitsDescriptionsync bytes320x000001BAmarker bits201bSystem clock [32..30]3System Clock Reference (SCR) bits 32 to 30marker bit11 Bit always set.System clock [29..15]15System clock bits 29 to 15marker bit11 Bit always set.System clock [14..0]15System clock bits 14 to 0marker bit11 Bit always set.SCR extension9 marker bit11 Bit always set.bit rate22In units of 50 bytes per second.marker bits211 Bits always set.reserved5reserved for future usestuffing length3 stuffing bytes8*stuffing length system header (optional)0 or moreif system header start code follows: 0x000001BBPartial system header formatNameNumber
of bytesDescriptionsync bytes40x000001BBheader length2 rate bound and marker bits3 audio bound and flags1 flags, marker bit, and video bound1 Packet rate restriction and reserved byte1 
原创粉丝点击