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 Systems and MPEG-2 Part 1, Systems (ISO/IEC standard 13818-1). 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 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 streams are used on DVD video discs and HD DVD video discs. The file extensions are VOB and EVO respectively. Blu-ray uses a transport stream (TS) format with an additional 4 byte time code added to the beginning of each TS packet[1].
Coding structure
Name | Number of bits |
Description |
---|---|---|
sync byte | 32 | 0x000001BA |
marker bits | 2 | 01b |
System clock [32..30] | 3 | System Clock Reference (SCR) bits 32 thru 30 |
marker bit | 1 | 1 Bit always set. |
System clock [29..15] | 15 | System clock bits 29 thru 15 |
marker bit | 1 | 1 Bit always set. |
System clock [14..0] | 15 | System clock bits 14 thru 0 |
marker bit | 1 | 1 Bit always set. |
SCR extension | 9 | |
marker bit | 1 | 1 Bit always set. |
bit rate | 22 | In units of 50 bytes per second. |
marker bits | 2 | 11 Bits always set. |
reserved | 5 | reserved for future use |
stuffing length | 3 | |
stuffing bytes | 8*stuffing length | |
system header (optional) | 0 or more | if system header start code follows: 0x000001BB |