Versions in this module Expand all Collapse all v0 v0.0.18 Jul 6, 2022 Changes in this version + var CodecTypes = []av.CodecType + var MaxProbePacketCount = 20 + func CodecDataToTag(stream av.CodecData) (_tag flvio.Tag, ok bool, err error) + func Handler(h *avutil.RegisterHandler) + func NewMetadataByStreams(streams []av.CodecData) (metadata flvio.AMFMap, err error) + func PacketToTag(pkt av.Packet, stream av.CodecData) (tag flvio.Tag, timestamp int32) + type Demuxer struct + func NewDemuxer(r io.Reader) *Demuxer + func (self *Demuxer) ReadPacket() (pkt av.Packet, err error) + func (self *Demuxer) Streams() (streams []av.CodecData, err error) + type Muxer struct + func NewMuxer(w io.Writer) *Muxer + func NewMuxerWriteFlusher(w writeFlusher) *Muxer + func (self *Muxer) WriteHeader(streams []av.CodecData) (err error) + func (self *Muxer) WritePacket(pkt av.Packet) (err error) + func (self *Muxer) WriteTrailer() (err error) + type Prober struct + AudioStreamIdx int + CachedPkts []av.Packet + GotAudio bool + GotVideo bool + HasAudio bool + HasVideo bool + PushedCount int + Streams []av.CodecData + VideoStreamIdx int + func (self *Prober) CacheTag(_tag flvio.Tag, timestamp int32) + func (self *Prober) Empty() bool + func (self *Prober) PopPacket() av.Packet + func (self *Prober) Probed() (ok bool) + func (self *Prober) PushTag(tag flvio.Tag, timestamp int32) (err error) + func (self *Prober) TagToPacket(tag flvio.Tag, timestamp int32) (pkt av.Packet, ok bool)