Version: v1.0.7 Latest Latest

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 9 Imported by: 0




This section is empty.


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

CodecTypes var

View Source
var MaxProbePacketCount = 20

MaxProbePacketCount const


func CodecDataToTag

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

CodecDataToTag type

func Handler

func Handler(h *avutil.RegisterHandler)

Handler type

func NewMetadataByStreams

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

NewMetadataByStreams func

func PacketToTag

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

PacketToTag type


type Demuxer

type Demuxer struct {
	// contains filtered or unexported fields

Demuxer type

func NewDemuxer

func NewDemuxer(r io.Reader) *Demuxer

NewDemuxer type

func (*Demuxer) ReadPacket

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

ReadPacket type

func (*Demuxer) Streams

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

Streams type

type Muxer

type Muxer struct {
	// contains filtered or unexported fields

Muxer type

func NewMuxer

func NewMuxer(w io.Writer) *Muxer

NewMuxer type

func NewMuxerWriteFlusher

func NewMuxerWriteFlusher(w writeFlusher) *Muxer

NewMuxerWriteFlusher type

func (*Muxer) WriteHeader

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

WriteHeader type

func (*Muxer) WritePacket

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

WritePacket type

func (*Muxer) WriteTrailer

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

WriteTrailer type

type Prober

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

Prober struct

func (*Prober) CacheTag

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

CacheTag func

func (*Prober) Empty

func (inst *Prober) Empty() bool

Empty type

func (*Prober) PopPacket

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

PopPacket type

func (*Prober) Probed

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

Probed type

func (*Prober) PushTag

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

PushTag func

func (*Prober) TagToPacket

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

TagToPacket type

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL