Membrane.Opus.Encoder (Membrane Opus plugin v0.2.1) View Source
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
applicationDefault value:
:audioOutput type (similar to compression amount). See https://opus-codec.org/docs/opus_api-1.3.1/group__opus__encoder.html#gaa89264fd93c9da70362a0c9b96b9ca88.input_capsDefault value:
nilInput type - used to set input sample rate and channels
Pads
:input
| Availability | :always |
| Bin? | false |
| Caps | Membrane.Caps.Audio.Raw, restrictions:<br /> format: :s16le,<br /> channels: one_of([1, 2]),<br /> sample_rate: one_of([8000, 12000, 16000, 24000, 48000]) |
| Demand unit | :bytes |
| Direction | :input |
| Mode | :pull |
| Name | :input |
:output
| Availability | :always |
| Bin? | false |
| Caps | Membrane.Opus, restrictions:<br /> self_delimiting?: false |
| 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
Specs
allowed_applications() :: :low_delay | :audio | :voip
Specs
allowed_channels() :: 2 | 1
Specs
allowed_sample_rates() :: 48000 | 24000 | 16000 | 12000 | 8000
Specs
t() :: %Membrane.Opus.Encoder{
application: allowed_applications(),
input_caps: Membrane.Caps.Audio.Raw.t()
}
Struct containing options for Membrane.Opus.Encoder
Link to this section Functions
Specs
membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Opus.Encoder
Specs
options() :: keyword()
Returns description of options available for this module