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

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

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.FFmpeg.SWResample.Converter

  • frames_per_buffer: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes

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{
  input_caps: Membrane.Caps.Audio.Raw.t() | nil,
  output_caps: Membrane.Caps.Audio.Raw.t(),
  frames_per_buffer: pos_integer()
}

Struct containing options for Membrane.Element.FFmpeg.SWResample.Converter

  • frames_per_buffer: Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.

    Defaults to 2048

  • output_caps: Audio caps for souce pad (output)

  • input_caps: 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.

    Defaults to nil

Link to this section Functions

Link to this function membrane_pads()

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

They are the following:

  • Pad :input

    • availability: :always
    • caps:

    • demand unit: :bytes
    • direction: :input
    • mode: :pull
  • Pad :output

    • availability: :always
    • caps: Membrane.Caps.Audio.Raw, params: formatin([:u8, :s16le, :s32le, :f32le, :f64le]), channelsin([1, 2])
    • direction: :output
    • mode: :pull
Link to this function options()
options() :: keyword()

Returns description of options available for this module