joy4: github.com/nareix/joy4/cgo/ffmpeg Index | Files

package ffmpeg

import "github.com/nareix/joy4/cgo/ffmpeg"

Index

Package Files

audio.go ffmpeg.go video.go

Constants

const (
    QUIET   = int(C.AV_LOG_QUIET)
    PANIC   = int(C.AV_LOG_PANIC)
    FATAL   = int(C.AV_LOG_FATAL)
    ERROR   = int(C.AV_LOG_ERROR)
    WARNING = int(C.AV_LOG_WARNING)
    INFO    = int(C.AV_LOG_INFO)
    VERBOSE = int(C.AV_LOG_VERBOSE)
    DEBUG   = int(C.AV_LOG_DEBUG)
    TRACE   = int(C.AV_LOG_TRACE)
)

func AudioCodecHandler Uses

func AudioCodecHandler(h *avutil.RegisterHandler)

func HasDecoder Uses

func HasDecoder(name string) bool

func HasEncoder Uses

func HasEncoder(name string) bool

func SetLogLevel Uses

func SetLogLevel(level int)

type AudioDecoder Uses

type AudioDecoder struct {
    ChannelLayout av.ChannelLayout
    SampleFormat  av.SampleFormat
    SampleRate    int
    Extradata     []byte
    // contains filtered or unexported fields
}

func NewAudioDecoder Uses

func NewAudioDecoder(codec av.AudioCodecData) (dec *AudioDecoder, err error)

func (*AudioDecoder) Close Uses

func (self *AudioDecoder) Close()

func (*AudioDecoder) Decode Uses

func (self *AudioDecoder) Decode(pkt []byte) (gotframe bool, frame av.AudioFrame, err error)

func (*AudioDecoder) Setup Uses

func (self *AudioDecoder) Setup() (err error)

type AudioEncoder Uses

type AudioEncoder struct {
    SampleRate       int
    Bitrate          int
    ChannelLayout    av.ChannelLayout
    SampleFormat     av.SampleFormat
    FrameSampleCount int
    // contains filtered or unexported fields
}

func NewAudioEncoderByCodecType Uses

func NewAudioEncoderByCodecType(typ av.CodecType) (enc *AudioEncoder, err error)

func NewAudioEncoderByName Uses

func NewAudioEncoderByName(name string) (enc *AudioEncoder, err error)

func (*AudioEncoder) Close Uses

func (self *AudioEncoder) Close()

func (*AudioEncoder) CodecData Uses

func (self *AudioEncoder) CodecData() (codec av.AudioCodecData, err error)

func (*AudioEncoder) Encode Uses

func (self *AudioEncoder) Encode(frame av.AudioFrame) (pkts [][]byte, err error)

func (*AudioEncoder) GetOption Uses

func (self *AudioEncoder) GetOption(key string, val interface{}) (err error)

func (*AudioEncoder) SetBitrate Uses

func (self *AudioEncoder) SetBitrate(bitrate int) (err error)

func (*AudioEncoder) SetChannelLayout Uses

func (self *AudioEncoder) SetChannelLayout(ch av.ChannelLayout) (err error)

func (*AudioEncoder) SetOption Uses

func (self *AudioEncoder) SetOption(key string, val interface{}) (err error)

func (*AudioEncoder) SetSampleFormat Uses

func (self *AudioEncoder) SetSampleFormat(fmt av.SampleFormat) (err error)

func (*AudioEncoder) SetSampleRate Uses

func (self *AudioEncoder) SetSampleRate(rate int) (err error)

func (*AudioEncoder) Setup Uses

func (self *AudioEncoder) Setup() (err error)

type Resampler Uses

type Resampler struct {
    OutSampleFormat  av.SampleFormat
    OutChannelLayout av.ChannelLayout
    OutSampleRate    int
    // contains filtered or unexported fields
}

func (*Resampler) Close Uses

func (self *Resampler) Close()

func (*Resampler) Resample Uses

func (self *Resampler) Resample(in av.AudioFrame) (out av.AudioFrame, err error)

type VideoDecoder Uses

type VideoDecoder struct {
    Extradata []byte
    // contains filtered or unexported fields
}

func NewVideoDecoder Uses

func NewVideoDecoder(stream av.CodecData) (dec *VideoDecoder, err error)

func (*VideoDecoder) Decode Uses

func (self *VideoDecoder) Decode(pkt []byte) (img *VideoFrame, err error)

func (*VideoDecoder) Setup Uses

func (self *VideoDecoder) Setup() (err error)

type VideoFrame Uses

type VideoFrame struct {
    Image image.YCbCr
    // contains filtered or unexported fields
}

func (*VideoFrame) Free Uses

func (self *VideoFrame) Free()

Package ffmpeg imports 11 packages (graph) and is imported by 7 packages. Updated 2019-11-05. Refresh now. Tools for package owners.