View Source Membrane.Opus.Encoder (Membrane Opus plugin v0.20.1)
This element performs encoding of Opus audio into a raw stream. You'll need to parse the stream and then package it into a container in order to use it.
Element options
Passed via struct Membrane.Opus.Encoder.t/0
application
allowed_applications()
Default value:
:audio
Output type (similar to compression amount).input_stream_format
RawAudio.t()
Default value:
nil
Input type - used to set input sample rate and channels.
Pads
:input
Accepted formats:
%RawAudio{sample_format: :s16le, channels: channels, sample_rate: sample_rate}
when channels in @allowed_channels and sample_rate in @allowed_sample_rates
Membrane.RemoteStream
Direction: | :input |
Availability: | :always |
Flow control: | :auto |
:output
Accepted formats:
%Opus{self_delimiting?: false}
Direction: | :output |
Availability: | :always |
Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.Opus.Encoder
Types
@type allowed_applications() :: :voip | :audio | :low_delay
@type allowed_channels() :: 1 | 2
@type allowed_sample_rates() :: 8000 | 12000 | 16000 | 24000 | 48000
@type t() :: %Membrane.Opus.Encoder{ application: allowed_applications(), input_stream_format: Membrane.RawAudio.t() }
Struct containing options for Membrane.Opus.Encoder
Functions
@spec options() :: keyword()
Returns description of options available for this module