flv

package
v0.0.0-...-05a4ffb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: MIT Imports: 11 Imported by: 127

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodecTypes = []av.CodecType{av.H264, av.AAC, av.SPEEX}
View Source
var MaxProbePacketCount = 20

Functions

func CodecDataToTag

func CodecDataToTag(stream av.CodecData) (_tag flvio.Tag, ok bool, err error)

func Handler

func Handler(h *avutil.RegisterHandler)

func NewMetadataByStreams

func NewMetadataByStreams(streams []av.CodecData) (metadata flvio.AMFMap, err error)

func PacketToTag

func PacketToTag(pkt av.Packet, stream av.CodecData) (tag flvio.Tag, timestamp int32)

Types

type Demuxer

type Demuxer struct {
	// contains filtered or unexported fields
}

func NewDemuxer

func NewDemuxer(r io.Reader) *Demuxer

func (*Demuxer) ReadPacket

func (self *Demuxer) ReadPacket() (pkt av.Packet, err error)

func (*Demuxer) Streams

func (self *Demuxer) Streams() (streams []av.CodecData, err error)

type Muxer

type Muxer struct {
	// contains filtered or unexported fields
}

func NewMuxer

func NewMuxer(w io.Writer) *Muxer

func NewMuxerWriteFlusher

func NewMuxerWriteFlusher(w writeFlusher) *Muxer

func (*Muxer) WriteHeader

func (self *Muxer) WriteHeader(streams []av.CodecData) (err error)

func (*Muxer) WritePacket

func (self *Muxer) WritePacket(pkt av.Packet) (err error)

func (*Muxer) WriteTrailer

func (self *Muxer) WriteTrailer() (err error)

type Prober

type Prober struct {
	HasAudio, HasVideo             bool
	GotAudio, GotVideo             bool
	VideoStreamIdx, AudioStreamIdx int
	PushedCount                    int
	Streams                        []av.CodecData
	CachedPkts                     []av.Packet
}

func (*Prober) CacheTag

func (self *Prober) CacheTag(_tag flvio.Tag, timestamp int32)

func (*Prober) Empty

func (self *Prober) Empty() bool

func (*Prober) PopPacket

func (self *Prober) PopPacket() av.Packet

func (*Prober) Probed

func (self *Prober) Probed() (ok bool)

func (*Prober) PushTag

func (self *Prober) PushTag(tag flvio.Tag, timestamp int32) (err error)

func (*Prober) TagToPacket

func (self *Prober) TagToPacket(tag flvio.Tag, timestamp int32) (pkt av.Packet, ok bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL