flv

package
v0.0.0-...-a32abf6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAvcEndSEQ = fmt.Errorf("avc end sequence")
)

Functions

This section is empty.

Types

type Demuxer

type Demuxer struct {
}

func NewDemuxer

func NewDemuxer() *Demuxer

func (*Demuxer) Demux

func (d *Demuxer) Demux(p *av.Packet) error

func (*Demuxer) DemuxH

func (d *Demuxer) DemuxH(p *av.Packet) error

type FLVWriter

type FLVWriter struct {
	Uid string
	av.RWBaser
	// contains filtered or unexported fields
}

func NewFLVWriter

func NewFLVWriter(app, title, url string, ctx *os.File) *FLVWriter

func (*FLVWriter) Close

func (writer *FLVWriter) Close(error)

func (*FLVWriter) Info

func (writer *FLVWriter) Info() (ret av.Info)

func (*FLVWriter) Wait

func (writer *FLVWriter) Wait()

func (*FLVWriter) Write

func (writer *FLVWriter) Write(p *av.Packet) error

type FlvDvr

type FlvDvr struct{}

func (*FlvDvr) GetWriter

func (f *FlvDvr) GetWriter(info av.Info) av.WriteCloser

type Tag

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

func (*Tag) AACPacketType

func (tag *Tag) AACPacketType() uint8

func (*Tag) CodecID

func (tag *Tag) CodecID() uint8

func (*Tag) CompositionTime

func (tag *Tag) CompositionTime() int32

func (*Tag) IsKeyFrame

func (tag *Tag) IsKeyFrame() bool

func (*Tag) IsSeq

func (tag *Tag) IsSeq() bool

func (*Tag) ParseMediaTagHeader

func (tag *Tag) ParseMediaTagHeader(b []byte, isVideo bool) (n int, err error)

ParseMediaTagHeader, parse video, audio, tag header

func (*Tag) SoundFormat

func (tag *Tag) SoundFormat() uint8

Jump to

Keyboard shortcuts

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