Documentation ¶
Overview ¶
Package media provides media open, close and conversion support
Index ¶
- func New() *manager
- func NewCodecEncoder(id ffmpeg.AVCodecID) *codec
- func NewDecoder(stream *stream) *decoder
- func NewEncoderWithCodec(codec *ffmpeg.AVCodec) *encoder
- func NewFrame() *frame
- func NewInputDevice(device MediaFormat, cb func(Media) error) (*input, error)
- func NewInputFile(path string, format MediaFormat, cb func(Media) error) (*input, error)
- func NewInputFormat(ctx *ffmpeg.AVInputFormat, flags MediaFlag) *format_in
- func NewInputURL(path string, format MediaFormat, cb func(Media) error) (*input, error)
- func NewMap(media Media, flags MediaFlag) (*decodemap, error)
- func NewMetadata(ctx **ffmpeg.AVDictionary) *metadata
- func NewOutputDevice(device MediaFormat, cb func(Media) error) (*output, error)
- func NewOutputFile(path string, cb func(Media) error) (*output, error)
- func NewOutputFormat(ctx *ffmpeg.AVOutputFormat, flags MediaFlag) *format_out
- func NewPacket(fn func(int) Stream) *packet
- func NewResampler(dest, src AudioFormat) *resampler
- func NewScalar(src, dest *ffmpeg.AVFrame) *rescaler
- func NewStream(ctx *ffmpeg.AVStream) *stream
- func PrintVersion(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodecEncoder ¶
Create a codec from a AVCodecID for a stream
func NewEncoderWithCodec ¶
Create a encoder for a stream
func NewInputDevice ¶
func NewInputFile ¶
func NewInputFormat ¶
func NewInputFormat(ctx *ffmpeg.AVInputFormat, flags MediaFlag) *format_in
Create a input format container
func NewInputURL ¶
func NewMetadata ¶
func NewMetadata(ctx **ffmpeg.AVDictionary) *metadata
Create new metadata object. The metadata is odd, in that when there are no entries the dictionary gets freed, and when there are entries the dictionary is allocated. So we have to use a pointer to a pointer
func NewOutputDevice ¶
func NewOutputFile ¶
func NewOutputFormat ¶
func NewOutputFormat(ctx *ffmpeg.AVOutputFormat, flags MediaFlag) *format_out
Create a output format container
func NewResampler ¶
func NewResampler(dest, src AudioFormat) *resampler
Create a new resampler for a frame
func NewScalar ¶
Create a new video scalar for a source and destination frame. If the destination is nil then use the sample parameters as the source.
func PrintVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.