Кіріспе
Саналы бейне формат сақтау желісі арқылы берілуі үшін пайдаланылады. MPEG тасымалдау ағыны (MPEG TS, MTS) немесе жай ғана тасымалдау ағыны (TS) аудио, бейне және Бағдарламалық және жүйелік ақпараттық протокол (PSIP) деректерін беру және сақтау үшін стандартты цифрлық контейнер форматы болып табылады. Ол DVB, ATSC және IPTV сияқты хабар тарату жүйелерінде қолданылады. Тасымалдау ағыны пакеттелген элементар ағындарды қамтитын контейнер форматын анықтайды, ағынды тасымалдаушы байланыс арнасы нашарлаған кезде берілу тұтастығын сақтау үшін қателерді түзету және синхрондау үлгілері бар. Тасымалдау ағындары ұқсас аталатын MPEG бағдарлама ағынынан бірнеше маңызды жағынан ерекшеленеді: бағдарлама ағындары дискілер (DVD сияқты) сияқты сенімді орта үшін, ал тасымалдау ағындары жерүстілік немесе спутниктік хабар тарату үшін жасалған. Сонымен қатар, тасымалдау ағыны бірнеше бағдарламаларды тасымалдауы мүмкін. Тасымалдау ағыны MPEG 2 1-бөлігінде, жүйелерде, ресми түрде ISO/IEC 13818-1 стандарты немесе ITU-T Rec. H.222.0 деп аталады. M2TS форматында пакеттерде 4 байт авторлық құқық және уақыт белгісі бар. 188 байт пакеттік өлшем бастапқыда Асинхронды беріліс режиміндегі (ATM) жүйелермен үйлесімділік үшін таңдалды. + Ішінара тасымалдау ағыны пакетінің пішімі
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
Атауы Бит саны Биттік маска (үлкен ендиан) Сипаттама
4 байт Тасымалдау ағыны Header Sync байт 8 0xff000000 Bit үлгісі 0x47 (ASCII char 'G')
Тасымалдау қатесінің көрсеткіші (TEI) 1 0x800000 Демодулятор FEC деректерінің қателерін түзете алмаған кезде орнатылады; пакет бұзылған екенін көрсетеді.
Пайдалы жүктеме бірлігінің басталу индикаторы (PUSI) 1 0x400000 Бұл пакет жаңа жүктеме бірлігінің алғашқы байтын қамтитын кезде орнатылады. PSI пакеттерінің деректері үшін жүктеменің бірінші байты осы жаңа жүктеме бірлігінің қайдан басталатынын көрсетеді. PES пакеттерінің деректері үшін жаңа PES пакеттері жүктеменің басында басталады. Бұл өріс деректерді қабылдауды қашан бастай алатынын білу үшін, тарату ортасында оқи бастаған қабылдаушыға мүмкіндік береді.
Тасымалдау басымдығы 1 0x200000 Ағымдағы пакет басқа пакеттерге қарағанда жоғары басымдыққа ие болған кезде орнатылады.
PID 13 0x1fff00 Packet Identifier, жүктеме деректерін сипаттайды.
Тасымалдау шифрлауын басқару (TSC) 2 0xc0 '00' = Шифрланбаған. DVB CSA және ATSC DES үшін ғана: '01' (0x40) = Болашақта пайдалану үшін сақталған '10' (0x80) = Жұп кілтпен шифрланған '11' (0xC0) = Тақ кілтпен шифрланған
Әдеттегі өрісті басқару 2 0x30 01 – әдеттегі өріс жоқ, тек жүктеме, 10 – тек әдеттегі өріс, жүктеме жоқ, 11 – әдеттегі өріс, одан кейін жүктеме, 00 – БОЛАШАҚТА ПАЙДАЛАНУ ҮШІН РЕЗЕРВЕДЕН
Үздіктілік санауы 4 0xf Тәуелділік пакеттерінің саны (0x00 - 0x0F) әрбір ағында (PID 8191 қоспағанда). PID бойынша көбейтіледі, тек жүктеме белгісі орнатылған кезде.
Қосымша өрістер Әдеттегі өрістің айнымалысы Әдеттегі өрістің басқаруы 10 немесе 11 болса, осы өрісте болады. Формат бойынша төмендегі мәліметтерді қараңыз.
Жүктеме деректері ауытқуы Егер әдеттегі өрістің басқаруы 01 немесе 11 болса, онда бар. Жүктеме ПЭС пакеттері, бағдарламаға тән ақпарат (төменде) немесе басқа деректер болуы мүмкін. + Әдеттегі өрістің пішімі
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
Атауы Бит саны Биттік маска Сипаттама
Әдеттегі өрістің ұзындығы 8 Осы байттан кейін бірден келетін әдеттегі өрістің байт саны
Үздіксіздік көрсеткіші 1 0x80 Ағымдағы TS пакеті үздіксіздік күйінде болса, орнатыңыз
Кездейсоқ қол жеткізу көрсеткіші 1 0x40 Ағымды осы нүктеден қатесіз кодтауға болады кезде орнатыңыз
Элементар ағыстың басымдық көрсеткіші 1 0x20 Ағымды "жоғары басымдықты" деп санауға болатын кезде орнатыңыз
PCR жалаушағы 1 0x10 ПЦР өрісі бар кезде орнатыңыз
OPCR жалаушағы 1 0x08 OPCR өрісі бар кезде орнатыңыз
Тігіс нүктесінің жалаушағы 1 0x04 Тігіс санауының өрісі бар кезде орнатыңыз
Тасымалдау жеке деректерінің жалаушағы 1 0x02 Тасымалдау жеке деректері бар кезде орнатыңыз
Әдеттегі өрістің кеңейтім жалаушағы 1 0x01 Әдеттегі кеңейтім деректері бар кезде орнатыңыз
Қосымша өрістер
PCR 48 Бағдарлама сағатының анықтамасы, 33 бит негіз, 6 бит резервтелген, 9 бит кеңейтім ретінде сақталады. Мәні негіз * 300 + кеңейтім ретінде есептеледі.
OPCR 48 Түпкі бағдарлама сағатының анықтамасы. Бір TS екіншісіне көшірілген кезде көмектеседі
Тігіс санауы 8 Осы пакеттен тігіс нүктесі қанша TS пакеттен кейін болатынын көрсетеді (Екілік толықтырумен таңбаланған; теріс болуы мүмкін)
Тасымалдау жеке деректерінің ұзындығы 8 Келесі өрістің ұзындығы
Тасымалдау жеке деректері айнымалы Жеке деректер
Әдеттегі кеңейтім айнымалы Төмендегі мәліметтерді қараңыз
Толықтыру байттары айнымалы Әрқашан 0xFF
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
+ Әдеттегі кеңейтім пішімі
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
Атауы Бит саны Биттік маска Сипаттама
Әдеттегі кеңейтім ұзындығы 8 0xff00 Header ұзындығы
Заңды уақыт терезесі (LTW) жалаушағы 1 0x8000 LTW жарамды жалаушағы
Бөліктегі жылдамдық жалаушағы 1 0x0040
Тігіссіз тігіс жалаушағы 1 0x0020
Резервтелген 5 0x001f
Қосымша өрістер
LTW жалаушасы орнатылған (2 байт)
LTW жарамды жалаушағы 1 0x8000
LTW офсеті 15 0x7fff
Бөліктегі жалауша орнатылған (3 байт)
Резервтелген 2 0xc00000
Бөліктегі жылдамдық 2 0x3fffff Ағымның жылдамдығы, 188 байттық пакеттермен өлшенеді, LTW аяқталу уақытын анықтау үшін.
Тігіссіз тігіс жалаушасы орнатылған (5 байт)
Тігіс түрі 4 0xf0000000 H.262 тігісінің параметрлерін көрсетеді.
DTS келесі бірлікке қол жеткізу 36 0x0efffefffe Тігіс нүктесінің PES DTS. 33 дерек битінің жалпы саны үшін бір маркер биті (0x1), 15 бит, 1 маркер биті, 15 бит және 1 маркер биті ретінде бөлінген. + Жүктеме пішімі
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
Атауы Бит саны Биттік маска Сипаттама
Жүктеме көрсеткіші (әрекетсіз) 8 0xff Тек жүктеме бірлігінің басталу индикаторы (PUSI) жалаушасы орнатылған және пакет деректерінің түрі PSI (PES емес) болған кезде бар. Бұл байттан кейінгі индекс жаңа жүктеме бірлігінің қайдан басталатынын көрсетеді. Бұрынғы жүктеме бірлігінің бөлігі болған кез келген жүктеме байты.
Нақты жүктеме айнымалы Жүктеме ПЭС пакеттері, бағдарламаға тән ақпарат (төменде) немесе басқа деректер болуы мүмкін.
MPEG transport stream (MPEG TS, MTS) or simply transport stream (TS) is a standard digital container format for transmission and storage of audio, video, and Program and System Information Protocol (PSIP) data. It is used in broadcast systems such as DVB, ATSC and IPTV. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and synchronization pattern features for maintaining transmission integrity when the communication channel carrying the stream is degraded. Transport streams differ from the similarly named MPEG program stream in several important ways: program streams are designed for reasonably reliable media, such as discs (like DVDs), while transport streams are designed for less reliable transmission, namely terrestrial or satellite broadcast. Further, a transport stream may carry multiple programs. Transport stream is specified in MPEG 2 Part 1, Systems, formally known as ISO/IEC standard 13818 1 or ITU T Rec. H.222.0. while the M2TS format prefixes packets with a 4 byte copyright and timestamp tag. The 188 byte packet size was originally chosen for compatibility with Asynchronous Transfer Mode (ATM) systems. + Partial transport stream packet formatNameNumber of bitsBitmask (big endian)Description4 byte Transport Stream HeaderSync byte80xff000000Bit pattern of 0x47 (ASCII char 'G')Transport error indicator (TEI)10x800000Set when a demodulator can't correct errors from FEC data; indicating the packet is corrupt. Payload unit start indicator (PUSI)10x400000Set when this packet contains the first byte of a new payload unit. For PSI packet data, the first byte of the payload will indicate where this new payload unit starts. For PES packet data, the new PES packet shall start at the start of the payload. This field allows a receiver that started reading mid transmission to know when it can start extracting data. Transport priority10x200000Set when the current packet has a higher priority than other packets with the same PID. PID130x1fff00Packet Identifier, describing the payload data. Transport scrambling control (TSC)20xc0 '00' = Not scrambled. For DVB CSA and ATSC DES only:'01' (0x40) = Reserved for future use'10' (0x80) = Scrambled with even key'11' (0xC0) = Scrambled with odd keyAdaptation field control20x3001 – no adaptation field, payload only,
10 – adaptation field only, no payload,
11 – adaptation field followed by payload,
00 – RESERVED for future use Continuity counter40xfSequence number of payload packets (0x00 to 0x0F) within each stream (except PID 8191)Incremented per PID, only when a payload flag is set. Optional fieldsAdaptation fieldvariablePresent if adaptation field control is 10 or 11. See below for format. Payload datavariablePresent if adaptation field control is 01 or 11. Payload may be PES packets, program specific information (below), or other data. + Adaptation field formatNameNumber of bitsBitmaskDescriptionAdaptation field length8 Number of bytes in the adaptation field immediately following this byteDiscontinuity indicator10x80Set if current TS packet is in a discontinuity state with respect to either the continuity counter or the program clock referenceRandom access indicator10x40Set when the stream may be decoded without errors from this pointElementary stream priority indicator10x20Set when this stream should be considered "high priority"PCR flag10x10Set when PCR field is presentOPCR flag10x08Set when OPCR field is presentSplicing point flag10x04Set when splice countdown field is presentTransport private data flag10x02Set when transport private data is presentAdaptation field extension flag10x01Set when adaptation extension data is presentOptional fieldsPCR48 Program clock reference, stored as 33 bits base, 6 bits reserved, 9 bits extension. The value is calculated as base * 300 + extension. OPCR48 Original Program clock reference. Helps when one TS is copied into anotherSplice countdown8 Indicates how many TS packets from this one a splicing point occurs (Two's complement signed; may be negative)Transport private data length8 The length of the following fieldTransport private datavariable Private dataAdaptation extensionvariable See belowStuffing bytesvariableAlways 0xFF
+ Adaptation extension formatNameNumber of bitsBitmaskDescriptionAdaptation extension length80xff00The length of the headerLegal time window (LTW) flag10x0080Piecewise rate flag10x0040Seamless splice flag10x0020Reserved50x001fOptional fieldsLTW flag set (2 bytes)LTW valid flag10x8000LTW offset150x7fffExtra information for rebroadcasters to determine the state of buffers when packets may be missing. Piecewise flag set (3 bytes)Reserved20xc00000Piecewise rate220x3fffffThe rate of the stream, measured in 188 byte packets, to define the end time of the LTW. Seamless splice flag set (5 bytes)Splice type40xf000000000Indicates the parameters of the H.262 splice. DTS next access unit360x0efffefffeThe PES DTS of the splice point. Split up as multiple fields, 1 marker bit (0x1), 15 bits, 1 marker bit, 15 bits, and 1 marker bit, for 33 data bits total. +Payload formatNameNumber of bitsBitmaskDescriptionPayload Pointer (optional)80xffPresent only if the Payload Unit Start Indicator (PUSI) flag is set, and the packet data type is PSI (not PES). It gives the index after this byte at which the new payload unit starts. Any payload byte before the index is part of the previous payload unit. Actual PayloadvariableThe content of the payload.
Бағдарламалар
Көлік ағыны бағдарлама түсінігін қамтиды. Әрбір бағдарлама бағдарламалық карта кестесі (PMT) арқылы сипатталады. Осы бағдарламамен байланысты элементарлық ағындар PMT-да тізілген PID-терге ие. PMT-ның өзіне де бір PID сәйкес келеді. Мысалы, цифрлық теледидарда қолданылатын көлік ағыны үш телеарнаны көрсету үшін үш бағдарламадан тұруы мүмкін. Әрбір арнада бір бейне ағыны, бір немесе екі аудио ағыны және қажетті кез келген метадеректер бар делік. Егер қабылдағыш үш арнаның біреуін декодтағысы келсе, ол тек өзінің бағдарламасына байланысты әрбір PID-тің пайдалы жүктемесін ғана декодтауы керек. Ол қалған барлық PID-тердің мазмұнын жойып жіберуі мүмкін. Бірнеше бағдарламаны қамтитын көлік ағыны көп бағдарламалық көлік ағыны (MPTS) деп аталады. Тек бір бағдарламаны қамтитын көлік ағыны бір бағдарламалық көлік ағыны (SPTS) деп аталады.
Бағдарламаға қатысты ақпарат
4 бағдарламаға қатысты ақпарат (PSI) кестесі бар: бағдарламалық байланыс (PAT), бағдарламалық карта (PMT), шартты қолжетімділік (CAT) және желілік ақпарат (NIT). MPEG 2 спецификациясы CAT және NIT пішімін анықтамайды.
ПТР
Декодерге синхронды мазмұнды, мысалы, байланысты бейнеге сәйкес келетін дыбыс жолдарын, кемінде 100 мс сайын көрсетуге мүмкіндік беру үшін, MPEG 2 тасымалдау ағыны пакеттерінің бейімделу өрісіне бағдарламалық сағаттың анықтамасы (PCR) жіберіледі. MPEG 2 бағдарламасының PCR-мен байланысты PID-і, тиісті PMT-дегі pcr pid мәнімен анықталады. PCR мәні дұрыс қолданылғанда, декодердегі жүйелік уақыт сағатын жасау үшін пайдаланылады. Жүйелік уақыт сағаты (STC) декодері дұрыс іске асырылғанда, дыбыс және бейне элементарлы ағындарын синхрондауға арналған жоғары дәлдіктегі уақыт базасын қамтамасыз етеді. MPEG 2-дегі уақыт осы сағатқа сілтеме жасайды. Мысалы, көрсету уақыт белгісі (PTS) PCR-ға қатысты болуы керек. Алғашқы 33 бит 90 кГц сағатына негізделген. Соңғы 9 бит 27 МГц сағатына негізделген. PCR үшін рұқсат етілген максималды тербеліс – .
Нөлдік пакеттер
Кейбір тарату схемалары, мысалы ATSC және DVB, тасымалдау ағынына қатаң тұрақты битрат талаптарын қояды. Ағынның тұрақты битрейтті сақтауын қамтамасыз ету үшін мультиплексор кейбір қосымша пакеттерді енгізуі мүмкін. PID 0x1FFF осы мақсат үшін резервтелген. Бос пакеттердің (null packets) пайдалы жүктемесі 0xFF-пен толтырылады, ал қабылдағыш оның мазмұнын назарға алмауы тиіс.
Цифрлық видеокамераларда қолдану
Транспорттық ағын бастапқыда хабар тарату үшін жасалған. Кейіннен ол цифрлық бейнекамералар, жазғыштар және ойнатқыштармен қолдану үшін бейімделді, стандартты 188 байттық пакеттерге 4 байттық уақыт коды (TC) өрісі қосылып, нәтижесінде 192 байттық пакет пайда болды. Бұл бейресми түрде M2TS ағыны деп аталады және көбінесе HDV камераларында кездеседі. Blu-ray Disc Association оны "BDAV MPEG 2 транспорттық ағыны" деп атайды. Уақыт коды медиа ойнатқыштан немесе сызықтық емес бейне өңдеу жүйесінен ағынның кез келген бөлігіне жылдам қол жеткізуге мүмкіндік береді. Ол сондай-ақ көпкамералық түсірілімде бірнеше камерадан түскен бейне ағындарын синхрондау үшін де қолданылады.
Blu-ray-да қолдану
Blu-ray Disc видео атаулары, меню қолдауымен жазылған жағдайда, Blu-ray Disc Movie (BDMV) форматында болады және аудио, бейне және басқа да ағындарды BDAV контейнерінде сақтайды, ол MPEG 2 тасымалдау ағыны форматына негізделген. Blu-ray Disc видеосы осы өзгертілген MPEG 2 тасымалдау ағынын пайдаланады, DVD-нің бағдарлама ағындарынан айырмасы – қосымша тасымалдау жүктемесі жоқ. Сондай-ақ, BDAV (Blu-ray Disc Audio/Visual) форматы бар, ол фильмдерді шығару үшін қолданылатын BDMV форматына тұтынушыға бағытталған балама болып табылады. BDAV форматы Blu-ray Disc-ке аудио/видео жазу үшін қолданылады. Blu-ray Disc MPEG 2 тасымалдау ағыны жазу әдісін қолданады. Бұл, BDAV-ға түрлендірілген цифрлық хабар таратудың тасымалдау ағынын пакеттерге минималды өзгеріс енгізіп, түпнұсқа күйінде жазуға мүмкіндік береді.