Documentation
¶
Overview ¶
Package transcoder implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Functions ¶
This section is empty.
Types ¶
type Demuxer ¶
Wrap transcoder and origin Demuxer into new Demuxer. Read this Demuxer will do transcoding automatically.
type Muxer ¶
type Muxer struct {
av.Muxer // origin Muxer
Options // transcode options
// contains filtered or unexported fields
}
Wrap transcoder and origin Muxer into new Muxer. Write to new Muxer will do transcoding automatically.
type Options ¶
type Options struct {
// check if transcode is needed, and create the AudioDecoder and AudioEncoder.
FindAudioDecoderEncoder func(codec av.AudioCodecData, i int) (
need bool, dec av.AudioDecoder, enc av.AudioEncoder, err error,
)
}
type Transcoder ¶
type Transcoder struct {
// contains filtered or unexported fields
}
func NewTranscoder ¶
func NewTranscoder(streams []av.CodecData, options Options) (_self *Transcoder, err error)
func (*Transcoder) Close ¶
func (self *Transcoder) Close() (err error)
Close transcoder, close related encoder and decoders.
Click to show internal directories.
Click to hide internal directories.