View Source Membrane.MP3.Lame.Encoder (Membrane MP3 Lame Plugin v0.18.2)

Element encoding raw audio into MPEG-1, layer 3 format

Element options

Passed via struct Membrane.MP3.Lame.Encoder.t/0

  • gapless_flush

    boolean()

    Default value: true
    When this option is set to true, encoder will be flushed without outputting any tags and allowing to play such file gaplessly if concatenated with another file.

  • bitrate

    integer()

    Default value: 192
    Output bitrate of encoded stream in kbit/sec.

  • quality

    non_neg_integer()

    Default value: 5
    Value of this parameter affects quality by selecting one of the algorithms for encoding: 0 being best (and very slow) and 9 being worst.

    Recommended values:

    • 2 - near-best quality, not too slow
    • 5 - good quality, fast
    • 7 - ok quality, really fast

Pads

:input

Accepted formats:

%RawAudio{sample_format: :s32le, sample_rate: 44100, channels: 2}
Membrane.RemoteStream
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

%MPEG{channels: 2, sample_rate: 44100, layer: :layer3, version: :v1}
Direction::output
Availability::always
Flow control::auto

Summary

Types

t()

Struct containing options for Membrane.MP3.Lame.Encoder

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.MP3.Lame.Encoder{
  bitrate: integer(),
  gapless_flush: boolean(),
  quality: non_neg_integer()
}

Struct containing options for Membrane.MP3.Lame.Encoder

Functions

@spec options() :: keyword()

Returns description of options available for this module