Expand description
§The FLV File Format
In RTMP, Both of the client and the server send/receive actual multi media data as the FLV file format. Its format consists of:
- FLV header
- Signature (“FLV”)
- Version (8 bits)
- Reserved (5 bits)
- Whether some audio data is contained (1 bit)
- Reserved (1 bit)
- Whether some video data is contained (1 bit)
- Offset to FLV data (that is, a size of this header = 9) (32 bits)
- FLV file body
- Previous Tag Size (32 bits. this of the first is 0)
- FLV Tag (arbitrary size)
Note the FLV header is skipped by almost RTMP tools.
§FLV Tag
FLV Tag is a part of actual FLV bodies. FLV Tag consists of:
Modules§
- tags
- The FLV tags
Structs§
- Encryption
Header - Flv
- The FLV container. This holds just 2 elements:
- NotFlv
Container - An error that specified file isn’t the FLV format.
- Unknown
Tag - An error that some tag type is unknown/undefined.
Enums§
- Filter
Name - Patterns of the FilterName field. Currently, FilterName consists of:
Functions§
- not_
flv_ container - A utility function of constructing a
NotFlvContainer
error. - unknown_
tag - A utility function of constructing an
UnknownTag
error.