Crate flvparse

Source
Expand description

§flvparse

A FLV format parsing library written in Rust with nom.

Structs§

AACAudioPacket
The tag data body part of audio FLV tag data whose SoundFormat is 10 – AAC.
AudioTag
The tag data part of audio FLV tag, including tag data header and tag data body.
AudioTagBody
The tag data body part of audio FLV tag data.
AudioTagHeader
The tag data header part of audio FLV tag data.
AvcVideoPacket
The tag data body part of video FLV tag data whose CodecID is 7 – AVC.
Error
default error type, only contains the error’ location and code
FlvFile
The FLV file structure, including header and body.
FlvFileBody
The body part of FLV file.
FlvFileHeader
The header part of FLV file.
FlvTag
The FLV tag has three types: script tag, audio tag and video tag. Each tag contains tag header and tag data. The structure of each type of tag header is the same.
FlvTagHeader
The tag header part of FLV tag.
ScriptDataDate
The ScriptDataDate is a kind of ScriptDataValue.
ScriptDataObjectProperty
The ScriptDataObjectProperty is the component of Object and ECMAArray, which are a kind of ScriptDataValue.
ScriptTag
The tag data part of script FLV tag, including name and value. The name is a ScriptDataValue enum whose type is String. The value is a ScriptDataValue enum whose type is ECMAArray.
VideoTag
The tag data part of video FLV tag, including tag data header and tag data body.
VideoTagBody
The tag data body part of video FLV tag data.
VideoTagHeader
The tag data header part of video FLV tag data.

Enums§

AACPacketType
The type of AAC packet.
AvcPacketType
The type of AVC packet.
CodecID
The code identifier of video.
ErrorKind
Indicates which parser returned an error
FlvTagData
The tag data part of FLV tag.
FlvTagType
The type of FLV tag.
FrameType
The type of video frame.
Needed
Contains information on needed data if a parser returned Incomplete
NomErr
The Err enum indicates the parser was not successful
ScriptDataValue
The ScriptDataValue enum.
SoundFormat
The audio format.
SoundRate
The audio sampling rate.
SoundSize
The size of each audio sample.
SoundType
The type of audio, including mono and stereo.

Functions§

aac_audio_packet
Parse AAC audio packet.
avc_video_packet
Parse AVC video packet.

Type Aliases§

IResult
Holds the result of parsing functions