flv

package
v0.0.0-...-7ec3d47 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewFlv

func NewFlv(handler av.Handler, info av.Info)

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 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) ParseMeidaTagHeader

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

ParseMeidaTagHeader, 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