Membrane Element: FFmpeg SWResample v0.3.0 Membrane.Element.FFmpeg.SWResample.Converter

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:
  format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),
  channels: one_of([1, 2]),
Membrane.Caps.Audio.Raw, restrictions:
  format: :s24le,
  channels: one_of([1, 2])
Demand unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:
  format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),
  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

Link to this type

t()

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()

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

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

Link to this function

options()

options() :: keyword()

Returns description of options available for this module