LAME | |
---|---|
![]() LAME official logo | |
LAME v3.97 encoding a VBR file | |
Developer(s) | LAME Developers |
Initial release | 1998 |
Stable release | 3.100[1]
/ 13 October 2017 |
Repository | sourceforge |
Operating system | Cross-platform |
Type | Codec |
License | GNU Lesser General Public License[2] |
Website | lame |
LAME is a software encoder that converts digital audio into the MP3 audio coding format. LAME is a free software project that was first released in 1998 and has incorporated many improvements since then, including an improved psychoacoustic model. The LAME encoder outperforms early encoders like L3enc[3][4] and possibly the "gold standard encoder" MP3enc, both marketed by Fraunhofer.[5]
LAME was required by some programs released as free software in which LAME was linked for MP3 support. This avoided including LAME itself, which used patented techniques, and so required patent licenses in some countries. All relevant patents have since expired, and LAME is now bundled with Audacity.[6]
History
[edit]Earliest versions
[edit]Around mid-1998, Mike Cheng created LAME 1.0 as a set of modifications against the 8Hz-MP3 encoder[7] source code, and named the resulting encoder LAME, as a recursive acronym for "LAME Ain't an MP3 Encoder", as initial releases of the software lacked the ability to produce encoded MP3 streams without third-party code[8]. (Later releases allowed LAME to function as a standalone MP3 encoder.)
After some quality concerns were raised by others, he decided to start again from scratch based on the dist10 MPEG reference software sources. His goal was only to speed up the dist10 sources, and leave its quality untouched. That branch (a patch against the reference sources) became Lame 2.0 in october 1998[9]. The project started to attract other contributors. Mike Cheng eventually left leadership and started working on tooLAME (an MP2 encoder).[9]
Modern versions
[edit]Mark Taylor then started pursuing increased quality in addition to better speed, and released in May 1999 version 3.0 featuring gpsycho, a new psychoacoustic model he developed, along with a GTK-based graphical frame analyser, MP3x[10], providing a tool which would significantly help developpers to work on the encoder[11].

