Documentation ¶
Overview ¶
Package transcode implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Debug type
Functions ¶
This section is empty.
Types ¶
type Demuxer ¶
Demuxer struct Wrap transcoder and origin Demuxer into new Demuxer. Read this Demuxer will do transcoding automatically.
func (*Demuxer) ReadPacket ¶
ReadPacket func
type Muxer ¶
type Muxer struct { av.Muxer // origin Muxer Options // transcode options // contains filtered or unexported fields }
Muxer struct Wrap transcoder and origin Muxer into new Muxer. Write to new Muxer will do transcoding automatically.
func (*Muxer) WriteHeader ¶
WriteHeader func
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, ) }
Options struct
type Transcoder ¶
type Transcoder struct {
// contains filtered or unexported fields
}
Transcoder struct
func NewTranscoder ¶
func NewTranscoder(streams []av.CodecData, options Options) (_self *Transcoder, err error)
NewTranscoder func
func (*Transcoder) Close ¶
func (instance *Transcoder) Close() (err error)
Close transcoder, close related encoder and decoders.
Click to show internal directories.
Click to hide internal directories.