View Source Membrane.FFmpeg.SWResample.Converter (Membrane FFmpeg SWResample plugin v0.16.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_stream_format

    RawAudio.t() | nil

    Default value: nil
    Stream format for the input pad. If set to nil (default value), stream format is assumed to be received through the pad. If explicitly set to some stream format, it cannot be changed by stream format received through the pad.

  • output_stream_format

    RawAudio.t()

    Required
    Audio stream format for output pad

pads

Pads

input

:input

Accepted formats

%RawAudio{sample_format: format, channels: channels}when format in @supported_sample_format and channels in @supported_channels

%RemoteStream{content_format: format} when format in [nil, RawAudio]

%RawAudio{sample_format: :s24le, channels: channels} when channels in @supported_channels

Availability :always
Demand mode :auto
Demand unit :bytes
Direction :input
Mode :pull
Name :input
### `:output`
Accepted formats

%RawAudio{sample_format: format, channels: channels}when format in @supported_sample_format and channels in @supported_channels

Availability :always
Demand mode :auto
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_stream_format: Membrane.RawAudio.t() | nil,
  output_stream_format: Membrane.RawAudio.t()
}

Struct containing options for Membrane.FFmpeg.SWResample.Converter

Link to this section Functions

@spec options() :: keyword()

Returns description of options available for this module