This initial focus on quality by Mark Taylor quickly gathered interest from other people, who also started to bring quality and speed improvements. Within the most notable contributors are (in alphabetical order): Gabriel Bouvigne, Mike Cheng, Robert Hegemann, Frank Klemm, Alexander Leidinger, Naoki Shibata, Mark Taylor, Takehiro Tominaga[12][13].
Over time, LAME evolved on the SourceForge website until it became the de facto CBR MP3 encoder. Later an ABR mode was added. Work progressed on true variable bit rate using a quality goal between 0 and 10. Eventually, numbers (such as -V 9.600) could generate excellent quality low bit rate voice encoding at only 41 kbit/s using the MPEG-2.5 extensions.
A few key improvements since LAME 3.x, in chronological order:[9]
version | date | improvement |
---|---|---|
3.0 | May 1999 | A new psychoacoustic model (GPSYCHO) is released, featuring joint-stereo encoding. |
3.11 | June 1999 | The first variable bitrate (VBR) implementation is released. |
3.12 | June 1999 | LAME is able to target lower sampling frequencies from MPEG-2. |
3.52 | November 1999 | LAME switches from a GPL license to an LGPL license, which allows using it with closed-source applications. |
3.81 | May 2000 | The last pieces of the original ISO demonstration code are removed. |
3.90 | December 2001 | LAME become able to encoder successive tracks without audible gaps, by adding metadata within the INFO tag. |
3.94 | December 2003 | Substantial improvement to default settings. LAME no longer requires users to enter complicated parameters to produce good results. |
3.98 | May 2007 | Default variable bitrate encoding speed is vastly improved. |
Audio quality
[edit]Audio quality is usually assessed through double blind listening tests, over a group of participants testing multiple samples. Lame has been tested in several such tests.
At around 128kbps, it proved to be quite competitive, outperforming several other encoders:
- In July 2003, at around 128kbps (ABR), LAME 3.90.3 has been demonstrated to outperform the Blade MP3 encoder (which produces identical results to the dist10 reference software), but has been demonstrated to be of lower quality than the AAC encoder from Quicktime, Musepack, Ogg Vorbis and the WMA9 Pro encoders.[14]
- In January 2004, at around 128kbps (ABR), LAME 3.95 has been demonstrated to be tied to the Audioactive MP3 encoder, and better than the MP3 encoder from Xing, FHG, GoGo and iTunes. The test organizer latter added a clarification about the fact that the Xing and FhG encoders might have produced better results using different parameters.[15]
- In May 2004, at around 128kbps (VBR), LAME 3.96 has been demonstrated to outperform the WMA9 and Atrac3 encoders, to be tied to the iTunes AAC encoder, and to be surpassed by the Vorbis aoTuV and MPC encoders.[16]
- In December 2005, at around 128kbps (VBR), LAME 3.97b2 has been demonstrated to be tied to the Nero and Itunes AAC-LC, Vorbis and WMA9 Pro encoders. All the tested encoders significantly outperformed the Shine MP3 encoder.[17]
At low bitrates, LAME is of significantly lower quality than encoders using other formats:
- In June 2004, at 32kbps (CBR), LAME 3.96 has been outperformed by Vorbis, WMA9, Nero HE-AACv2, MP3Pro, RealAudio and QDesign encoders (all of them using other formats than MP3).[18]
Voice coding
[edit]For the general field of human speech reproduction, a bandwidth of 5,512 Hz is sufficient to produce excellent results (for voice) using the sampling rate of 11,025 and VBR encoding from 44,100 (standard) WAV file. English speakers average 41–42 kbit/s with -V 9.6 setting but this may vary with the amount of silence recorded or the rate of delivery (wpm). Resampling to 12,000 (6K bandwidth) is selected by the LAME parameter -V 9.4. Likewise -V 9.2 selects a 16,000 sample rate and a resultant 8K lowpass filtering. Older versions of LAME and FFmpeg only support integer arguments for the variable bit rate quality selection parameter. The n.nnn quality parameter (-V) is documented at lame.sourceforge.net but is only supported in LAME with the new style VBR variable bit rate quality selector—not average bit rate (ABR).
Patents and legal issues
[edit]Like all MP3 encoders, LAME implemented techniques covered by patents owned by the Fraunhofer Society and others. The developers of LAME did not license the technology described by these patents. Distributing compiled binaries of LAME, its libraries, or programs that derive from LAME in countries where those patents have been granted may have constituted infringement, but since 23 April 2017, all of these patents have expired.[19][20]
The LAME developers stated that, since their code was only released in source code form, it should only be considered as an educational description of an MP3 encoder, and thus did not infringe any patent in itself. They also advised users to obtain relevant patent licenses before including a compiled version of the encoder in a product.[21] Some software was released using this strategy: companies used the LAME library, but obtained patent licenses.
See also
[edit]References
[edit]- ^ "History". Archived from the original on 15 October 2017. Retrieved 15 October 2017.
- ^ "CVS Info for project lame".
- ^ "Opus FAQ".
This is what made it possible for modern MP3 encoders (e.g. LAME) to improve far beyond the original L3enc and dist10 reference implementations.
- ^ "Results of the public MP3 listening test @ 128 kbps (October 2008)". listening-tests.hydrogenaudio.org. Retrieved 21 August 2025.
- ^ "LAME MP3 Encoder :: Related Links". LAME Team. Retrieved 19 March 2013.
- ^ Lendino, Jamie (27 September 2019), "Audacity Review", PC Magazine
- ^ "8Hz Productions, MPEG Audio Layer III Encoder". www.8hz.com. Retrieved 20 August 2025.
- ^ "LAME MP3 Encoder :: Rationale for LAME Development". lame.sourceforge.io. Retrieved 20 August 2025.
- ^ a b c "LAME Changelog". svn.code.sf.net. Retrieved 20 August 2025.
- ^ "LAME MP3 Encoder :: MP3x Screenshots". lame.sourceforge.io. Retrieved 20 August 2025.
- ^ "LAME MP3 Encoder :: A Good Example For Tuning Pre-Echo Detection Criterion". lame.sourceforge.io. Retrieved 20 August 2025.
- ^ "LAME - Hydrogenaudio Knowledgebase". wiki.hydrogenaudio.org. Retrieved 20 August 2025.
- ^ "LAME MP3 Encoder :: Developers". lame.sourceforge.io. Retrieved 20 August 2025.
- ^ "Results of 128kbit/s Extension Listening Test". listening-tests.freetzi.com. Retrieved 21 August 2025.
- ^ "Results of MP3 at 128kbit/s Listening Test". listening-tests.freetzi.com. Retrieved 21 August 2025.
- ^ "Results of Multiformat at 128kbit/s Listening Test". listening-tests.freetzi.com. Retrieved 21 August 2025.
- ^ "Results of the public multiformat listening test @ 128 kbps (December 2005)". listening-tests.hydrogenaudio.org. Retrieved 21 August 2025.
- ^ "Results of Dial-up bitrate (32kbit/s) Listening Test". listening-tests.freetzi.com. Retrieved 21 August 2025.
- ^ "mp3". Fraunhofer IIS. Retrieved 2 May 2017.
- ^ "Alive and Kicking: MP3 software, patents and licenses (Fraunhofer Audio Blog)". Fraunhofer Audio Blog. Fraunhofer IIS. 18 May 2017. Retrieved 19 May 2017.
- ^ Taylor, Mark (June 2000). "LAME Technical FAQ". Archived from the original on 8 February 2012. Retrieved 21 February 2008.
External links
[edit]- Official website
- LAME binaries - RareWares
- LAME binaries for Audacity - recommended for the Audacity free and GPL audio editor
- LAME Wiki - HydrogenAudio (audiophile information)
- LAME Mp3 Info Tag revision 1 Specifications