Versions in this module Expand all Collapse all v0 v0.0.27 Feb 7, 2024 v0.0.26 Feb 1, 2024 v0.0.25 Jan 29, 2024 v0.0.24 Jan 22, 2024 v0.0.23 Jan 10, 2024 v0.0.22 Jan 8, 2024 v0.0.21 Nov 20, 2023 v0.0.20 Mar 11, 2023 v0.0.19 Jul 16, 2022 v0.0.18 Jul 4, 2022 v0.0.17 Jun 14, 2022 Changes in this version + var MJPEG = MakeVideoCodecType(avCodecTypeMagic + 7) v0.0.16 Jun 5, 2022 Changes in this version + const CH_2POINT1 + const CH_2_1 + const CH_3POINT1 + const CH_BACK_CENTER + const CH_BACK_LEFT + const CH_BACK_RIGHT + const CH_FRONT_CENTER + const CH_FRONT_LEFT + const CH_FRONT_RIGHT + const CH_LOW_FREQ + const CH_MONO + const CH_NR + const CH_SIDE_LEFT + const CH_SIDE_RIGHT + const CH_STEREO + const CH_SURROUND + const DBL + const DBLP + const FLT + const FLTP + const S16 + const S16P + const S32 + const S32P + const U32 + const U8 + const U8P + var AAC = MakeAudioCodecType(avCodecTypeMagic + 1) + var AV1 = MakeVideoCodecType(avCodecTypeMagic + 6) + var H264 = MakeVideoCodecType(avCodecTypeMagic + 1) + var H265 = MakeVideoCodecType(avCodecTypeMagic + 2) + var JPEG = MakeVideoCodecType(avCodecTypeMagic + 3) + var NELLYMOSER = MakeAudioCodecType(avCodecTypeMagic + 5) + var OPUS = MakeAudioCodecType(avCodecTypeMagic + 7) + var PCM = MakeAudioCodecType(avCodecTypeMagic + 6) + var PCM_ALAW = MakeAudioCodecType(avCodecTypeMagic + 3) + var PCM_MULAW = MakeAudioCodecType(avCodecTypeMagic + 2) + var SPEEX = MakeAudioCodecType(avCodecTypeMagic + 4) + var VP8 = MakeVideoCodecType(avCodecTypeMagic + 4) + var VP9 = MakeVideoCodecType(avCodecTypeMagic + 5) + type AudioCodecData interface + ChannelLayout func() ChannelLayout + PacketDuration func([]byte) (time.Duration, error) + SampleFormat func() SampleFormat + SampleRate func() int + type AudioDecoder interface + Close func() + Decode func([]byte) (bool, AudioFrame, error) + type AudioEncoder interface + Close func() + CodecData func() (AudioCodecData, error) + Encode func(AudioFrame) ([][]byte, error) + GetOption func(string, interface{}) error + SetBitrate func(int) error + SetChannelLayout func(ChannelLayout) error + SetOption func(string, interface{}) error + SetSampleFormat func(SampleFormat) error + SetSampleRate func(int) error + type AudioFrame struct + ChannelLayout ChannelLayout + Data [][]byte + SampleCount int + SampleFormat SampleFormat + SampleRate int + func (self AudioFrame) Concat(in AudioFrame) (out AudioFrame) + func (self AudioFrame) Duration() time.Duration + func (self AudioFrame) HasSameFormat(other AudioFrame) bool + func (self AudioFrame) Slice(start int, end int) (out AudioFrame) + type AudioResampler interface + Resample func(AudioFrame) (AudioFrame, error) + type ChannelLayout uint16 + func (self ChannelLayout) Count() (n int) + func (self ChannelLayout) String() string + type CodecData interface + Type func() CodecType + type CodecType uint32 + func MakeAudioCodecType(base uint32) (c CodecType) + func MakeVideoCodecType(base uint32) (c CodecType) + func (self CodecType) IsAudio() bool + func (self CodecType) IsVideo() bool + func (self CodecType) String() string + type DemuxCloser interface + Close func() error + type Demuxer interface + Streams func() ([]CodecData, error) + type MuxCloser interface + Close func() error + type Muxer interface + WriteHeader func([]CodecData) error + WriteTrailer func() error + type Packet struct + CompositionTime time.Duration + Data []byte + Duration time.Duration + Idx int8 + IsKeyFrame bool + Time time.Duration + type PacketReader interface + ReadPacket func() (Packet, error) + type PacketWriter interface + WritePacket func(Packet) error + type SampleFormat uint8 + func (self SampleFormat) BytesPerSample() int + func (self SampleFormat) IsPlanar() bool + func (self SampleFormat) String() string + type VideoCodecData interface + Height func() int + Width func() int