flv

package
v0.0.0-...-e172d51 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAvcEndSEQ = errors.New("avc end sequence")
)

Functions

This section is empty.

Types

type Demuxer

type Demuxer struct {
}

func NewDemuxer

func NewDemuxer() *Demuxer

func (*Demuxer) Demux

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

func (*Demuxer) DemuxH

func (self *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 (self *FLVWriter) Close(error)

func (*FLVWriter) Info

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

func (*FLVWriter) Write

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

type FlvDvr

type FlvDvr struct {
	Dir string
}

func NewFlvDvr

func NewFlvDvr(dir string) *FlvDvr

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 (self *Tag) AACPacketType() uint8

func (*Tag) CodecID

func (self *Tag) CodecID() uint8

func (*Tag) CompositionTime

func (self *Tag) CompositionTime() int32

func (*Tag) IsKeyFrame

func (self *Tag) IsKeyFrame() bool

func (*Tag) IsSeq

func (self *Tag) IsSeq() bool

func (*Tag) ParseMeidaTagHeader

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

ParseMeidaTagHeader, parse video, audio, tag header

func (*Tag) SoundFormat

func (self *Tag) SoundFormat() uint8

Jump to

Keyboard shortcuts

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