Membrane Opus plugin v0.1.0 Membrane.Opus.Decoder View Source

This element performs decoding of Opus audio.

Element options

Passed via struct Membrane.Opus.Decoder.t/0

  • sample_rate

    Default value: 48000

    Sample rate to decode at. Note: Opus is able to decode any stream at any supported sample rate. 48 kHz is recommended. For details, see https://tools.ietf.org/html/rfc7845#section-5.1 point 5.

  • channels

    Default value: 2

    Expected number of channels

Pads

:input

Availability:always
Bin?false
CapsMembrane.Opus
Demand unit:buffers
Direction:input
Mode:pull
Name:input

:output

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:
  format: :s16le
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

Struct containing options for Membrane.Opus.Decoder

Functions

Returns pads descriptions for Membrane.Opus.Decoder

Returns description of options available for this module

Link to this section Types

Link to this type

t()

View Source
t() :: %Membrane.Opus.Decoder{
  channels: 1 | 2,
  sample_rate: 8000 | 12000 | 16000 | 24000 | 48000
}

Struct containing options for Membrane.Opus.Decoder

Link to this section Functions

Returns pads descriptions for Membrane.Opus.Decoder

Returns description of options available for this module