Broadcast streams carry service information next to the programme tables: what the network is, which services it offers, what is on now and next, and what time it is. Each table is a section with the syntax described there; the body is below. The bodies in this page are what the explorer decodes field by field. Every loop of descriptors inside them is read with the descriptor tables.
DVB (ETSI EN 300 468)
| Table | PID | table_extension | Body |
|---|---|---|---|
NIT 40, 41 | 0010 | network_id | reserved (4) and network_descriptors_length (12); network descriptors; reserved (4) and transport_stream_loop_length (12); for each transport stream: transport_stream_id (16), original_network_id (16), reserved (4), transport_descriptors_length (12), descriptors. The delivery system descriptor of each transport stream (satellite, cable, terrestrial) says where to tune. |
BAT 4A | 0011 | bouquet_id | Same layout as the NIT with bouquet descriptors (bouquet name) and a transport stream loop. |
SDT 42, 46 | 0011 | transport_stream_id | original_network_id (16), reserved (8); for each service: service_id (16), reserved (6), EIT_schedule_flag (1), EIT_present_following_flag (1), running_status (3), free_CA_mode (1), descriptors_loop_length (12), descriptors (service name, type and provider). |
EIT 4E, 4F, 50 to 6F | 0012 | service_id | transport_stream_id (16), original_network_id (16), segment_last_section_number (8), last_table_id (8); for each event: event_id (16), start_time (40: Modified Julian Date in 16 bits, then hours, minutes, seconds as BCD), duration (24 BCD), running_status (3), free_CA_mode (1), descriptors_loop_length (12), descriptors (short event, extended event, component, content, parental rating). |
TDT 70 | 0014 | none (short form) | UTC_time (40 bits, the same MJD and BCD form). |
TOT 73 | 0014 | none (short form, with CRC-32) | UTC_time (40), reserved (4), descriptors_loop_length (12), descriptors (local time offset). |
RST 71 | 0013 | none | Entries of 9 bytes: transport_stream_id, original_network_id, service_id, event_id (16 each), reserved (5), running_status (3). |
ST 72 | any | none | Stuffing bytes. |
CT 75 | signalled in the PMT (sections) | container_id | A block of the compression_wrapper (ETSI TS 102 323 tables 17 to 21). Section 0: compression_method (0 not compressed, 1 Zlib), original_size (24) and the Zlib stream, or num_cri_structures (8) and for each cri_structure_type (8), cri_structure_id (8), cri_structure_ptr (24) and cri_structure_length (24), then the structures as bytes. |
RCT 76 | signalled by a related content descriptor | service_id | year_offset (16), link_count (8); for each link a link_info: link_type (4: URI, binary locator, both, descriptor), how_related_classification_scheme_id (6, named), term_id (12), group_id (4), precedence (4), media_uri, the DVB binary locator (identifier type, reliability, start date from the year offset, the service triplet or its index, start time and duration in 2 s units, event_id, TVA_id, component_tag, early start and late end windows), the promotional texts (language and text), default_icon_flag, icon_id and descriptors; then the table's own descriptors. |
CIT 77 | signalled in the PMT (sections) | service_id | transport_stream_id, original_network_id, the prepend strings (separated by 0x00) and each CRID reference: crid_ref, prepend_string_index (0xFF for none) and unique_string. |
RNT 79 | 0016 | context_id | context_id_type (bouquet, original network or network id), the common descriptors, then each resolution provider (name, descriptors) with its CRID authorities (name, policy: permanent, transient or either, descriptors). |
DIT 7E | 001E | none | transition_flag (1), reserved (7). Marks a place where the SI of a spliced stream changes. |
SIT 7F | 001F | reserved | transmission_info_loop_length (reserved 4 + 12) and descriptors; for each service: service_id (16), reserved (1), running_status (3), service_loop_length (12), descriptors. Found in partial transport streams recorded from a broadcast. |
The date is shown as YYYY-MM-DD hh:mm:ss UTC, decoded from the Modified Julian Date with the formula of EN 300 468 annex C. A start_time of all ones means undefined. The running_status values are 0 undefined, 1 not running, 2 starts in a few seconds, 3 pausing, 4 running, 5 service off-air.
Text in these tables uses the character coding of annex A: with no leading byte the ISO 6937 set (with its combining accents and the euro sign), a leading byte 01 to 0B or 10 with two more bytes picks an ISO 8859 part, 11 is UCS-2, 12 Korean KS X 1001, 13 GB 2312, 14 Big5, 15 UTF-8. The explorer decodes all of them and names the coding when it is not the default.
ATSC PSIP (A/65)
ATSC streams carry the Program and System Information Protocol on PID 1FFB. All its sections have the long form, private_indicator 1 and a protocol_version byte first in the body. Times are GPS seconds since 1980-01-06, converted to UTC with the GPS_UTC_offset of the system time table.
| Table | table_id | Body |
|---|---|---|
| MGT | C7 | tables_defined (16); for each: table_type (16: TVCT, CVCT, channel ETT, EIT-0 to EIT-127, event ETT-0 to ETT-127, RRT by region, DCCT), PID (reserved 3 + 13), version (reserved 3 + 5), number_bytes (32), descriptors. |
| TVCT, CVCT | C8, C9 | num_channels_in_section (8); for each channel: short_name (7 UTF-16 characters), major_channel_number (10), minor_channel_number (10), modulation_mode (8), carrier_frequency (32), channel_TSID (16), program_number (16), ETM_location (2), access_controlled, hidden, (CVCT: path_select, out_of_band), hide_guide, service_type (6), source_id (16), descriptors. |
| RRT | CA | rating region name, then dimensions each with a graduated scale and rating values; all text as multiple string structures. |
| EIT | CB | source_id is the extension; for each event: event_id (14), start_time (32 GPS seconds), ETM_location (2), length_in_seconds (20), title (multiple string structure), descriptors. |
| ETT | CC | ETM_id (32) and an extended text message (multiple string structure). |
| STT | CD | system_time (32 GPS seconds), GPS_UTC_offset (8), daylight saving (16), descriptors. |
A multiple string structure holds strings in several languages, each in segments with a compression_type (0 none, 1 and 2 Huffman), a mode (the high byte of the code point, 3F for UTF-16, 3E for SCSU) and the bytes. The explorer reads all of them: uncompressed segments, Huffman segments with the decode tables of A/65 annex C (compression type 1 is table C.5 for English programme titles, type 2 is table C.7 for English programme descriptions; each character's code depends on the character before it, and an escape code is followed by eight raw bits) and SCSU (Unicode Technical Note 6).
SCTE 35 splice information
Ad insertion and programme boundary cues travel in table_id FC sections on a PID that the PMT announces with stream type 86 and the registration descriptor CUEI. The section has the short syntax with a CRC-32.
| Field | Meaning |
|---|---|
| protocol_version (8) | 0. |
| encrypted_packet (1), encryption_algorithm (6), pts_adjustment (33), cw_index (8) | pts_adjustment is added to every time in the section. An encrypted section is shown as bytes. |
| tier (12), splice_command_length (12), splice_command_type (8) | Command types: 00 splice_null, 04 splice_schedule, 05 splice_insert, 06 time_signal, 07 bandwidth_reservation, FF private_command. |
| splice_insert | splice_event_id, cancel flag, out_of_network_indicator, program_splice_flag, duration_flag, splice_immediate_flag, a splice_time (time_specified_flag and 33-bit pts_time) or one per component, a break_duration (auto_return and 33-bit duration), unique_program_id, avail_num, avails_expected. |
| splice_schedule | splice_count events with the same flags and UTC splice times (32-bit seconds). |
| descriptor_loop_length (16) and splice descriptors | Each starts with tag, length and the identifier CUEI. 00 avail, 01 DTMF, 02 segmentation, 03 time, 04 audio. |
| segmentation_descriptor | segmentation_event_id, cancel, delivery restriction flags, component offsets, segmentation_duration (40), segmentation_upid_type and upid, segmentation_type_id (00 not indicated, 10 programme start, 11 end, 22 break start, 30 to 47 advertisement and placement opportunities, 50 and 51 network start and end), segment_num, segments_expected, sub-segment numbers for types 34, 36, 38 and 3A. |
ISDB (ARIB STD-B10)
ISDB streams use the DVB table layout for the NIT, SDT, BAT, EIT, TDT and TOT, with the ARIB descriptors of the descriptor page, and add tables on PIDs 0020 to 002F. The explorer recognises such a stream (a section on those PIDs with an ARIB table id) and from then on reads the names, titles and texts of every table in the ARIB 8-unit character code (STD-B24) instead of the DVB coding.
| Table | table_id | Body |
|---|---|---|
| BIT | C4 | The extension is the original_network_id. A flag (broadcast_view_propriety) and the first descriptor loop; then for each broadcaster: broadcaster_id (8) and a descriptor loop (broadcaster name, extended broadcaster, SI parameter and others). |
| NBIT | C5, C6 | Body and reference tables: for each information: information_id (16), information_type (4), description_body_location (2), user_defined (8), the key ids and a descriptor loop (board information). |
| LIT | D0 | The extension is the event_id (STD-B10 table 5-1). service_id, transport_stream_id, original_network_id, then each local event: local_event_id (16) and a descriptor loop. |
| ERT | D1 | The extension is the event_relation_id (table 5-2). information_provider_id (16), relation_type (4: contents description or navigation tree), then each node: node_id (16, 0 is the special node), collection_mode (4: group, concatenation, selection, parallel), parent_node_id (16, 0xFFFF for none), reference_number (8) and a descriptor loop. |
| ITT | D2 | The extension is the event_id (table 5-5). A descriptor loop. |
| LDT | C7 | The extension is the original_service_id. transport_stream_id, original_network_id, then descriptions: description_id (16) and a descriptor loop. |
| CDT | C8 | The extension is the download_data_id. original_network_id, data_type (1 is a logo), a descriptor loop and the data module bytes (a logo is a PNG file). |
| SDTT | C3 | The extension is the maker and model. transport_stream_id, original_network_id, service_id, then each content: group, target and new version, download level, version indicator, the schedule (start time in JST and duration) and descriptors. |
| PCAT | C2 | The extension is the service_id. transport_stream_id, original_network_id, content_id (32), then each content version with its schedule and descriptors. STD-B10 does not say whether the content descriptor length includes the schedule length field; the explorer counts it, as TSDuck does. |
The 8-unit code has four graphic sets G0 to G3 that escape sequences designate (Kanji, alphanumeric, hiragana, katakana, JIS compatible Kanji planes, additional symbols), locking and single shifts that invoke them, and C0 and C1 controls. The explorer decodes all of these to Unicode with the code point tables of TSDuck (converted from its ARIB character set source) and the 16 default macros. DRCS characters (downloadable glyphs) and the mosaic sets are shown as U+FFFD.
Not described
Known, not yet covered
- Reference and Viewer, coverage against TSDuck: TSDuck (BSD-2-Clause) has an XML model for 58 tables (
scripts/mpegts/tsduck-crosscheck.mjsreads them and runs this viewer's section parsers over synthetic bodies). 43 of the 58 are decoded field by field here (the container section75, RCT76, CIT77, RNT79of ETSI TS 102 323 and the ARIB tables LITD0, ERTD1and ITTD2of STD-B10 are new; each has a test on a stream written byte by byte,samples/mpegts/ts-writer-more.mjs); 15 are not: the DVB tables SAT4D(EN 300 468 5.2.11), MPE-FEC78, MPE-IFEC7A(EN 301 192 and TS 102 772, not read), DFIT7Cand Astra SGT91; the ISDB tables DCTC0, DLTC1(ARIB STD-B21 was not available) and AMTFE; the ATSC tables LTSTD2, DCCTD3, DCCSCTD4, AEITD6, AETTD7and SVCTDA; and the SCTE cable emergency alert tableD8. They are named and CRC-checked, and their bodies are bytes. The ATSC documents (A/65, A/90) could not be downloaded when the tables were worked on (atsc.org refuses automated requests), so none of the ATSC tables above was written from the standard. The container section shows the compression wrapper and the structure directory of an uncompressed container and lists the CRI structures as bytes; a Zlib-compressed container is shown by its size and header only. The ATSC A/90 tables DETCE, DSTCFand NRTD1are read to their protocol_version only. ATSC multiple strings that use a compression_type other than 0, 1 and 2 are marked as reserved. - Reference: the synthetic bodies of the check reach only some of the loops of the tables that have nested loops (NIT, BAT, SDT, EIT, AIT, the ISDB BIT, NBIT, SDTT, PCAT, the SCTE 35 splice commands): the check lists their header attributes (the table id extension, version and current flag) as text fields and cannot confirm their loop fields; those are covered by the tests on streams written byte by byte (
test-mpegts-built.mjs) and by the real captures. - Viewer: the ARIB character code decoder does not render DRCS glyphs or mosaic sets, and does not apply caption controls (position, size, colour) to text outside the caption viewer; the descriptors with more than one level of structure that STD-B10 defines in annexes (the wired multicarrier and advanced wired delivery systems,
F3andF4) are shown as bytes. - Viewer: descriptors that private data specifiers other than EACEM, NorDig, UK DTT (Ofcom), Eutelsat, Astra, Sky and Australia define (Canal+, OpenTV, CI+, Freesat, Ziggo and others) are shown as bytes after the specifier, under the specifier's name.