Major update with Lame 3.97:
Updated 2005-09-16
These settings require Lame 3.97 or later. Lame 3.97beta1 (beta=b) found on this website is the recommended version. (Check here or Rarewares to download).
Do not use alpha (a) versions ! Those are for testing purposes, if you want.
Note: At a given bitrate range, the quality scale is following: VBR is higher quality than ABR which is higher quality than CBR (VBR > ABR > CBR in terms of quality). The exception to this is when you choose the highest possible CBR bitrate, which is 320 kbps (--alt-preset insane).
VBR: variable bitrate mode, the goal is to keep a constant quality and saving bits where possible without lowering the quality.
ABR: average bitrate mode varies bits around a specified target bitrate
CBR: constant bitrate mode is not efficient regarding distributing bitrate to more complex music parts and saving bits where it would be possible without lowering the quality of those music parts.
Note: all modes and settings mentioned in this topic belong to the specifications of the MP3 standard, and the resulting MP3s should be played by every standard-conform MP3-Decoder. If this shouldn't be the case, blame the manufacturer or developer of your MP3-Decoder/device. Neither the hydrogenaudio.org community, HA staff, nor the authors of this post take any responsibility for anything.
Discussion has been moved here.
-------------------------------------------------
Recommended encoder settings:
-------------------------------------------------
The settings, presets are listed beginning with highest possible quality stepping down to lower qualities:
CODE
Switch equals preset target kbit/s Bitrate range kbit/s
-b 320 = --preset insane 320 CBR 320
-V 0 = --preset extreme 240 245…285
-V 0 --vbr-new = --preset fast extreme 240 245…285
-V 1 210 220…260
-V 1 --vbr-new 210 220…260
-V 2 = --preset standard 190 170…210
-V 2 --vbr-new = --preset fast standard 190 170…210
-V 3 175 155…195
-V 3 --vbr-new 175 155…195
-V 4 = --preset medium 165 145…185
-V 4 --vbr-new = --preset fast medium 165 145…185
-V 5 130 110…150
-V 5 --vbr-new 130 110…150
-V 6 115 95…135
-V 6 --vbr-new 115 95…135
-V 7 100 80…120
-V 7 --vbr-new 100 80…120
-V 8 85 65…105
-V 8 - vbr-new 85 65…105
-V 9 65 45…85
-V 9 - vbr-new 65 45…85
If the target is eg. streaming , where you need MP3 in ABR or even CBR mode, there are still the ABR and CBR modes.
You can specify your desired target bitrate:
ABR = Average Bitrate mode:
--abr xxx = --preset xxx
xxx (desired averaged bitrate in kbit/s) can be any value between 8 - 320 , like eg. 9, 17, 80, 128, 133, 200 etc.
Only for 128k ABR:
There was developed an alternative to the --abr 128 preset:
ff123's and Hans' suggestion (http://www.ff123.net/cbr128.html):
--abr 128 -h --nspsytune --athtype 2 --lowpass 16 --ns-bass -8 --scale 0.93
Different people have different tastes regarding artefacts and their behaviour of annoyance, so try out --abr 128 vs. --abr 128 -h --nspsytune --athtype 2 --lowpass 16 --ns-bass -8 --scale 0.93
CBR = Constant Bitrate mode:
-b xxx = --preset cbr xxx
xxx (desired bitrate in kbit/s) can be only: 8 , 16 , 24 , 32 , 40 , 48 , 64 , 80 , 96 , 112 , 128 , 160 , 192 , 256 or 320
Remarks:
the --vbr-new switch enables the new VBR mode. Lame will encode much faster compared to old/default vbr mode. Current knowledge qualitywise comparing vbr with --vbr-new is, that --vbr-new might even be better qualitywise than the default vbr mode, but there are also reports about artefact, which is worse in --vbr-new compared to default. Though the general impression is, that --vbr-new should be recommended over vbr-default.
The presets -V 0 , -V 1 , -V 2 with or without --vbr-new switch and of course -b 320 are considered to be transparent for a majority of people. (transparent = most people cannot distinguish the mp3 from the original in an ABX blindtest)
For high quality on portable MP3 players, you may use -V 4 (--vbr-new)= --preset (fast) medium (around 165 kbit/s).
-V 5 --vbr-new is a very good replacement for 128 kbit/s encodings.
The revolutionary --alt-preset system introduced in lame 3.90, is replaced nowadays by the preset system, which is already substituted by the above explained settings system.
You don't need to worry, if you select nowadays in lame 3.97 either --alt-preset xy , preset xy or corresponding switch xy, you will always get the same.
E.G.: --alt-preset cbr 320 is the exact same thing as --alt-preset insane etc.:
--alt-preset insane = --preset insane = -b 320 = --preset 320 = --preset cbr 320
-------------------------------------------------
Setting up EAC for lame.exe with tagging
-------------------------------------------------
Based on Case's tutorial
Select compression options from EAC menu.
Open 'External Compression' tab.
1. Check 'Use external program for compression'
2. Change 'Parameter passing scheme' to 'User Defined Encoder'
3. Set file extension to .mp3
4. Click 'Browse' and locate 'lame.exe'
5. Change 'Additional command line options' to one of the following commandlines
6. Check 'Delete WAV after compression'
7. Uncheck 'Add ID3 tag'
QUOTE
ID3v1:
-V 2 --vbr-new --id3v1-only --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
ID3v2:
-V 2 --vbr-new --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
ID3v1 and ID3v2:
-V 2 --vbr-new --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
APEv2: (requires wapet.exe)
%d -t "Artist=%a" -t "Title=%t" -t "Album=%g" -t "Year=%y" -t "Track=%n" -t "Genre=%m" lame.exe -V 2 --vbr-new %s %d
(You can change -V 2 --vbr-new to any setting/preset you'd like to use)
These commandlines are generally recommended over EAC's own tagging routines and its LAME encoder parameter passing preset, which is known to cause problems.
The bitrate setting serves a cosmetic purpose and is used for the size display in EAC's main window.
-------------------------------------------------
Useful links
-------------------------------------------------
(Latest LAME compiles)
Dmitry's compiles
Dibrom's compiles
Rarewares.org MP3 section
(MP3 Information sites)
Hydrogen Audio
Decoder test by David Robinson
(MP3 Forums)
Hydrogenaudio MP3 forum
(Exact Audio Copy) - the best CD ripper & encoding (& tagging) to MP3 (or MPC, Ogg Vorbis) during ripping
Official site
Tutorial for EAC
EAC forum
(LAME Frontends)
RazorLame
EasyLAME (german)
HeadAC3he by Dark Avenger : ac3 -> wav DS2 -> mp3, ogg vorbis, mp2
BeSweet by DSPGuru : ac3 -> wav DS2 -> mp3, ogg vorbis, mp2 with batch-possibility
(Renaming / ID3 Tagging / Music Database)
Tag + Tag Frontend
Helium2
Renatager
MPTagger
More tagging information & programs
CDIndexer : for CD-Audio & data-CDs
MAC: Mpeg Audio Collection
(MP3 Gain) - lossless gain change / "normalizing"!
Official site
Basic Guide to avoid clipping
(How to)
Burn an MP3 CD
Reencode mp3 (high bitrate with ID3 tags) to mp3 (low bitrate) and include tags to new mp3 file : Try Monkeys Audio
http://www.monkeysaudio.com/, or maybe better: foobar 2000, use the CLI encoder:
http://www.saunalahti.fi/cse/html/foobar.htmlMPC -> MP3 by MPCxchange
(Analyzing MP3)
EncSpot
ff123's artefact training
Tool for ABXing, Blind listening tests
ff123's site: Discussion of Audio Compression including sites to evaluate your own capability of listening
Training of musically listening good-ear.com
Training of listening to encoder's artefacts pcabx.com
MP3Utility
QuickSFV, SVF and MD5 checksums for files
-------------------------------------------------
Credits
-------------------------------------------------
A big thanks to all LAME developers for making one kickass MP3 codec.
People who took part in suggesting the different settings:
Dibrom, r3mix, ff123, Hans Heijden, kjempen, Benjamin Lebsanft, GeSomeone, Wombat & GuruBoolez for his immense testing.
Creation of the alt preset system and related special code level quality enhancements:
Dibrom, with technical assistance from Robert Hegemann and Naoki Shibata and extensive tuning help and quality verification via listening tests from JohnV and also initial help (--dm-preset era) from Hans Heijden, ff123, Wombat, and others. Test clips, bitrate information, and further listening tests provided by TheBashar, zbutsam, Pio2001, BadDuDeX, r3mix, h, TarX, Hans Heijden, ff123, Wombat, Filburt, Volcano, Garf, MrDrew, TrNSZ, nyaochi, Amadeus93, in no particular order, and many, many others I (Dibrom) probably forgot to mention.. (msg me to be added)
Idea (also exposing the need for a unified preset system), Original post and list of original settings collected by: user
Layout and additional work by: dev0, CiTay, SNYder, Dibrom
And finally...
Thank you ALL in the community for making it what it is, providing interest and discussion and helping to work towards the most concise, well tuned, and most thought out MP3 quality "paradigm" seen yet! biggrin.gif -- Dibrom