FLV Tag Definition
The FLV tag contains metadata for audio, video, or scripts, optional encryption metadata, and the payload.
FLV Tag
**FLV TAG Part 1 in video_file_format_spec_v10_1.pdf**
**FLV TAG Part 2 in video_file_format_spec_v10_1.pdf**
Tag Header
- TagType
8 = audio
9 = video
18 = script data
DataSize
消息的长度,从StreamID
之后到tag
结尾的字节之和.Timestamp
时间戳.
单位是毫秒.
该值为相对时间戳,即相对于第一个tag的时间戳的差值.
第一个tag的时间戳总是为0.
对于脚本型的tag总是0.-
TimestampExtended
和Timestamp
构成一个32bit
的时间戳.
**TimestampExtended和Timestamp共同构成32bit时间戳** StreamID
总是为0
.
TagData
Video Tag Data
References
video_file_format_spec_v10_1.pdf