Documentation
¶
Overview ¶
avcodec is roughly a wrapper around FFmpeg's libavcodec library, which provides encoding, decoding and transcoding of audio and video streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
func NewDecodingCodec ¶
NewDecodingCodec returns a decoder by name. Options for decoding can be passed. Call Close() to release the codec context. Codec options are listed at <https://ffmpeg.org/ffmpeg-codecs.html>
func NewEncodingCodec ¶
NewEncodingCodec returns an encoder by name. Options for encoding can be passed. Call Close() to release the codec. Codec options are listed at <https://ffmpeg.org/ffmpeg-codecs.html>
func (*Codec) MarshalJSON ¶
type EncodingContext ¶
type EncodingContext struct {
// contains filtered or unexported fields
}
type Opt ¶
type Opt func(*opt) error
func WithChannelLayout ¶
func WithFrameRate ¶
func WithFrameSize ¶
func WithPixelFormat ¶
func WithSampleFormat ¶
func WithSampleRate ¶
Click to show internal directories.
Click to hide internal directories.