Membrane.FFmpeg.SWResample.Converter (Membrane FFmpeg SWResample plugin v0.7.1)

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
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 unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
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

Types

t()

Struct containing options for Membrane.FFmpeg.SWResample.Converter

Functions

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

Link to this function

membrane_pads()

Specs

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

Returns pads descriptions for Membrane.FFmpeg.SWResample.Converter

Specs

options() :: keyword()

Returns description of options available for this module