Expand description
§flvparse
A FLV format parsing library written in Rust with nom.
Structs§
- AACAudio
Packet - The
tag data body
part ofaudio
FLV tag data whoseSoundFormat
is 10 – AAC. - Audio
Tag - The tag data part of
audio
FLV tag, includingtag data header
andtag data body
. - Audio
TagBody - The
tag data body
part ofaudio
FLV tag data. - Audio
TagHeader - The
tag data header
part ofaudio
FLV tag data. - AvcVideo
Packet - The
tag data body
part ofvideo
FLV tag data whoseCodecID
is 7 – AVC. - Error
- default error type, only contains the error’ location and code
- FlvFile
- The FLV file structure, including header and body.
- FlvFile
Body - The body part of FLV file.
- FlvFile
Header - The header part of FLV file.
- FlvTag
- The FLV tag has three types:
script tag
,audio tag
andvideo tag
. Each tag contains tag header and tag data. The structure of each type of tag header is the same. - FlvTag
Header - The tag header part of FLV tag.
- Script
Data Date - The
ScriptDataDate
is a kind ofScriptDataValue
. - Script
Data Object Property - The
ScriptDataObjectProperty
is the component ofObject
andECMAArray
, which are a kind ofScriptDataValue
. - Script
Tag - The tag data part of
script
FLV tag, includingname
andvalue
. Thename
is aScriptDataValue
enum whose type isString
. Thevalue
is aScriptDataValue
enum whose type isECMAArray
. - Video
Tag - The tag data part of
video
FLV tag, includingtag data header
andtag data body
. - Video
TagBody - The
tag data body
part ofvideo
FLV tag data. - Video
TagHeader - The
tag data header
part ofvideo
FLV tag data.
Enums§
- AACPacket
Type - The type of AAC packet.
- AvcPacket
Type - The type of AVC packet.
- CodecID
- The code identifier of video.
- Error
Kind - Indicates which parser returned an error
- FlvTag
Data - The tag data part of FLV tag.
- FlvTag
Type - The type of FLV tag.
- Frame
Type - 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 - Script
Data Value - The
ScriptDataValue
enum. - Sound
Format - The audio format.
- Sound
Rate - The audio sampling rate.
- Sound
Size - The size of each audio sample.
- Sound
Type - 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