3
MPEG-2 transport streams Includes DVB service information tables

MPEG-2 - Tektronix · ISO/IEC 13818-1 transport packet Syntax No. of bits transport_packet(){sync_byte 8 transport_error_indicator 1 payload_unit_start_indicator 1

  • Upload
    ngomien

  • View
    221

  • Download
    0

Embed Size (px)

Citation preview

MPEG-2transport streams

Includes DVB service information tables

' 2005 Tektronix, Inc. All rights reserved. Printed in theU.S.A. Tektronix products are covered by U.S. and foreignpatents, issued and pending. Information in this publicationsupersedes that in all previously published material.Specifications and price change privileges reserved. TEKTRONIX and TEK are registered trademarks.07/05 FLG/PT 2AW-14974-3

www.tektronix.com/video_audio Contact Tektronix:ASEAN / Australasia / Pakistan (65) 6356 3900

Austria +41 52 675 3777

Balkan, Israel, South Africa and other ISE Countries +41 52 675 3777

Belgium 07 81 60166

Brazil & South America 55 (11) 3741-8360

Canada 1 (800) 661-5625

Central East Europe, Ukraine and Baltics +41 52 675 3777

Central Europe & Greece +41 52 675 3777

Denmark +45 80 88 1401Finland +41 52 675 3777

France & North Africa +33 (0) 1 69 86 81 81

Germany +49 (221) 94 77 400

Hong Kong (852) 2585-6688

India (91) 80-22275577

Italy +39 (02) 25086 1

Japan 81 (3) 6714-3010

Luxembourg +44 (0) 1344 392400

Mexico, Central America & Caribbean 52 (55) 56666-333

Middle East, Asia and North Africa +41 52 675 3777

The Netherlands 090 02 021797

Norway 800 16098

People”s Republic of China 86 (10) 6235 1230

Poland +41 52 675 3777

Portugal 80 08 12370

Republic of Korea 82 (2) 528-5299

Russia & CIS 7 095 775 1064

South Africa +27 11 254 8360

Spain (+34) 901 988 054

Sweden 020 08 80371

Switzerland +41 52 675 3777

Taiwan 886 (2) 2722-9622

United Kingdom & Eire +44 (0) 1344 392400

USA 1 (800) 426-2200

For other areas contact Tektronix, Inc. at: 1 (503) 627-7111

Last Updated June 15 2005

MTM400 MPEG Transport StreamMonitor

- Provides 24x7 monitoring according to

TR101 290 first, second and third

priority tests

- Remotely access and control all

monitors within a distribution network

- Monitor at data rates up to 155 Mbps

MTS400 Series MPEG Test System

- Powerful real-time monitoring and

analysis of MPEG/DVB/ATSC/ISDB

transport streams

- In-depth, off-line analysis of transport,

program, and elementary streams

- MPEG transport stream recording and

playout

AD954 Portable MPEG Analyzer

- Real-time monitoring of TR101 290

Priority 1 tests

- Connect anywhere in the MPEG network

via ASI, SMPTE 310M and DVB parallel

interfaces

- Detailed off-line transport stream analysis

For Further Information

Tektronix maintains a comprehensive, constantly -expanding collection ofapplication notes, technical briefs and other resources to help engineersworking on the cutting edge of technology.

Please visit “Resources For You” on our Web site at

www.tektronix.com/video_audio

ww

w.te

ktro

nix

.co

m

ISO

/IEC

138

18-1 tra

nsp

ort p

ac

ke

tSyntax

No.of bits

transport_packet(){

sync_byte

8transport_

error_indicator

1payload_

unit_start_

indicator1

transport_priority

1P

ID1

3transport_

scrambling_

control2

adaptation_field_

control2

continuity_counter

4if(adaptation_

field_control=

=’1

0’ || adaptation_

field_control=

=’1

1’){

adaptation_field

()}if(adaptation_

field_control=

=’0

1’ || adaptation_

field_control=

=’1

1’){

for (i=0

;i<N

;i++

){data_

byte8

}}

}

PR

OG

RA

M A

SS

OC

IAT

ION

SE

CT

ION

DIA

GR

AM

8 b

its

Table IDSectionSyntax

Indicator

TransportStream

ID

CurrentN

extIndicator

LastSectionN

umber

SectionLength

VersionN

umber

SectionN

umber

NLoop

CRC32

‘0’

1 bit

12 b

its16

bits

5 b

its8

bits

8 b

its3

2b

its1 b

it1

bit

2

bits

2

bits

ProgramN

umber

0

......

ProgramM

apPID

_i

ProgramN

umber

i

Netw

orkPID

16 b

its13

bits

16 b

its13

bits

3

bits

3

bits

TS

PR

OG

RA

M M

AP

SE

CT

ION

DIA

GR

AM

8 b

its

Table IDSectionSyntax

Indicator

CurrentN

extIndicator

LastSectionN

umber

SectionLength

ProgramN

umber

VersionN

umber

SectionN

umber

‘0’

1 bit

12 b

its16

bits

5 b

its8

bits

8 b

its4

bits

1 bit

1 b

it2

b

its2

b

its

StreamType

ESInfo

Length

NLoop

Descriptors

Elementary

PID

8 b

its13

bits

3

bits

4

bits

12 b

its

NLoop

Descriptors

32

bits

12 b

its

CO

ND

ITIO

NA

L A

CC

ES

S S

EC

TIO

N D

IAG

RA

M8

bits

Table IDSectionSyntax

Indicator

CurrentN

extIndicator

LastSectionN

umber

SectionLength

VersionN

umber

SectionN

umber

NLoop

Descriptors

CRC32

‘0’

1 bit

12 b

its18

bits

5 b

its8

bits

8 b

its3

2b

its1 b

it1

bit

2

bits

PCRPID

NLoop

CRC_32Program

InfoLength

TR

AN

SP

OR

T S

TR

EA

M S

YN

TA

X D

IAG

RA

M

8 b

its

HeaderPayload

PayloadPayload

TransportError

Indicator

PayloadUnit StartIndicator

TransportScram

blingControl

AdaptationField

Control

TransportPriority

SyncByte

AdaptationField

1 bit

1 bit

1 bit

188

byte

s

13 b

its2

bits

4 b

its2

bits

PID

Transp

ort

Packet

Stre

am

ContinuityCounter

AdaptationField

Length

RandomAccess

Indicator

Elementary

Stream Priority

Indicator

DiscontinuityIndicator

StuffingBytes

8 b

its1 b

it1 b

it1 b

it5

bits

5 Flags

TransportPrivate D

ataLength

TransportPrivateD

ata

AdaptationField Extenstion

Length

42

bits

42

bits

8 b

its8

bits

8 b

its3

bits

3 FlagsPCR

OPCR

OptionalFields

SpliceCountdow

n1 bit

15 b

its2

2 b

its2

bits

4 b

its3

3 b

its

DTS_next_au

Itw_validFlag

ItwO

ffsetPiecew

iseRate

SpliceType

13 b

its3

b

its

PR

IVA

TE

SE

CT

ION

DIA

GR

AM

TableId

SectionSyntax

Indicator

PrivateSectionLength

PrivateIndicator

8 b

its1 b

it1 b

it12

bits

2

bits

SectionN

umber

CRC32

TableId

Extension

CurrentN

extIndicator

LastSectionN

umber

NPrivateD

ata

VersionN

umber

16 b

its5

bits

1 bit

8 b

its8

bits

32

bits

2

bits

N Private D

ata Bytes

Allo

catio

n o

f tab

le_id

Valu

es

Value Description

0x000x010x020x03

0x04 to 0x3F0x400x410x42

0x43 to 0x450x46

0x47 to 0x490x4A

0x4B to 0x4D0x4E0x4F

0x50 to 0x5F0x60 to 0x6F

0x700x710x720x73

0x74 to 0x7D0x7E0x7F

0x80 to 0xFE0xFF

program_association_section

conditional_access_sectionprogram

_map_section

transport_stream_description_section

reservednetw

ork_information_section - actual_netw

orknetw

ork_information_section - other_netw

orkservice_description_section - actual_transport_streamreserved for future useservice_description_section - other_transport_streamreserved for future usebouquet_association_sectionreserved for future useevent_inform

ation_section - actual_transport_stream,present/follow

ingevent_inform

ation_section - other_transport_stream,present/follow

ingevent_inform

ation_section - actual_transport_stream,schedule

event_information_section - other_transport_stream

,scheduletim

e_date_sectionrunning_status_sectionstuffing_sectiontim

e_offset_sectionreserved for future usediscontinuity_inform

ation_sectionselection_inform

ation_sectionuser definedreserved

Ab

bre

via

tion

s

AC-3 D

olby AC-3 audio coding (ITU-R Recom

mendation BS1196 [19])

BATBouquet Association Table

BCDBinary Coded D

ecimal

bslbf bit string,left bit first

CAConditional Access

CATConditional Access Table

CLUTColor Look-Up Table

CRCCyclic Redundancy Check

DAB

Digital Audio Broadcasting

DIT

Discontinuity Inform

ation TableD

VBD

igital Video BroadcastingD

VDD

igital Versatile Disc

EBUEuropean Broadcasting Union

EITEvent Inform

ation TableEM

MEntitlem

ent Managem

ent Message

EPGElectronic Program

GuideETS

European Telecomm

unication StandardFEC

Forward Error Correction

IECInternational Electrotechnical Com

mission

IRDIntegrated Receiver D

ecoderISO

International Organization for Standardization

LSBLeast Significant Bit

MJD

Modified Julian D

ateM

PEGM

oving Pictures Expert GroupN

ITN

etwork Inform

ation TableN

VOD

Near Video O

n Dem

andPAT

Program Association Table

PDC

ProgramD

elivery ControlPID

Packet IDentifier

PMT

Program M

ap TablePSI

Program Specific Inform

ationPSTN

Public Switched Telephone N

etwork

QAM

Quadrature Am

plitude Modulation

QPSK

Quaternary Phase Shift Keying

rpchofrem

ainder polynomial coefficients,highest order first

RSReed-Solom

onRST

Running Status TableSeF

Scale FactorSD

TService D

escription TableSI

Service Information

SITSelection Inform

ation TableSM

IStorage M

edia InteroperabilityST

Stuffing TableTD

TTim

e and Date Table

TOT

Time O

ffset TableTPS

Transmission Param

eter SignalingTS

Transport Streamuim

sbfunsigned integer m

ost significant bit firstUTC

Universal Time,Co-ordinated

VBIVertical Blanking Interval

VPSVideo Program

SystemW

SSW

ide Screen Signaling

Stre

am

Typ

e A

ssig

nm

en

tsValue

Description

0x000x010x02

0x030x040x050x06

0x070x080x090x0A0x0B0x0C0x0D0x0E

0x0F - 0x7F0x80 - 0xFF

ITU-T | ISO/IEC reserved

ISO/IEC 11172-2 Video

ITU-T Rec.H.262 | ISO

/IEC 13818-2 Video or ISO/IEC

11172-2 constrained parameter video stream

ISO/IEC 11172-3 Audio

ISO/IEC 13818-3 Audio

ITU-T Rec.H.222.0 | ISO

/IEC 13818-1 private_sectionsITU-T Rec.H

.222.0 | ISO/IEC 13818-1 PES

packetscontaining private dataISO

/IEC 13522 MH

EGAnnex A - D

SM CC

ITU-T Rec.H.222.1

ISO/IEC 13818-6 type A

ISO/IEC 13818-6 type B

ISO/IEC 13818-6 type C

ISO/IEC 13818-6 type D

ISO/IEC 13818-1 auxiliary

ITU-T Rec.H.222.0 | ISO

/IEC 13818-1 reservedUser private

PID

Allo

catio

n fo

r DV

BS

ITable

PIDValue

PATCATTSD

TreservedN

IT,STSD

T,BAT,STEIT,STRST,STTD

T,TOT,ST

network synchronization

reserved for future useinband signallingm

easurement

DIT

SIT

0x00000x00010x00020x0003 to 0x000F0x00100x00110x00120x00130x00140x00150x0016 to 0x001B0x001C0x001D0x001E0x001F

ETS

ITR

101

29

0-Ta

ble

Timin

g In

terv

als

Table TypePID

Max/M

in

[1] ETSI TR 101 211,TSDT interval defined in section 4.1.9[2] ETSI TR 101 211,

Additional EIT Actual/Other Schedule intervals

defined for:-DVB Satellite/Cable in section 4.4.1-DVB Terrestrial in section 4.4.2

PATTSD

TN

IT actualN

IT otherSD

T actualSD

T otherBATEIT actual present-follow

ingEIT other present-follow

ingTO

TTD

TPM

T

0x00500 m

s0x02

10000 ms [1]

0x1010000 / 25 m

s0x10

10000 / 25 ms

0x112000 / 25 m

s0x11

10000 / 25 ms

0x1110000 / 25 m

s0x12

2000 / 25 ms [2]

0x1210000 / 25 m

s [2]0x14

30000 / 25 ms

0x1430000 / 25 m

sALL

500 ms

MP

EG

-2 T

ran

sp

ort S

trea

mIS

O/IE

C 13

818

-1 Inte

rna

tion

al S

tan

da

rdS

erv

ice

Info

rma

tion

(SI) in

DV

BS

yste

ms

ETSI E

N 3

00 4

68 In

tern

atio

nal S

tand

ard

HeaderHeader

OptionalFields

PE

S P

AC

KE

T S

YN

TA

X D

IAG

RA

M

2 b

its

PESScram

blingControl

Data

Alignment

Indicator

PESHeader

Data Length

StuffingBytes(0xFF)

PESPriority

Original

or CopyO

ptionalFields

2 b

its1 b

it1 b

it1 b

it8

bits

8 b

itsm

*8

bits

1 bit

‘10’

DSM

TrickM

ode

PTSD

TSES

RateAdditionalCopy Info

33

bits

33

bits

42

bits

22

bits

8 b

its7 b

its16

bits

ESCR

ESCR

PESExtension

Copyright7 Flags

24

bits

8 b

its16

bits

PES Packet Data Bytes

StreamId

PacketStart Code

Prefix

PESPacketLength

OptionalPES

HEADER

PreviousPESCRC

OptionalFields

5 Flags

P-STDBuffer

PESPrivateD

ata

PacketHeaderField

PESExtension

Field Length

PESExtensionField D

ata

128

bits

8 b

its8

bits

16 b

its7 b

its

Program Packet

Sequence Counter

Se

lectio

n In

form

atio

n S

ectio

n (S

IT)

SyntaxN

o.of bits

selection_information_section

() {table_id

8section_syntax_indicator

1D

VB_reserved_future_use1

ISO_reserved

2section_length

12D

VB_reserved_future_use16

ISO_reserved

2version_num

ber5

current_next_indicator1

section_number

8last_section_num

ber8

DVB_reserved_for_future_use

4transm

ission_info_loop_length12

for(i=0;i<

N;i+

+) {

descriptor()}for(i=

0;i<N

;i++

) {service_id

16D

VB_reserved_future_use1

running_status3

service_loop_length12

for(j=0;j<

N;j+

+) {

descriptor()}

}CRC_3232

}

Dis

co

ntin

uity

Info

rma

tion S

ectio

n(D

IT)

SyntaxN

o.of bits

discontinuity_information_section

() {table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12transition_flag

1reserved_future_use

7}

Program association section (PAT)

SyntaxN

o.of bits

program_association_section(){

table_id8

section_syntax_indicator1

‘0’1

reserved2

section_length12

transport_stream_id

16reserved

2version_num

ber5

current_next_indicator1

section_number

8last_section_num

ber8

for (j=0

;j<N

;j++

) {program

_number

16reserved

3if(program

_number=

=’0’) {

network_PID

13}else {program

_map_PID

13}

}CRC_3232

}

Conditional access section (CAT)Syntax

No.of bits

CA_section() {table_id

8section_syntax_indicator

1‘0’

1reserved

2section_length

12reserved

18version_num

ber5

current_next_indicator1

section_number

8last_section num

ber8

for (i=0;i<

N;i+

+) {

descriptor()}CRC_32

32}Transport Stream

Description Section

(TSDT)

SyntaxN

o.of bits

TS_Description_section() {

table_id8

section_syntax_indicator1

‘0’1

reserved2

section_length12

reserved18

version_number

5current_next_indicator

1section_num

ber8

last_section number

8for (i=

0;i<N

;i++

) {descriptor()

}CRC_3232

}

Transport Stream program

map section (PM

T)

SyntaxN

o.of bits

TS_program_m

ap_section() {table_id

8section_syntax_indicator

1‘0’

1reserved

2section_length

12program

_number

16reserved

2version_num

ber5

current_next_indicator1

section_number

8last_section num

ber8

reserved3

PCR_PID13

reserved4

program_info_length

12for (i=

0;i<N

;i++

) {descriptor()

}for (i=0;i<

N1;i+

+) {

stream_type

8reserved

3elem

entary_PID13

reserved4

ES_info_length12

for (j=0;j<

N2;j+

+) {

descriptor()}

}CRC_3232

}

Netw

ork Information section (N

IT)Syntax

No.of bits

network_inform

ation_section(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12netw

ork_id16

reserved2

version_number

5current_next_indicator

1section_num

ber8

last_section number

8reserved_future_use

4netw

ork_descriptors_length12

for(i=0;i<

N;i+

+){

descriptor()}reserved_future_use

4transport_stream

_loop_length12

for(i=0;i<

N;i+

+){

transport_stream_id

16original_netw

ork_id16

reserved_future_use4

transport_descriptors_length12

for(j=0;j<

N;j+

+){

descriptor()}

}CRC_3232

}

Service description section (SDT)

SyntaxN

o.of bits

service_description_section(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12transport_stream

_id16

reserved2

version_number

5current_next_indicator

1section_num

ber8

last_section_number

8original_netw

ork_id16

reserved_future_use8

for(i=0;i<

N;i+

+){

service_id16

reserved_future_use6

EIT_schedule_flag1

EIT_present_following_flag

1running_status

3free_C

A_mode

1descriptors_loop_length

12for(j=

0;j<N

;j++

){descriptor()

}}C

RC

_3232

}

Bouquet association section (BAT)Syntax

No.of bits

bouquet_association_section(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12bouquet_id

16reserved

2version_num

ber5

current_next_indicator1

section_number

8last_section num

ber8

reserved_future_use4

bouquet_descriptors_length12

for(i=0;i<

N;i+

+){

descriptor()}reserved_future_use

4transport_stream

_loop_length12

for(i=0;i<

N;i+

+){

transport_stream_id

16original_netw

ork_id16

reserved_future_use4

transport_descriptors_length12

for(j=0;j<

N;j+

+){

descriptor()}

}CR

C_32

32}

Event Information Section (EIT)

SyntaxN

o.of bits

event_information_section(){

table_id8

section_syntax_indicator1

reserved_future_use1

reserved2

section_length12

service_id16

reserved2

version_number

5current_next_indicator

1section_num

ber8

last_section_number

8transport_stream

_id16

original_network_id

16segm

ent_last_section_number

8last_table_id

8 for(i=

0;i<N

;i++

){event_id

16start_tim

e40

duration24

running_status3

free_CA_m

ode1

descriptors_loop_length12

for(j=0;j<

N;j+

+){

descriptor()}

}CR

C_32

32}

Running status section (RST)

SyntaxN

o.of bitsrunning_status_section

(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12for(i=

0;i<N

;i++

){transport_stream

_id16

original_network_id

16service_id

16event_id

16reserved_future_use

5running_status

3}

}

Time offset section (TO

T)Syntax

No.of bits

time_offset_section

(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12U

TC_tim

e40

reserved4

descriptors_loop_length12

for(i=0;i<

N;i+

+){

descriptor()}C

RC

_3232

}

Stuffing section (ST)Syntax

No.of bits

stuffing_section(){

table_id8

section_syntax_indicator1

reserved_future_use1

reserved2

section_length12

for(i=0;i<

N;i+

+){

data_byte8

}}

Time and date section (TD

T)Syntax

No.of bits

time_date_section

(){table_id

8section_syntax_indicator

1reserved_future_use

1reserved

2section_length

12U

TC_tim

e40

}

PA

TN

ITN

IT

BA

T

SD

TS

DT

EIT

TD

T

RS

T

TO

T

ST

EIT

EIT

MP

EG

-2D

VB

DV

B

Ne

two

rkIn

form

atio

n

Bo

uq

ue

tA

sso

cia

tion

Se

rvic

eD

esc

riptio

n

Eve

nt

Info

rma

tion

Ru

nn

ing

Sta

tus

Tim

eO

ffse

t

Stu

ffing

(De

fine

d)

PID

=0x0000

(Mand

ato

ry)P

ID=0x0010

(Op

tional)

PID

=0x0010

PID

=0x0001

PID

=0x0011

PID

=0x0012

PID

=0x0014

PID

=0x0013

PID

=0x0014

PID

=0x0010

to 0

x0014

PID

=0x0012

PID

=0x0012

PID

=0x0011

PID

=0x0011

Actu

al tra

nsp

ort

stre

am

Oth

er tra

nsp

ort

stre

am

Actu

al tra

nsp

ort

stre

am

Tim

e &

Da

te

Oth

er tra

nsp

ort

stre

am

Actu

al tra

nsp

ort

stre

am

present/following

Actu

al tra

nsp

ort

stre

am

schedule

Oth

er tra

nsp

ort

stre

am

present/following

schedule

PID

=0

x10

to 0

x1F

FE

PID

=0x0002

CA

T

PM

T

TS

DT

Priv

ate

Se

ctio

nSyntax

No.of bits

private_section() {

table_id8

section_syntax_indicator1

private_indicator1

reserved2

private_section_length12

if(section_syntax_indicator==

‘0’){for(i=

0; i<N

; i++

) {private_data_byte

8}

}else {table_id_extension16

reserved2

version_number

5current_next_indicator

1section_num

ber8

last_section_number

8for(i=

0;i<private_section_length-9;i+

+) {

private_data_byte8

}CRC_3232

}}

Photo courtesy of NASA/JPL/Caltech