Membrane.FFmpeg.SWResample.Converter (Membrane FFmpeg SWResample plugin v0.6.0)
This element performs audio conversion/resampling/channel mixing, using SWResample module of FFmpeg library.
Element options
Passed via struct Membrane.FFmpeg.SWResample.Converter.t/0
input_caps
Caps.t() | nil
Default value:
nil
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.output_caps
Caps.t()
Required
Audio caps for souce pad (output)frames_per_buffer
pos_integer()
Default value:
2048
Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.
Pads
:input
Availability | :always |
Caps | Membrane.Caps.Audio.Raw , restrictions:<br /> format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]) ,<br /> channels: one_of([1, 2]) ,<br />Membrane.Caps.Audio.Raw , restrictions:<br /> format: :s24le ,<br /> channels: one_of([1, 2]) |
Demand unit | :bytes |
Direction | :input |
Mode | :pull |
Name | :input |
:output
Availability | :always |
Caps | Membrane.Caps.Audio.Raw , restrictions:<br /> format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]) ,<br /> channels: one_of([1, 2]) |
Direction | :output |
Mode | :pull |
Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.FFmpeg.SWResample.Converter
Functions
Returns pads descriptions for Membrane.FFmpeg.SWResample.Converter
Returns description of options available for this module
Link to this section Types
Specs
t() :: %Membrane.FFmpeg.SWResample.Converter{ frames_per_buffer: pos_integer(), input_caps: Membrane.Caps.Audio.Raw.t() | nil, output_caps: Membrane.Caps.Audio.Raw.t() }
Struct containing options for Membrane.FFmpeg.SWResample.Converter
Link to this section Functions
membrane_pads()
Specs
membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.FFmpeg.SWResample.Converter
options()
Specs
options() :: keyword()
Returns description of options available for this module