Versions in this module Expand all Collapse all v1 v1.0.7 Jul 13, 2020 v1.0.6 Apr 26, 2020 v1.0.5 Apr 26, 2020 Changes in this version + var HEVC = MakeVideoCodecType(avCodecTypeMagic + 3) + var JPEG = MakeVideoCodecType(avCodecTypeMagic + 2) + type H265VideoCodecData interface + PPS func() []byte + SPS func() []byte + VPS func() []byte v1.0.4 Feb 26, 2020 v1.0.3 Feb 26, 2020 v1.0.2 Feb 26, 2020 v1.0.1 Feb 26, 2020 v1.0.0 Feb 26, 2020 Changes in this version + const Ch21 + const Ch2Point1 + const Ch3Point1 + const ChBackCenter + const ChBackLeft + const ChBackRight + const ChFrontCenter + const ChFrontLeft + const ChFrontRight + const ChLowFreq + const ChMono + const ChNr + const ChSideLeft + const ChSideRight + const ChStereo + const ChSurround + 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 H264 = MakeVideoCodecType(avCodecTypeMagic + 1) + var MP3 = MakeAudioCodecType(avCodecTypeMagic + 4) + var PCMA = MakeAudioCodecType(avCodecTypeMagic + 3) + var PCMU = MakeAudioCodecType(avCodecTypeMagic + 2) + var TEXT = CodecType(0) + 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 (frame AudioFrame) Concat(in AudioFrame) AudioFrame + func (frame AudioFrame) Duration() time.Duration + func (frame AudioFrame) HasSameFormat(other AudioFrame) bool + func (frame AudioFrame) Slice(start int, end int) (out AudioFrame) + type AudioResampler interface + Resample func(AudioFrame) (AudioFrame, error) + type ChannelLayout uint16 + func (layout ChannelLayout) Count() (n int) + func (layout 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 (ctype CodecType) CodecName() string + func (ctype CodecType) IsAudio() bool + func (ctype CodecType) IsVideo() bool + func (ctype CodecType) String() string + type DemuxCloser interface + Close func() error + type Demuxer interface + Streams func() ([]CodecData, error) + type H264VideoCodecData interface + PPS func() []byte + SPS func() []byte + type MPEG4AudioCodecData interface + MPEG4AudioConfigBytes func() []byte + type MuxCloser interface + Close func() error + type Muxer interface + WriteHeader func([]CodecData) error + WriteTrailer func() error + type Packet struct + CompositionTime time.Duration + Data []byte + 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 (format SampleFormat) BytesPerSample() int + func (format SampleFormat) IsPlanar() bool + func (format SampleFormat) String() string + type VideoCodecData interface + Height func() int + Width func() int