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

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

Functions

Returns description of options available for this module

Types

Link to this type

allowed_applications()

View Source
@type allowed_applications() :: :voip | :audio | :low_delay
@type allowed_channels() :: 1 | 2
Link to this type

allowed_sample_rates()

View Source
@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