Membrane Element: FFmpeg SWResample v0.2.1 Membrane.Element.FFmpeg.SWResample.Converter
This element performs audio conversion/resampling/channel mixing, using SWResample module of FFmpeg library.
Link to this section Summary
Types
Struct containing options for Membrane.Element.FFmpeg.SWResample.Converter
frames_per_buffer
: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes
Functions
Returns pads specification for Membrane.Element.FFmpeg.SWResample.Converter
Returns description of options available for this module
Link to this section Types
t() :: %Membrane.Element.FFmpeg.SWResample.Converter{ input_caps: Membrane.Caps.Audio.Raw.t() | nil, output_caps: Membrane.Caps.Audio.Raw.t(), frames_per_buffer: pos_integer() }
Struct containing options for Membrane.Element.FFmpeg.SWResample.Converter
frames_per_buffer
: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.Defaults to
2048
output_caps
: Audio caps for souce pad (output)input_caps
: Caps for the input pad. If set to nil (default value), caps are assumed to be received through the pad. If explicitly set to some caps, they cannot be changed by caps received through the pad.Defaults to
nil
Link to this section Functions
Returns pads specification for Membrane.Element.FFmpeg.SWResample.Converter
They are the following:
Pad
:input
- availability:
:always
caps:
Membrane.Caps.Audio.Raw
, params:format
:in([:u8, :s16le, :s32le, :f32le, :f64le])
,channels
:in([1, 2])
Membrane.Caps.Audio.Raw
, params:format
::s24le
,channels
:in([1, 2])
- demand unit:
:bytes
- direction:
:input
- mode:
:pull
- availability:
Pad
:output
- availability:
:always
- caps:
Membrane.Caps.Audio.Raw
, params:format
:in([:u8, :s16le, :s32le, :f32le, :f64le])
,channels
:in([1, 2])
- direction:
:output
- mode:
:pull
- availability:
Returns description of options available for this module