Transport stream (TS, TP, or MPEG-TS) nyaeta hiji protokol komunikasi keur audio, video, jeung data nu ditetepkeun dina MPEG-2 Bagean 1, Systems (standar ISO/IEC 13818-1). Tujuan rancangannana nyaeta keur ngidinan multipleksing video jeung audio digital sarta keur nyinkronisasi kaluaran. Transport stream nawarkeun fitur keur ngoreksi kasalahan pikeun transportasi ngaliwatan media nu henteu pati dipercaya, sarta dipake dina aplikasi siaran saperti DVB jeung ATSC. Transport stream beda jeung program stream, nu dirancang keur media nu bisa dipercaya kaws DVD.
|Artikel ieu keur dikeureuyeuh, ditarjamahkeun tina basa Inggris.
Bantosanna diantos kanggo narjamahkeun.
- Komposisi mangrupa-rupa program.
- Packetized Elementary Stream (PES)
- Elementary stream (ES) — audio atawa video (the below is for video only)
- Group of pictures (GOP) — providing random access points
- Slice — preventing an error from being propagated through intra prediction
- Macroblock—consisting of 6 to 12 DCT blocks
- Encoding block or just block—a DCT encoding block, 8x8 pixels
Unsur penting transport stream[édit]
A packet is the basic unit of data in a transport stream. It consists of a sync byte, whose value is 0x47, followed by three one-bit flags and a 13-bit PID. This is followed by a 4-bit continuity counter. Additional optional transport fields, as signaled in the optional adaptation field, may follow. The rest of the packet consists of payload. Packets are 188 bytes in length  , but the communication medium may add some error correction bytes to the packet. DVb-ASI uses 204 bytes and ATSC 208 bytes as transport stream packet. (DVB t=8 and ATSC t=10 i.e. extra bytes = 2*t). ATSC transmission adds 20 bytes of Reed-Solomon forward error correction to create a packet that is 208 bytes long. The 188-byte packet size was originally chosen for compatibility with ATM systems [] .
|Transport Error Indicator (TEI)||1||Set by demodulator if can't correct errors in the stream|
|Payload Unit Start Indicator||1||1 means start of PES data or PSI otherwise zero only .|
|Transport Priority||1||One means higher priority than other packets with the same PID.|
|Scrambling control||2||'00' = Not scrambled. The following per DVB spec : '01' = Reserved for future use, '10' = Scrambled with even key, '11' = Scrambled with odd key|
|Adaptation field exist||1||1 means presence of the adaptation field|
|Payload data exist||1||1 means presence of data|
|Note: the total number of bits above is 32 and is called the transport stream 4-byte prefix.|
|Adaption field||0 or more||Depends on flags|
|Payload Data||0 or more||Depends on flags|
|Adaptation Field Length||8||Number of bytes in the adaptation field immediately following this byte|
|Discontinuity indicator||1||Set to 1 if a discontinuity occurred in the continuity counter of the TS packet|
|Random Access indicator||1||Set to 1 if the PES packet in this TS packet starts a video/audio sequence|
|Elementary stream priority indicator||1||1 = higher priority|
|PCR flag||1||1 means adaptation field does contain a PCR field|
|Splicing point flag||1||1 means presence of splice countdown field in adaptation field|
|Transport private data flag||1||1 means presence of private data bytes in adaptation field|
|Adaptation field extension flag||1||1 means presence of adaptation field extension|
|Below fields are optional||variable||Depends on flags|
|PCR||33+9||Program clock reference|
|OPCR||33+9||Original Program clock reference. Helps when one TS is copied into another|
|Splice countdown||8||Indicates how many TS packets from this one a splicing point occurs (may be negative)|
Each table or elementary stream in a transport stream is identified by a 13-bit PID. A demultiplexer extracts elementary streams from the transport stream in part by looking for packets identified by the same PID. In most applications, Time-division multiplexing will be used to decide how often a particular PID appears in the transport stream.
Transport stream has a concept of programs. A single program is described by a Program Map Table (PMT) which has a unique PID, and the elementary streams associated with that program have PIDs listed in the PMT. For instance, a transport stream used in digital television might contain three programs, to represent three television channels. Suppose each channel consists of one video stream, one or two audio streams, and any necessary metadata. A receiver wishing to decode a particular "channel" merely has to decode the payloads of each PID associated with its program. It can discard the contents of all other PIDs.
Program Specific Information (PSI)[édit]
There are 4 PSI tables: Program Association (PAT), Program Map (PMT), Conditional Access (CAT), and Network Information (NIT). The MPEG-2 specification does not specify the format of the CAT and NIT.
PAT stands for Program Association Table. The PAT lists PIDs for all PMTs in the stream. TS Packets containing PAT information always have PID 0x0.
Program Map Tables, or PMTs, contain information about programs. For each program, there is a PMT, with the PMT for each program appearing on its own PID. The PMTs describe which PIDs contain data relevant to the program. PMTs also provide metadata about the streams in their constituent PIDs. For example, if a program contains an MPEG-2 video stream, the PMT will list this PID, describe it as a video stream, and provide the type of video that it contains (in this case, MPEG-2). The PMT may also contain additional descriptors providing data about its constituent streams.
To assist the decoder in presenting programs on time, at the right speed, and with synchronization, programs usually periodically provide a Program Clock Reference, or PCR, on one of the PIDs in the program. This is also known as the master clock. Timing in MPEG2 references this clock, for example the presentation time stamp (PTS) is relative to the PCR. The first 33 bits is based on a 90kHz clock, incremented for each Hertz or cycle. The 9 bit extension is based on a 27MHz clock.
Some transmission schemes, such as those in ATSC and DVB, impose strict constant bitrate requirements on the transport stream. In order to ensure that the stream maintains a constant bitrate, a Multiplexer may need to insert some additional packets. The PID 0x1FFF is reserved for this purpose. The payload of null packets may not contain any data at all, and the receiver is expected to ignore its contents.
- (2000-12-01) ISO/IEC 13818-1 Second edition, page xi or 11 according to PDF viewer.
- DVB scrambling control bits defined. Page 6
- Tuner ATSC
- Elementary stream
- Packetized Elementary Stream
- Program and System Information Protocol
- Unidirectional Lightweight Encapsulation (ULE)
- HDV jeung AVCHD, nu duanan nerapkeun stream TS kana data nu dipaketisasi
Conto parabot nu aya[édit]
- ATSC Transport Stream Tools for Linux
- Ethereal MPEG-2 TS Dissector
- DVB Stream Explorer