Versions in this module Expand all Collapse all v0 v0.0.8 Apr 1, 2019 Changes in this version + const AAC_RAW + const AAC_SEQHDR + const AVC_EOS + const AVC_NALU + const AVC_SEQHDR + const FILE_HAS_AUDIO + const FILE_HAS_VIDEO + const FRAME_INTER + const FRAME_KEY + const FileHeaderLength + const MaxTagSubHeaderLength + const SOUND_11Khz + const SOUND_16BIT + const SOUND_22Khz + const SOUND_44Khz + const SOUND_5_5Khz + const SOUND_8BIT + const SOUND_AAC + const SOUND_ALAW + const SOUND_MONO + const SOUND_MP3 + const SOUND_MULAW + const SOUND_NELLYMOSER + const SOUND_NELLYMOSER_16KHZ_MONO + const SOUND_NELLYMOSER_8KHZ_MONO + const SOUND_SPEEX + const SOUND_STEREO + const TAG_AUDIO + const TAG_SCRIPTDATA + const TAG_VIDEO + const TagHeaderLength + const TagTrailerLength + const VIDEO_H264 + func FillAMF0Val(b []byte, _val interface{}) (n int) + func FillFileHeader(b []byte, flags uint8) (n int) + func FillTagHeader(b []byte, tagtype uint8, datalen int, ts int32) (n int) + func FillTagTrailer(b []byte, datalen int) (n int) + func LenAMF0Val(_val interface{}) (n int) + func ParseAMF0Val(b []byte) (val interface{}, n int, err error) + func ParseFileHeader(b []byte) (flags uint8, skip int, err error) + func TimeToTs(tm time.Duration) int32 + func TsToTime(ts int32) time.Duration + func WriteTag(w io.Writer, tag Tag, ts int32, b []byte) (err error) + type AMF0ParseError struct + Message string + Next *AMF0ParseError + Offset int + func (self *AMF0ParseError) Error() string + type AMFArray []interface + type AMFECMAArray map[string]interface + type AMFMap map[string]interface + type Tag struct + AACPacketType uint8 + AVCPacketType uint8 + CodecID uint8 + CompositionTime int32 + Data []byte + FrameType uint8 + SoundFormat uint8 + SoundRate uint8 + SoundSize uint8 + SoundType uint8 + Type uint8 + func ParseTagHeader(b []byte) (tag Tag, ts int32, datalen int, err error) + func ReadTag(r io.Reader, b []byte) (tag Tag, ts int32, err error) + func (self *Tag) ParseHeader(b []byte) (n int, err error) + func (self Tag) ChannelLayout() av.ChannelLayout + func (self Tag) FillHeader(b []byte) (n int)