Versions in this module Expand all Collapse all v0 v0.0.1 Dec 31, 2021 Changes in this version + const AAC_RAW + const AAC_SEQUENCE_HEADER + const AUDIO_TAG + const AVC_END_OF_SEQUENCE + const AVC_NALU + const AVC_SEQUENCE_HEADER + const DISPOSABLE_INTER_FRAME + const FLV_AUDIO_AAC + const FLV_AUDIO_ADPCM + const FLV_AUDIO_G711A + const FLV_AUDIO_G711U + const FLV_AUDIO_MP3 + const FLV_AUDIO_MP3_8K + const FLV_AUDIO_OPUS + const FLV_VIDEO_AV1 + const FLV_VIDEO_AVC + const FLV_VIDEO_HEVC + const FLV_VIDEO_SORENSON_H263 + const FLV_VIDEO_VP6 + const GENERATED_KEYFRAME + const INTER_FRAME + const KEY_FRAME + const SCRIPT_DATA_TAG + const SND_16_BIT + const SND_8BIT + const SND_MONO + const SND_STEREO + const VIDEO_INFO_COMMAND_FRAME + const VIDEO_TAG + func FLVWrite(tag Tag) (b []byte) + type AudioTag struct + AACPacketType uint8 + SoundData []byte + SoundFormat uint8 + SoundRate uint8 + SoundSize uint8 + SoundType uint8 + func ParseAudioTag(tb TagBase, b []byte) (audio *AudioTag, err error) + func (at *AudioTag) Data() (b []byte) + func (at *AudioTag) Marshal() (b []byte) + type FLV struct + func NewFLV(writer easyio.EasyWriter) *FLV + type FLVBody struct + type FLVHeader struct + TypeFlagsAudio bool + TypeFlagsVideo bool + Version int8 + type MetaTag struct + AudioChannels string + AudioCodecID float64 + AudioDataRate int + AudioSampleRate int + AudioSampleSize int + Author string + Company string + DisplayHeight string + DisplayWidth string + Duration int + Encoder string + FileSize int + FirstField string + Fps string + FrameRate int + Height int + Level string + Profile string + SecondField string + Stereo bool + Version string + VideoCodecID float64 + VideoDataRate float64 + Width int + func ParseMetaTag(tb TagBase, amf libamf.AMF, b []byte) (meta *MetaTag, err error) + func (mt *MetaTag) Data() (b []byte) + func (mt *MetaTag) Marshal() (b []byte) + type Tag interface + Data func() []byte + GetTagInfo func() *TagBase + Marshal func() []byte + type TagBase struct + DataSize uint32 + StreamID uint32 + TagType uint8 + TimeStamp uint32 + func (tb *TagBase) GetTagInfo() *TagBase + type VideoTag struct + AVCPacketType uint8 + CodecID uint8 + Cts uint32 + FrameType uint8 + VideoData []byte + func ParseVideoTag(tb TagBase, b []byte) (video *VideoTag, err error) + func (vt *VideoTag) Data() (b []byte) + func (vt *VideoTag) Marshal() (b []byte)