View Source Membrane MP3 Lame plugin
The module contains element that encodes raw audio to MPEG-1 layer 3 format.
For now, only encoding audio with 2 channels, s32le format and 44100 sample rate is supported.
It is a part of Membrane Multimedia Framework.
installation
Installation
Add the following line to your deps
in mix.exs
. Then, run mix deps.get
.
{:membrane_mp3_lame_plugin, "~> 0.14.0"}
Lame encoder library is required to use this element. You can install it using the following commands:
macos
MacOS
brew install lame
ubuntu
Ubuntu
sudo apt-get install libmp3lame-dev
arch-manjaro
Arch, Manjaro
sudo pacman -S lame
fedora
Fedora
sudo dnf install lame-devel
usage
Usage
You can find an example in example.exs
, where the MP3.Lame.Encoder
element
was used in a pipeline that redirects audio from default input to an MP3 file.
To run the example, you can use the following command:
iex example.exs
## Copyright and License
Copyright 2020, Software Mansion
Licensed under the Apache License, Version 2.0