MPEG-2 Transport Stream                                                                                                   ...
Upcoming SlideShare
Loading in …5
×

DVB_Arch

1,275 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,275
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
55
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

DVB_Arch

  1. 1. MPEG-2 Transport Stream Service Information (SI) in DVB SystemsISO/IEC 13818-1 International Standard ETSI EN 300 468 International Standard Discontinuity Information Section ISO/IEC 13818-1 transport packet P E S PACKET SYNTAX DIAGRAM (DI T) 24 bits 8 bits 16 bits Syntax No. of bits Network Information section (NIT) Service description section (SDT) Bouquet association section (BAT) Packet PES Optional Syntax No. of bitstransport_packet ( ) { Stream Syntax No. of bits Syntax No. of bits Start Code Packet PES PES Packet Data Bytes Syntax No. of bits discontinuity_information_section ( ) { sync_byte 8 Id Prefix Length HEADER network_information_section( ){ service_description_section( ){ bouquet_association_section(){ table_id 8 transport_error_indica tor 1 table_id 8 table_id 8 table_id 8 section_syntax_indicator 1 section_syntax_indicator 1 payload_unit_start_indica tor 1 section_syntax_indicator 1 section_syntax_indicator 1 reserved_future_use 1 reserved_future_use 1 reserved_future_use 1 reserved_future_use 1 transport_priority 1 reserved 2 2 bits 2 bits 1 bit 1 bit 1 bit 1 bit 8 bits 8 bits m * 8 bits reserved 2 reserved 2 reserved 2 PID 13 section_length 12 section_length 12 section_length 12 PES Data Stuffing bouquet_id 16 section_length 12 transport_scrambling_control 2 PES Original PES network_id 16 transport_stream_id 16 Optional reserved 2 transition_flag 1 ada pta tion_field_control 2 ‘10’ Scrambling Alignment Copyright 7 Flags Header Bytes reserved 2 reserved 2 Priority or Copy Fields version_number 5 reserved_future_use 7 continuity_counter 4 Control Indicator Data Length (0xFF) version_number 5 version_number 5 current_next_indicator 1 current_next_indicator 1 current_next_indicator 1 section_number 8 } if(adaptation_field_control==’10’ || adaptation_field_control==’11’ ) { section_number 8 section_number 8 adaptation_field ( ) last_section_number 8 last_section number 8 last_section number 8 reserved_future_use 4 33 bits reserved_future_use 4 original_network_id 16 } 33 bits 42 bits 22 bits 8 bits 7 bits 16 bits bouquet_descriptors_length 12 network_descriptors_length 12 reserved_future_use 8 for(i=0;i<N;i++){ if(adaptation_field_control==’01’ || adaptation_field_control==’11’ ) { for(i=0;i<N;i++){ for(i=0;i<N;i++) { DSM Previous descriptor( ) for ( i=0;i<N;i++) { PTS ESCR ES Trick Additional PES PES descriptor() service_id 16 } Selection Information Section (SI T) da ta_byte 8 DTS Rate Copy Info Extension } reserved_future_use 6 Mode CRC reserved_future_use 4 Syntax No. of bits } reserved_future_use 4 EIT_schedule_flag 1 transport_stream_loop_length 12 transport_stream_loop_length 12 EIT_present_following_flag 1 for(i=0;i<N;i++){ } running_status 3 selection_information_section ( ) { for(i=0;i<N;i++){ transport_stream_id 16} transport_stream_id 16 free_CA_mode 1 original_network_id 16 table_id 8 original_network_id 16 descriptors_loop_length 12 reserved_future_use 4 section_syntax_indicator 1 reserved_future_use 4 for(j=0;j<N;j++){ transport_descriptors_length 12 DVB_reserved_future_use 1 Optional transport_descriptors_length 12 descriptor( ) for(j=0;j<N;j++) { 5ESCR Flags } ISO_reserved 2 Fields for(j=0;j<N;j++){ descriptor ( ) TRANSPORT STREAM SYNTAX DIAGRAM } descriptor() } CRC_32 32 } } section_length DVB_reserved_future_use 12 16 188 bytes } } CRC_32 32 ISO_reserved 2 Transport 128 bits 8 bits 8 bits 16 bits 7 bits CRC_32 32 } version_number 5 Header Header Payload } Packet Payload Payload Header PES Packet PES PES current_next_indicator 1 Program Packet P-STD Photo courtesy of NASA/JPL/Caltech Stream Private Header Extension Extension section_number 8 Sequence Counter Buffer Data Field Field Length Field Data last_section_number 8 8 bits 1 bit 1 bit 1 bit 13 bits 2 bits 2 bits 4 bits DVB_reserved_for_future_use 4 transmission_info_loop_length 12 Sync Transport Payload Transport Adaptation for(i=0;i<N;i++) { Transport Continuity Adaptation Byte Error Unit Start PID Scrambling Field Priority Counter Field descriptor ( ) Indicator Indicator Control Control } Program association section (PAT) Event Information Section (EIT) for(i=0;i<N;i++) { 8 bits 1 bit 1 bit 1 bit 5 bits Syntax program_association_section( ) { No. of bits MPEG-2 DVB DVB Syntax event_information_section( ) { No. of bits service_id DVB_reserved_future_use 16 1 table_id 8 (Defined) (Mandatory) (Optional) table_id 8 running_status 3 Adaptation Random Elementary section_syntax_indicator 1 section_syntax_indicator 1 Discontinuity Optional Stuffing service_loop_length 12 Field Access Stream Priority 5 Flags ‘0’ 1 PID=0x0000 PID=0x0010 PID=0x0010 reserved_future_use 1 Indicator Fields Bytes for(j=0;j<N;j++) { Length Indicator Indicator reserved 2 reserved 2 section_length 12 section_length 12 descriptor ( ) transport_stream_id 16 Network service_id 16 } reserved version_number 2 5 PAT NIT NIT Information reserved version_number 2 5 } CRC_32 32 42 bits 42 bits 8 bits 8 bits 8 bits 3 bits current_next_indicator 1 Actual transport Other transport current_next_indicator 1 stream section_number 8 } Transport Transport Adaptation section_number 8 stream Splice Optional last_section_number 8 last_section_number 8 PCR OPCR Private Data Private Field Extenstion 3 Flags transport_stream_id 16 Countdown Fields Conditional access section (CAT) for (j=0;j< N;j++) { PID=0x0011 Length Data Length original_network_id 16 program_number 16 segment_last_section_number 8 Syntax No. of bits reserved 3 last_table_id 8 ETSI TR 101 290 -Table Timing Intervals CA_section( ) { if (program_number==’0’ ) { Bouquet for(i=0;i<N;i++) { 1 bit 15 bits 2 bits 22 bits 4 bits 33 bits table_id section_syntax_indicator 8 1 } network_PID 13 BAT Association event_id start_time 16 40 Table Type PID Max/Min Itw_valid Itw Piecewise Splice else { duration 24 PAT 0x 00 500 ms DTS_next_au ‘0’ 1 program_map_PID 13 Flag Offset Rate Type reserved 2 running_status 3 TSDT 0x 02 10000 ms [1] } free_CA_mode 1 NIT actual 0x10 10000 / 25 ms section_length 12 } reserved 18 PID=0x0011 PID=0x0011 descriptors_loop_length 12 NIT other 0x10 10000 / 25 ms CRC_32 32 for (j=0;j<N;j++) { version_number 5 } descriptor ( ) SDT actual 0x11 2000 / 25 ms current_next_indicator 1 } SDT other 0x11 10000 / 25 ms PID=0x0001 Service } BAT 0x11 10000 / 25 ms PROGRAM ASSOCIATION SECTION DIAGRAM section_number last_section number 8 8 SDT SDT Description } CRC_32 32 EIT actual present-following EIT other present-following 0x12 0x12 2000 / 25 ms [2] 10000 / 25 ms [2] 32 for (i=0;i< N;i++) { Actual transport Other transport 1 2 2 descriptor( ) TOT 0x14 30000 / 25 ms 8 bits 1 bit bit bits 12 bits 16 bits bits 5 bits 1 bit 8 bits 8 bits bits stream stream TDT 0x14 30000 / 25 ms Table ID Section Syntax ‘0’ Section Transport Stream Version Current Next Section Last Section N CRC } CRC_32 32 CAT PID=0x0012 PID=0x0012 PID=0x0012 PMT ALL 500 ms Length Number Number Loop 32 } [1] ETSI TR 101 211, TSDT interval defined in section 4.1.9 Indicator ID Indicator Number Running status section (RST) [2] ETSI TR 101 211, Additional EIT Actual/Other Schedule intervals EIT EIT EIT Event Syntax No. of bits defined for: -DVB Satellite/Cable in section 4.4.1 16 bits 3 bits 13 bits 16 bits 3 bits 13 bits PID=0x0002 Actual transport stream Actual transport stream Other transport stream Information running_status_section ( ) { -DVB Terrestrial in section 4.4.2 table_id 8 Program present/following schedule present/following section_syntax_indicator 1 Program Program reserved_future_use 1 Number Network ... Number Map ... Transport Stream Description Section schedule reserved 2 PID i PID_i (TSDT) section_length 12 0 Syntax No. of bits TSDT PID=0x0013 for(i=0;i<N;i++){ transport_stream_id 16 Stream Type Assignments original_network_id 16 Value Description TS_Description_section( ) { service_id 16 Abbreviations Running event_id 16 0x00 ITU-T | ISO/IEC reserved CONDITIONAL ACCESS SECTION DIAGRAM table_id section_syntax_indicator 8 1 RST Status reserved_future_use running_status 5 3 0x01 ISO/IEC 11172-2 Video AC-3 Dolby AC-3 audio coding

×