View Source Membrane.FFmpeg.SWResample.Converter (Membrane FFmpeg SWResample plugin v0.14.0)

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

element-options

Element options

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

  • input_caps

    RawAudio.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

    RawAudio.t()

    Required
    Audio caps for source pad (output)

pads

Pads

input

:input

Availability :always
Caps Membrane.RawAudio, restrictions:
  sample_format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),
  channels: one_of([1, 2]),
Membrane.RawAudio, restrictions:
  sample_format: :s24le,
  channels: one_of([1, 2])
Demand mode :manual
Demand unit :bytes
Direction :input
Mode :pull
Name :input

output

:output

Availability :always
Caps Membrane.RawAudio, restrictions:
  sample_format: one_of([:u8, :s16le, :s32le, :f32le, :f64le]),
  channels: one_of([1, 2])
Demand mode :manual
Demand unit :buffers
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

@type t() :: %Membrane.FFmpeg.SWResample.Converter{
  input_caps: Membrane.RawAudio.t() | nil,
  output_caps: Membrane.RawAudio.t()
}

Struct containing options for Membrane.FFmpeg.SWResample.Converter

Link to this section Functions

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

Returns pads descriptions for Membrane.FFmpeg.SWResample.Converter

@spec options() :: keyword()

Returns description of options available for this module