avutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHandlers = &Handlers{}

DefaultHandlers default

Functions

func CopyFile

func CopyFile(dst av.Muxer, src av.Demuxer) (err error)

CopyFile CopyFile

func CopyPackets

func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)

CopyPackets CopyPackets

func Create

func Create(url string) (muxer av.MuxCloser, err error)

Create Create

func Open

func Open(url string) (demuxer av.DemuxCloser, err error)

Open Open

Types

type HandlerDemuxer

type HandlerDemuxer struct {
	av.Demuxer
	// contains filtered or unexported fields
}

HandlerDemuxer struct

func (*HandlerDemuxer) Close

func (hndl *HandlerDemuxer) Close() error

Close method

type HandlerMuxer

type HandlerMuxer struct {
	av.Muxer
	// contains filtered or unexported fields
}

HandlerMuxer struct

func (*HandlerMuxer) Close

func (hndl *HandlerMuxer) Close() (err error)

Close func

func (*HandlerMuxer) WriteHeader

func (hndl *HandlerMuxer) WriteHeader(streams []av.CodecData) (err error)

WriteHeader func

func (*HandlerMuxer) WriteTrailer

func (hndl *HandlerMuxer) WriteTrailer() (err error)

WriteTrailer func

type Handlers

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

Handlers struct

func (*Handlers) Add

func (hndl *Handlers) Add(fn func(*RegisterHandler))

Add func

func (*Handlers) Create

func (hndl *Handlers) Create(uri string) (muxer av.MuxCloser, err error)

Create Create

func (*Handlers) FindCreate

func (hndl *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error)

FindCreate FindCreate

func (*Handlers) NewAudioDecoderParam

func (hndl *Handlers) NewAudioDecoderParam(codec av.AudioCodecData) (dec av.AudioDecoder, err error)

NewAudioDecoderParam NewAudioDecoderParam

func (*Handlers) NewAudioEncoder

func (hndl *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, err error)

NewAudioEncoder NewAudioEncoder

func (*Handlers) Open

func (hndl *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error)

Open Open

type RegisterHandler

type RegisterHandler struct {
	Ext           string
	ReaderDemuxer func(io.Reader) av.Demuxer
	WriterMuxer   func(io.Writer) av.Muxer
	URLMuxer      func(string) (bool, av.MuxCloser, error)
	URLDemuxer    func(string) (bool, av.DemuxCloser, error)
	URLReader     func(string) (bool, io.ReadCloser, error)
	Probe         func([]byte) bool
	AudioEncoder  func(av.CodecType) (av.AudioEncoder, error)
	AudioDecoder  func(av.AudioCodecData) (av.AudioDecoder, error)
	ServerDemuxer func(string) (bool, av.DemuxCloser, error)
	ServerMuxer   func(string) (bool, av.MuxCloser, error)
	CodecTypes    []av.CodecType
}

RegisterHandler struct

Jump to

Keyboard shortcuts

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