Module flv

Source
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:

  1. 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)
  2. 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§

EncryptionHeader
Flv
The FLV container. This holds just 2 elements:
NotFlvContainer
An error that specified file isn’t the FLV format.
UnknownTag
An error that some tag type is unknown/undefined.

Enums§

FilterName
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.