Membrane Element: Lame v0.4.1 Membrane.Element.Lame.Encoder View Source
Element encoding raw audio into MPEG-1, layer 3 format
Element options
Passed via struct Membrane.Element.Lame.Encoder.t/0
gapless_flushDefault value:
trueWhen 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.
bitrateDefault value:
192Output bitrate of encoded stream in kbit/sec.
qualityDefault value:
5Value 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
| Availability | :always |
| Bin? | false |
| Caps | Membrane.Caps.Audio.Raw, restrictions:format: :s32le,sample_rate: 44100,channels: 2 |
| Demand unit | :bytes |
| Direction | :input |
| Mode | :pull |
| Name | :input |
:output
| Availability | :always |
| Bin? | false |
| Caps | Membrane.Caps.Audio.MPEG, restrictions:channels: 2,sample_rate: 44100,layer: :layer3,version: :v1 |
| Direction | :output |
| Mode | :pull |
| Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.Element.Lame.Encoder
Functions
Returns pads descriptions for Membrane.Element.Lame.Encoder
Returns description of options available for this module
Link to this section Types
t()
View Sourcet() :: %Membrane.Element.Lame.Encoder{
bitrate: any(),
gapless_flush: boolean(),
quality: non_neg_integer()
}
Struct containing options for Membrane.Element.Lame.Encoder
Link to this section Functions
membrane_pads()
View Sourcemembrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Element.Lame.Encoder
Returns description of options available for this module