Versions in this module Expand all Collapse all v0 v0.0.1 Oct 30, 2019 Changes in this version + const B_FRAME + 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 I_FRAME + const P_FRAME + const S16 + const S16P + const S32 + const S32P + const U32 + const U8 + const U8P + var AAC = MakeAudioCodecType(avCodecTypeMagic + 1) + var H264 = MakeVideoCodecType(avCodecTypeMagic + 1) + var NELLYMOSER = MakeAudioCodecType(avCodecTypeMagic + 5) + var PCM_ALAW = MakeAudioCodecType(avCodecTypeMagic + 3) + var PCM_MULAW = MakeAudioCodecType(avCodecTypeMagic + 2) + var SPEEX = MakeAudioCodecType(avCodecTypeMagic + 4) + 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 + FrameType byte + Idx int8 + 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