TS流学习笔记
Program SpecificInformation(PSI)可以归属于如下四张表:
1)Program Association Table(PAT)
2)TS Program Map Table(PMT)
3)Network Information Table(NIT)
4)Conditional Access Table(CAT)
Transport Stream Packet 字段定义
Syn_byte
固定8 bits ,值为0x47
Transport_error_indicator
为1bit标志位,置1说明关联的Transport Stream Packet种至少有1 bit无法修复的错误存在。除非错误得到修正,否则不能置0
Payload_unit_start_indicator
为1bit标志位,Tranport Stream packet装载着PES包或者PSI数据时含义有所不同。
对于payload装载的是PES包:1意味着当前Transport Stream Packet装载的PES包(有且仅有一个PES包)的起始。
对于payload装载的是PSI数据:1意味着payload的第一个字节为pointer_field.如果transport stream packet没有装载PSI的第一个字节,该bit置0,意味着没有pointer_field 在payload中。
对于Null packets,payload_unit_start_indicator必须置0,意味着Transport Stream Packet只是装载着private data
Transport_priority
传输优先级标志位,置1意味着Transport Stream Packet 所包含的数据包被同PID且没有置1的数据包优先级高。
PID
13bit,指示payload中的数据类型
Transport_scrambling_control
加密标志,共2bit
Adaptation_field_control
指示transport stream packet header之后跟的是调整字段还是负载
ITU-T Rec. H.222.0 | ISO/IEC 13818-1 decoders shall discard Transport Stream packets with the adaptation_field_control field set to a value of '00'. In the caseof a null packet the value of the adaptation_field_control shall be set to'01'.
continuity_counter
4bit计数器, 当同一个PID条件下,随着transport stream packet增加。但是当adaptation_field_control 等于00或10时候不能增加。
Data_byte
PID指定的数据PES或者PSI,数据量为184减去adaptation_field()
adaptation_field
adaptation_field各个字段定义未完待续......