joy4: github.com/nareix/joy4/format/flv Index | Files | Directories

package flv

import "github.com/nareix/joy4/format/flv"

Index

Package Files

flv.go

Variables

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

func CodecDataToTag Uses

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

func Handler Uses

func Handler(h *avutil.RegisterHandler)

func NewMetadataByStreams Uses

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

func PacketToTag Uses

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

type Demuxer Uses

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

func NewDemuxer Uses

func NewDemuxer(r io.Reader) *Demuxer

func (*Demuxer) ReadPacket Uses

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

func (*Demuxer) Streams Uses

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

type Muxer Uses

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

func NewMuxer Uses

func NewMuxer(w io.Writer) *Muxer

func NewMuxerWriteFlusher Uses

func NewMuxerWriteFlusher(w writeFlusher) *Muxer

func (*Muxer) WriteHeader Uses

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

func (*Muxer) WritePacket Uses

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

func (*Muxer) WriteTrailer Uses

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

type Prober Uses

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

func (*Prober) CacheTag Uses

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

func (*Prober) Empty Uses

func (self *Prober) Empty() bool

func (*Prober) PopPacket Uses

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

func (*Prober) Probed Uses

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

func (*Prober) PushTag Uses

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

func (*Prober) TagToPacket Uses

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

Directories

PathSynopsis
flvio

Package flv imports 11 packages (graph) and is imported by 16 packages. Updated 2017-11-05. Refresh now. Tools for package owners.