Membrane Element: Lame v0.3.2 Membrane.Element.Lame.Encoder View Source

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

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.Lame.Encoder

Functions

Returns pads specification for Membrane.Element.Lame.Encoder

Returns description of options available for this module

Link to this section Types

Link to this type

t() View Source
t() :: %Membrane.Element.Lame.Encoder{
  gapless_flush: boolean(),
  bitrate: any(),
  quality: non_neg_integer()
}

Struct containing options for Membrane.Element.Lame.Encoder

  • quality - 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

      Defaults to 5

  • bitrate - Output bitrate of encoded stream in kbit/sec.

    Defaults to 192

  • gapless_flush - 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.

    Defaults to true

Link to this section Functions

Returns pads specification for Membrane.Element.Lame.Encoder

They are the following:

  • Pad :input

    • availability: :always
    • caps: Membrane.Caps.Audio.Raw, params: format:s32le, sample_rate44100, channels2
    • demand unit: :bytes
    • direction: :input
    • mode: :pull
  • Pad :output

    • availability: :always
    • caps: Membrane.Caps.Audio.MPEG, params: channels2, sample_rate44100, layer:layer3, version:v1
    • direction: :output
    • mode: :pull

Returns description of options available for this module