Membrane Element: FFmpeg SWResample v0.1.0 Membrane.Element.FFmpeg.SWResample.Converter View Source
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
sink_caps
: Audio caps for sink pad (input). If set to nil (default value), caps are assumed to be received from :sink. If explicitly set to some caps, they cannot be changed by caps received from :sink.source_caps
: Audio caps for souce pad (output)frames_per_buffer
: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes
Functions
Returns all known sink pads for Membrane.Element.FFmpeg.SWResample.Converter
Returns all known source pads 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{ sink_caps: Membrane.Caps.Audio.Raw.t() | nil, source_caps: Membrane.Caps.Audio.Raw.t(), frames_per_buffer: pos_integer() }
Struct containing options for Membrane.Element.FFmpeg.SWResample.Converter
sink_caps
: Audio caps for sink pad (input). If set to nil (default value), caps are assumed to be received from :sink. If explicitly set to some caps, they cannot be changed by caps received from :sink.source_caps
: Audio caps for souce pad (output)frames_per_buffer
: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.
Link to this section Functions
known_sink_pads() :: Membrane.Element.Base.Mixin.SinkBehaviour.known_sink_pads_t()
Returns all known sink pads for Membrane.Element.FFmpeg.SWResample.Converter
They are the following:
Pad:
:sink
- Availability: :always
- Mode: {:pull, [demand_in: :bytes]}
Caps:
{Membrane.Caps.Audio.Raw, [format: {Membrane.Caps.Matcher.In, [:u8, :s16le, :s32le, :f32le, :f64le]}, channels: {Membrane.Caps.Matcher.Range, 1, 2}]}
{Membrane.Caps.Audio.Raw, [format: :s24le, channels: {Membrane.Caps.Matcher.Range, 1, 2}]}
known_source_pads() :: Membrane.Element.Base.Mixin.SourceBehaviour.known_source_pads_t()
Returns all known source pads for Membrane.Element.FFmpeg.SWResample.Converter
They are the following:
Pad:
:source
- Availability: :always
- Mode: :pull
Caps:
{Membrane.Caps.Audio.Raw, [format: {Membrane.Caps.Matcher.In, [:u8, :s16le, :s32le, :f32le, :f64le]}, channels: {Membrane.Caps.Matcher.Range, 1, 2}]}
Returns description of options available for this module