flv

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodecTypes = []av.CodecType{av.H264, av.AAC, av.SPEEX, av.H265}
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