Membrane.Opus.Encoder (Membrane Opus plugin v0.5.0) 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

Pads

:input

Availability:always
CapsMembrane.Caps.Audio.Raw, restrictions:<br />&nbsp;&nbsp;format: :s16le,<br />&nbsp;&nbsp;channels: one_of([1, 2]),<br />&nbsp;&nbsp;sample_rate: one_of([8000, 12000, 16000, 24000, 48000])
Demand unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
CapsMembrane.Opus, restrictions:<br />&nbsp;&nbsp;self_delimiting?: false
Direction:output
Mode:pull
Name:output

Link to this section Summary

Functions

Returns pads descriptions for Membrane.Opus.Encoder

Returns description of options available for this module

Link to this section Types

Link to this type

allowed_applications()

View Source

Specs

allowed_applications() :: :low_delay | :audio | :voip

Specs

allowed_channels() :: 2 | 1
Link to this type

allowed_sample_rates()

View Source

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