Please enable JavaScript.
Coggle requires JavaScript to display documents.
FLV (FLV Header(9) (Signature(3) "FLV", Version( UI8 ),…
FLV
FLV Header(9)
Signature(3)
"FLV"
Version( UI8 )
TypeFlagsReserved( UB[5] )
TypeFlagsAudio( UB[1] )
TypeFlagsReserved( UB[1] )
TypeFlagsVideo( UB[1])
DataOffset( UI32 )
FLV body
PreviousTagSize( UI32 )
FLV Tag
Tag Header( 11 )
TagType( UB[5] )
18 = script data
9 = video
8 = audio
DataSize( UI24 )
Timestamp( UI24 )
TimestampExtended( UI 8 )
StreamID( UI24 )
Tag Body
AudioTag
AudioTagHeader
SoundFormat( UB[4] )
SoundRate( UB[2] )
SoundSize( UB[1] )
SoundType( UB[1] )
IF SoundFormat == 10 AACPacketType( UI8 )
SoundData
VideoTag
VideoTagHeader
Frame Type ( UB[4] )
CodecID ( UB [4] )
AVCPacketType IF CodecID == 7 ( UI8 )
CompositionTime IF CodecID == 7 ( SI24 )
VideoTagBody
IF AVCPacketType == 0
AVCDecoderConfigurationRecord
configurationVersion ( UI8 )
AVCProfileIndication ( UI8 )
profile_compatibility ( UI8 )
AVCLevelIndication ( UI8 )
lengthSizeMinusOne - 0xff( UI8 )
sps nums - 0xe1( UI8 )
sps data length ( UI32 )
sps data ( N )
pps nums ( UI8 )
pps data length ( UI16 )
pps data ( n )
IF AVCPacketType == 1
One or more NALUs (Full frames are required)
AVCC 封装
NALU size ( UI32)
NALU data
ScriptTag
ScriptTagHeader
Type ( UI8 )
ScriptDataValue