Membrane.G711.FFmpeg.Decoder (Membrane G711 FFmpeg Plugin v0.1.4)

View Source

Membrane element that decodes audio in G711 format. It is backed by decoder from FFmpeg.

A-law and μ-law encoding formats are supported.

Element options

Passed via struct Membrane.G711.FFmpeg.Decoder.t/0

  • encoding

    :PCMA | :PCMU | nil

    Default value: nil
    G.711 encoding to decode (A-law or μ-law) Be default it's obtained from the stream format with the fallback to PCMA.

Pads

:input

Accepted formats:

%RemoteStream{}
%G711{encoding: encoding} when encoding in [:PCMA, :PCMU]
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

%RawAudio{channels: G711.num_channels(), sample_rate: G711.sample_rate()}
Direction::output
Availability::always
Flow control::auto

Summary

Types

t()

Struct containing options for Membrane.G711.FFmpeg.Decoder

Functions

Returns description of options available for this module

Types

t()

@type t() :: %Membrane.G711.FFmpeg.Decoder{encoding: :PCMA | :PCMU | nil}

Struct containing options for Membrane.G711.FFmpeg.Decoder

Functions

options()

@spec options() :: keyword()

Returns description of options available for this module