Membrane.Element.FFmpeg.SWResample.Converter (Membrane Element: FFmpeg SWResample v0.3.1)

This element performs audio conversion/resampling/channel mixing, using SWResample module of FFmpeg library.

Element options

Passed via struct Membrane.Element.FFmpeg.SWResample.Converter.t/0

  • input_caps

    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

    Required Audio caps for souce pad (output)

  • frames_per_buffer

    Default value: 2048 Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.

Pads

:input

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:<br />&nbsp;&nbsp;format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),<br />&nbsp;&nbsp;channels: one_of([1, 2]),<br />Membrane.Caps.Audio.Raw, restrictions:<br />&nbsp;&nbsp;format: :s24le,<br />&nbsp;&nbsp;channels: one_of([1, 2])
Demand&nbsp;unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:<br />&nbsp;&nbsp;format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),<br />&nbsp;&nbsp;channels: one_of([1, 2])
Direction:output
Mode:pull
Name:output

Link to this section Summary

Functions

Returns description of options available for this module

Link to this section Types

Specs

t() :: %Membrane.Element.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.Element.FFmpeg.SWResample.Converter

Link to this section Functions

Link to this function

membrane_pads()

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.Element.FFmpeg.SWResample.Converter

Specs

options() :: keyword()

Returns description of options available for this module