也叫 AVCDecoderConfigurationRecord

FLV [FLV头] [ScriptTag] [AudioTag1] [VideoTag1【这里】]…… [AudioTagN] [VideoTagN]

格式

标记 0 = AVC sequence header, 1 = AVC raw data (1 Byte)

信息 位数
configurationVersion 8 bit
AVCProfileIndication 8 bit
profile_compatibility 8 bit
AVCLevelIndication 8 bit
reserved 6 bit
lengthSizeMinusOne 2 bit
reserved 3 byte
numOfSequenceParameterSets 5 bit
sequenceParameterSetLength 1 16 bit
sequenceParameterSetNALUnit 1 8 * sequenceParameterSetLength bit
…… ……
sequenceParameterSetLength N 16 bit
sequenceParameterSetNALUnit N 8 * sequenceParameterSetLength bit
numOfPictureParameterSets 8 bit
pictureParameterSetLength 1 16 bit
pictureParameterSetNALUnit 1 8 * pictureParameterSetLength bit
…… ……
pictureParameterSetLength M 16 bit
pictureParameterSetNALUnit M 8 * pictureParameterSetLength bit

例子

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
09 0000 2b00 0000 0000 0000 // FLV Tag Header
1700 0000 00 // Video Tag Header
01 42c0 1fff
~~ // version 1
~~ // 42 = 66 profile_idc = Progressive High profile
~~ // profile_compatibility = 192
~~ // level = 31/10 = 3.1
~~// lengthSizeMinusOne = 1111 1111 = 3 lengthSize =4
e100 1667 42c0 1fda 0140 16e8 4000 0003 005d cd65 0003 c60c a8
~~ // 1110 0001 1个sps
~~ ~~ sps 长度 0x16 = 22
~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~ // sps
01 0005 68ce 3c80 00
~~ // 0000 0001 1个pps
~~~~ pps 长度 0x05 = 5
~~~~ ~~~~ ~~ //pps