View Source Membrane.FFmpeg.SWResample.Converter (Membrane FFmpeg SWResample plugin v0.20.0)
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_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
: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
Direction: | :input |
Availability: | :always |
Flow control: | :auto |
:output
Accepted formats:
%RawAudio{sample_format: format, channels: channels}
when format in @supported_sample_format and channels in @supported_channels
Direction: | :output |
Availability: | :always |
Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.FFmpeg.SWResample.Converter
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
Functions
@spec options() :: keyword()
Returns description of options available for this module