View Source Membrane.Opus.Encoder (Membrane Opus plugin v0.15.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
Element options
Passed via struct Membrane.Opus.Encoder.t/0
application
allowed_applications()
Default value:
:audio
Output type (similar to compression amount).input_caps
RawAudio.t()
Default value:
nil
Input type - used to set input sample rate and channels.
pads
Pads
input
:input
Availability | :always |
Caps | Membrane.RawAudio , restrictions:sample_format: :s16le ,channels: one_of([1, 2]) ,sample_rate: one_of([8000, 12000, 16000, 24000, 48000]) ,Membrane.RemoteStream |
Demand mode | :auto |
Demand unit | :bytes |
Direction | :input |
Mode | :pull |
Name | :input |
output
:output
Availability | :always |
Caps | Membrane.Opus , restrictions:self_delimiting?: false |
Demand mode | :auto |
Demand unit | :buffers |
Direction | :output |
Mode | :pull |
Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.Opus.Encoder
Functions
Returns pads descriptions for Membrane.Opus.Encoder
Returns description of options available for this module
Link to this section Types
@type allowed_applications() :: :low_delay | :audio | :voip
@type allowed_channels() :: 2 | 1
@type allowed_sample_rates() :: 48000 | 24000 | 16000 | 12000 | 8000
@type t() :: %Membrane.Opus.Encoder{ application: allowed_applications(), input_caps: Membrane.RawAudio.t() }
Struct containing options for Membrane.Opus.Encoder
Link to this section Functions
@spec membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Opus.Encoder
@spec options() :: keyword()
Returns description of options available for this module