Documentation ¶
Index ¶
- Variables
- func CopyFile(dst av.Muxer, src av.Demuxer) (err error)
- func CopyFileFromKeyframe(dst av.Muxer, src av.Demuxer, videoIdx int8) (err error)
- func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)
- func CopyPacketsFromKeyframe(dst av.PacketWriter, src av.PacketReader, videoIdx int8) (err error)
- func Create(url string) (muxer av.MuxCloser, err error)
- func Open(ctx context.Context, url string, withBackChannel bool) (demuxer av.DemuxCloser, err error)
- type HandlerDemuxer
- type HandlerMuxer
- type Handlers
- func (self *Handlers) Add(fn func(*RegisterHandler))
- func (self *Handlers) Create(uri string) (muxer av.MuxCloser, err error)
- func (self *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error)
- func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDecoder, err error)
- func (self *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, err error)
- func (self *Handlers) Open(ctx context.Context, uri string, withBackChannel bool) (demuxer av.DemuxCloser, err error)
- type RegisterHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHandlers = &Handlers{}
Functions ¶
func CopyFileFromKeyframe ¶ added in v1.0.14
CopyFileFromKeyframe acts like CopyFile but uses CopyPacketsFromKeyframe to copy the video stream only after receiving a key frame
func CopyPackets ¶
func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)
func CopyPacketsFromKeyframe ¶ added in v1.0.14
func CopyPacketsFromKeyframe(dst av.PacketWriter, src av.PacketReader, videoIdx int8) (err error)
CopyPacketsFromKeyframe copies packets from src to dst, but start copying video packets only after receiving a first keyframe
Types ¶
type HandlerDemuxer ¶
func (*HandlerDemuxer) Close ¶
func (self *HandlerDemuxer) Close() error
type HandlerMuxer ¶
func (*HandlerMuxer) Close ¶
func (self *HandlerMuxer) Close() (err error)
func (*HandlerMuxer) WriteHeader ¶
func (self *HandlerMuxer) WriteHeader(streams []av.CodecData) (err error)
func (*HandlerMuxer) WriteTrailer ¶
func (self *HandlerMuxer) WriteTrailer() (err error)
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func (*Handlers) Add ¶
func (self *Handlers) Add(fn func(*RegisterHandler))
func (*Handlers) FindCreate ¶
func (*Handlers) NewAudioDecoder ¶
func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDecoder, err error)
func (*Handlers) NewAudioEncoder ¶
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) (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 }
Click to show internal directories.
Click to hide internal directories.