The tables of a transport stream (PAT, PMT, CAT, NIT, SDT, EIT and the rest) are carried as sections: short, self-delimiting records that are cut into the payloads of packets on one PID. The explorer reassembles them, checks every CRC-32, and shows each one field by field in the packet tree and in the Tables tab.
Section syntax
All sections start with the same three bytes. Most (the tables with
section_syntax_indicator 1) continue with a five-byte long header and end with a
CRC-32.
| Bits | Name | Meaning |
|---|---|---|
| 8 | table_id | Which table this is; see the list below. |
| 1 | section_syntax_indicator | 1: long form with header and CRC-32. 0: short form (TDT, RST, ST, DIT; TOT and SCTE 35 are short form but still end with a CRC-32). |
| 1 | private_indicator / reserved_future_use | ISO/IEC 13818-1 calls it zero for PSI tables and private_indicator for private sections; DVB tables call it reserved_future_use; ATSC tables set it to 1. |
| 2 | reserved | Normally 11. |
| 12 | section_length | Bytes after this field, including the CRC-32. At most 1021 for PSI, 4093 for private and DVB SI sections. |
| 16 | table_id_extension | Long form only. What it holds depends on the table: transport_stream_id (PAT, SDT), program_number (PMT), network_id (NIT), bouquet_id (BAT), service_id (EIT), source_id (ATSC EIT). |
| 2 + 5 + 1 | reserved, version_number, current_next_indicator | The version rises by one (modulo 32) when the table changes. current_next_indicator 1 means the section is in force now; 0 means it is the next version. |
| 8 | section_number | This section's position in the table. |
| 8 | last_section_number | The last section of the table. |
| n | table body | See the pages for each table. |
| 32 | CRC_32 | CRC-32/MPEG-2 over everything from table_id to the byte before the CRC: polynomial 04C11DB7, initial value FFFFFFFF, no reflection, no final XOR. Run over the whole section including the CRC it gives 0. |
Sections in packets
A section is written into the payloads of packets of one PID, in order. A packet whose
payload_unit_start_indicator is 1 begins with a one-byte
pointer_field: the number of bytes that come before the first new section.
Those bytes finish the section that began in an earlier packet. Several short sections can
follow each other in one packet. After the last section the rest of the packet is filled
with FF bytes; a section can never begin with table_id FF, so a
receiver stops at the first one.
A packet without the start indicator has no pointer field: all its payload continues the section being received. The continuity counter of the PID must rise by one with every packet, so a gap means part of a section is lost and the section is dropped.
What the explorer does
- Sections are reassembled in the scanned window (the First packet and Packets options choose it) for the PIDs fixed by the standards (0, 1, 2, 0x10 to 0x14, 0x1E, 0x1F, 0x1FFB), the PMT PIDs named by the PAT, the stream types that carry sections, and any other PID whose first payload start looks like a section with a known table_id.
- Every long-form section and every TOT or SCTE 35 section has its CRC-32 checked; the Stream tab counts failures and the Tables tab marks them.
- In the packet tree the payload of a packet that carries section bytes is split into pointer_field, the section data and stuffing. A field that crosses a packet border is shown in two parts, named “(continued)”.
- Sections lost to a continuity error, a section start that interrupts an unfinished one, and payloads with no start in the window are counted on the Stream tab.
table_id values
| table_id | Table | Defined in |
|---|---|---|
00 | Program association section (PAT) | ISO/IEC 13818-1 |
01 | Conditional access section (CAT) | ISO/IEC 13818-1 |
02 | Program map section (PMT) | ISO/IEC 13818-1 |
03 | Transport stream description section (TSDT) | ISO/IEC 13818-1 |
04, 05 | ISO/IEC 14496 scene description and object descriptor sections | ISO/IEC 13818-1 |
06, 07 | Metadata section; IPMP control information section | ISO/IEC 13818-1 |
3A to 3F | DSM-CC sections: LLC/SNAP datagrams (3A), user-to-network messages DSI and DII (3B), download data blocks DDB (3C), stream descriptors (3D), DVB datagram sections (3E, MPE) and addressable sections (3F); read field by field, see data broadcast sections | ISO/IEC 13818-6, ETSI EN 301 192 |
40, 41 | Network information section: actual, other network (NIT) | ETSI EN 300 468 |
42, 46 | Service description section: actual, other transport stream (SDT) | ETSI EN 300 468 |
4A | Bouquet association section (BAT) | ETSI EN 300 468 |
4B, 4C | Update notification section (UNT, system software update); IP/MAC notification section (INT); both read field by field, see data broadcast sections | ETSI TS 102 006, EN 301 192 |
4E, 4F | Event information: present/following, actual and other (EIT) | ETSI EN 300 468 |
50 to 5F | Event information: schedule, actual transport stream | ETSI EN 300 468 |
60 to 6F | Event information: schedule, other transport stream | ETSI EN 300 468 |
70 | Time and date section (TDT) | ETSI EN 300 468 |
71 | Running status section (RST) | ETSI EN 300 468 |
72 | Stuffing section (ST) | ETSI EN 300 468 |
73 | Time offset section (TOT) | ETSI EN 300 468 |
74 | Application information section (AIT: MHP, HbbTV); read field by field, see data broadcast sections | ETSI TS 102 809 |
75 to 79 | Container, related content, content identifier, MPE-FEC, resolution provider notification sections | ETSI TS 102 323, EN 301 192 |
7D | MPE-IFEC section | ETSI TS 102 772 |
7E | Discontinuity information section (DIT) | ETSI EN 300 468 |
7F | Selection information section (SIT) | ETSI EN 300 468 |
80 to 8F | Conditional access messages: ECM (80 and 81, which alternate when the control word changes) and EMM (82 to 8F); the section header is read, the contents are the CA system's own and are shown as bytes | ETSI TR 289, TS 103 197 |
C7 to CD | ATSC master guide, terrestrial and cable virtual channel, rating region, event information, extended text, system time tables | ATSC A/65 |
CE, CF, D1, D2 | ATSC data event, data service, network resources and long-term service tables | ATSC A/90 |
D0, D3, D4 | ATSC program identifier table; directed channel change tables | ATSC A/65 |
D8 | Emergency alert section | ANSI/SCTE 18 |
FC | Splice information section | ANSI/SCTE 35 |
FF | Forbidden: stuffing | ISO/IEC 13818-1 |
The ISDB (ARIB) tables on PIDs 0x20 to 0x2F reuse some of these numbers for different tables (C2 PCAT, C3 SDTT, C4 BIT, C5 and C6 NBIT, C7 LDT, C8 CDT): in a stream that is ISDB the explorer names them as ARIB tables and reads them field by field, see SI tables.
Data broadcast sections
These sections carry software and data next to the programmes. All of them use the long header; the explorer reads them field by field.
- DSM-CC (
3Ato3F). The long header comes first, withsection_syntax_indicator1 for a CRC-32 and 0 for a 32-bit checksum (shown, not verified). Table3Bholds a user-to-network message:protocolDiscriminator(0x11),dsmccType(3 for download),messageId, the 32-bittransaction_id(DVB splits it into originator, identification, version and an update flag), the adaptation length and the message length. The download server initiate message (0x1006, DSI) holds a 20-byte server id, a compatibility descriptor, and private data that is either the IOR of the object carousel's service gateway (type idsrg, a BIOP profile body with an object location and a connection binder with its tap) or the group list of a data carousel. The download info indication (0x1002, DII) holds the download id, the block size, a compatibility descriptor and the modules: id, size, version, time-outs, taps and a loop of module descriptors (compressed module, CRC-32, name, type, info, estimated download time, caching priority and the others of EN 301 192). Table3Cholds the download data block (0x1003): download id, module id, module version and block number, then the data. Table3Dholds stream descriptors (NPT reference and endpoint, stream mode, stream event). - Datagram sections (
3A,3E,3F). Table3E(multi-protocol encapsulation) and3Fhave a twelve-byte header: the last two octets of the MAC address, the scrambling controls, the LLC_SNAP flag and the section numbers, then the first four octets of the address; then comes an optional LLC/SNAP header and the IPv4 or IPv6 datagram with its UDP or TCP header. - AIT (
74). The table id extension holds the test flag and the application type (1 DVB-J, 2 DVB-HTML,0x10HbbTV). A common descriptor loop is followed by the applications: a six-byte identifier (32-bit organisation id and 16-bit application id), the control code (AUTOSTART, PRESENT, DESTROY, KILL, PREFETCH, REMOTE, UNBOUND) and the application's descriptors (application, name, transport protocol, DVB-J and DVB-HTML location and boundary, authorisation, icons, prefetch, DII location, storage, graphics constraints, simple application location and boundary, usage, recording; see Descriptors). - INT (
4C). The extension holds the action type and a hash of the platform id; the body has the 24-bit platform id, a processing order, a platform descriptor loop and then, for each group of devices, a target descriptor loop (target MAC, IP, IPv6, smartcard, serial number) and an operational descriptor loop (stream locations, ISP access mode, platform names). - UNT (
4B). The extension holds the action type and a hash of the OUI; the body has the 24-bit OUI, a processing order, a common descriptor loop and the device sets: a compatibility descriptor, then platforms with target and operational descriptor loops (scheduling, update, SSU location, message, event name, subgroup association, enhanced message, URI).
Not described
Known, not yet covered
- Reference and Viewer: the RCT, CIT, RNT, MPE-FEC and MPE-IFEC sections, the ATSC data tables (DET, DST, NRT, LTST, DCCT, DCCSCT, PIT) and the ARIB tables DCT, DLT, AMT, LIT, ERT and ITT are named and checked by CRC; their bodies are shown as bytes.
- Reference and Viewer: CA messages (ECM and EMM) have their section header read and the rest shown as bytes: the structure belongs to each CA system and is mostly encrypted, and the CA system's documents are not public.
- Viewer: object carousel modules are not reassembled from their download data blocks, so the BIOP messages inside (directories, files, stream events) and a zlib compressed module are not opened; the blocks are listed one by one. The DSM-CC user-to-network messages other than DSI and DII (session and resource messages) are named only. The 32-bit checksum of a DSM-CC section with
section_syntax_indicator0 is shown, not verified. - Reference: the layouts of the carousel_identifier FormatId 1 fields and of the INT and UNT descriptors were taken from TSDuck's descriptor sources and EN 301 192 and TS 102 006 text; they are tested on written streams and the AIT, DSI, DII and DDB layouts on real captures (a DVB-T HbbTV service and an MHP satellite service), but no real INT or UNT stream was available.