LAME

From Vero - Wikipedia
Jump to navigation Jump to search

Template:Short description Template:About Template:Use dmy dates Template:Infobox software

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<ref>Template:Cite web</ref><ref>Template:Cite web</ref> and possibly the "gold standard encoder" MP3enc, both marketed by Fraunhofer.<ref name="rl">Template:Cite web</ref>

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.<ref>Template:Citation</ref>

History

Earliest versions

Around mid-1998, Mike Cheng created LAME 1.0 as a set of modifications against the 8 Hz-MP3 encoder<ref>Template:Cite web</ref> 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.<ref>Template:Cite web</ref> (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.<ref name=":0">Template:Cite web</ref> The project started to attract other contributors. Mike Cheng eventually left leadership and started working on tooLAME (an MP2 encoder).<ref name=":0" />

Modern versions

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,<ref>Template:Cite web</ref> providing a tool which would significantly help developers to work on the encoder.<ref>Template:Cite web</ref>

File:MP3x frame analyser.gif
MP3x analysing MP3 encoding done through LAME

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.<ref>Template:Cite web</ref><ref>Template:Cite web</ref>

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 Template:Nowrap using the MPEG-2.5 extensions.

A few key improvements since LAME 3.x, in chronological order:<ref name=":0" />

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 became able to encode successive tracks without audible gaps by adding metadata in 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

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 Template:Nowrap, it proved to be quite competitive, outperforming several other encoders:

  • In July 2003, at around Template:Nowrap (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.<ref>Template:Cite web</ref>
  • In January 2004, at around Template:Nowrap (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.<ref>Template:Cite web</ref>
  • In May 2004, at around Template:Nowrap (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.<ref>Template:Cite web</ref>
  • In December 2005, at around Template:Nowrap (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.<ref>Template:Cite web</ref>

At low bitrates, LAME is of significantly lower quality than encoders using other formats:

Voice coding

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–Template:Nowrap 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).

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.<ref>Template:Cite web</ref><ref>Template:Cite web</ref>

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.<ref>Template:Cite web</ref> Some software was released using this strategy: companies used the LAME library, but obtained patent licenses.

See also

Template:Portal

References

Template:Reflist

Template:Compression software implementations