Membrane.MP3.Lame.Encoder (Membrane MP3 Lame Plugin v0.18.4)
View SourceElement encoding raw audio into MPEG-1, layer 3 format
Element options
Passed via struct Membrane.MP3.Lame.Encoder.t/0
gapless_flushboolean()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.bitrateinteger()Default value:
192
Output bitrate of encoded stream in kbit/sec.qualitynon_neg_integer()Default value:
5
Value of this parameter affects quality by selecting one of the algorithms for encoding:0being best (and very slow) and9being worst.Recommended values:
2- near-best quality, not too slow5- good quality, fast7- 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:
%MPEGAudio{channels: 2, sample_rate: 44100, layer: :layer3, version: :v1}| Direction: | :output |
| Availability: | :always |
| Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.MP3.Lame.Encoder
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