Membrane MP3 Lame Plugin v0.5.0 Membrane.MP3.Lame.Encoder View Source

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

Element options

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

  • gapless_flush

    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

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

  • quality

    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

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:<br />&nbsp;&nbsp;format: :s32le,<br />&nbsp;&nbsp;sample_rate: 44100,<br />&nbsp;&nbsp;channels: 2
Demand&nbsp;unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
Bin?false
CapsMembrane.Caps.Audio.MPEG, restrictions:<br />&nbsp;&nbsp;channels: 2,<br />&nbsp;&nbsp;sample_rate: 44100,<br />&nbsp;&nbsp;layer: :layer3,<br />&nbsp;&nbsp;version: :v1
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

Struct containing options for Membrane.MP3.Lame.Encoder

Functions

Returns pads descriptions for Membrane.MP3.Lame.Encoder

Returns description of options available for this module

Link to this section Types

Specs

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

Struct containing options for Membrane.MP3.Lame.Encoder

Link to this section Functions

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.MP3.Lame.Encoder

Specs

options() :: keyword()

Returns description of options available for this module