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 NewEncoderByName(name string) *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(src, dest AudioFormat) *resampler
- func NewScalar(src, dest *ffmpeg.AVFrame) *scaler
- func NewStream(ctx *ffmpeg.AVStream) *stream
- func PrintVersion(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodecEncoder ¶ added in v1.5.1
Create a codec from a AVCodecID for a stream
func NewDecoder ¶ added in v1.5.1
func NewDecoder(stream *stream) *decoder
Create a decoder for a stream
func NewEncoderByName ¶ added in v1.5.1
func NewEncoderByName(name string) *encoder
Create a encoder for a stream
func NewInputDevice ¶ added in v1.5.1
func NewInputFile ¶ added in v1.5.1
func NewInputFormat ¶
func NewInputFormat(ctx *ffmpeg.AVInputFormat, flags MediaFlag) *format_in
Create a input format container
func NewInputURL ¶ added in v1.5.1
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 ¶ added in v1.5.1
func NewOutputFile ¶ added in v1.5.1
func NewOutputFormat ¶
func NewOutputFormat(ctx *ffmpeg.AVOutputFormat, flags MediaFlag) *format_out
Create a output format container
func NewResampler ¶ added in v1.5.1
func NewResampler(src, dest AudioFormat) *resampler
Create a new resampler for a frame
func NewScalar ¶ added in v1.5.1
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 ¶ added in v1.5.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.