package
1.6.13
Repository: https://github.com/mutablelogic/go-media.git
Documentation: pkg.go.dev

# Functions

Create audio parameters.
Create a new writer with a URL and options.
Create new audio parameters with sample format, channel layout and sample rate plus any additional options which is used for creating a stream.
Create a stream decoder which can decode packets from the input stream.
Create an encoder with the given parameters.
Create a new frame and optionally set audio or video parameters.
Create a new media manager which enumerates the available codecs, formats and devices.
Metadata implementation.
Return a new resampler or rescaler, with the destination parameters.
Create a new reader from an io.Reader.
Create a new audio resampler which will resample the input frame to the specified channel layout, sample rate and sample format.
Create a new rescaler which will rescale the input frame to the specified format, width and height.
Create new video parameters with pixel format, frame size, framerate plus any additional options which is used for creating a stream.
Create a new writer with an io.Writer and options.
Open media from a url, file path or device.
New streams with parameters from the context.
Force resampling and resizing on decode, even if the input and output parameters are the same.
Input format from name or url.
Input format options.
Set a logging function.
Append metadata to the output file, including artwork.
Output format from name or url.
New stream with parameters.
Set logging options, including a callback function.
Create video parameters.

# Constants

Metadata key for artwork, set the value as []byte.
No description provided by the author
No description provided by the author

# Structs

Decoding context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Re implements a resampler and rescaler for audio and video frames.
Media reader which reads from a URL, file path or device.
Create media from io.Writer.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
DecoderFrameFn is a function which is called to send a frame after decoding.
Return parameters if a stream should be decoded and either resampled or resized.
EncoderFrameFn is a function which is called to receive a frame to encode.
EncoderPacketFn is a function which is called for each packet encoded, with the stream timebase.
No description provided by the author
Logging function.
Logging function which is used to log messages.
Option which can affect the behaviour of ffmpeg.
No description provided by the author
No description provided by the author
No description provided by the author