Difference between revisions of "EAC and Lame"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (Software Needed: Updated link to EAC download page.)
(Lame 3.98 uses --vbr-new by default)
Line 2: Line 2:
 
* [http://www.exactaudiocopy.de/en/index.php/resources/download/ Exact Audio Copy]
 
* [http://www.exactaudiocopy.de/en/index.php/resources/download/ Exact Audio Copy]
 
* [http://wiki.hydrogenaudio.org/index.php?title=Recommended_LAME Recommended LAME version]
 
* [http://wiki.hydrogenaudio.org/index.php?title=Recommended_LAME Recommended LAME version]
 +
 +
'''Note:''' This guide has now been amended to reflect changes made to LAME as of 3.98.  --vbr-new is now the default setting and is no longer explicitly required.  In addition, non-standard genres are now handled more elegantly.
  
 
===Installation===
 
===Installation===
Line 21: Line 23:
 
* It's a good idea to tick '''Check for external programs return code'''.
 
* It's a good idea to tick '''Check for external programs return code'''.
  
* If you want to let EAC tag your files, you can safely tick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste the following string:
+
* If you wish to have EAC tag your files, you can safely tick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste the following string:
  <font style="color:green">'''-V 2 --vbr-new'''</font> '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> '''%s %d'''
  
* If you prefer not to let EAC tag your files, untick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste one of the strings below, based on the tag format you prefer:
+
* If you wish not to have tags or prefer to have EAC pass along data so that Lame can do the tagging, untick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste one of the strings below, based on the tag format you prefer:
  
 
'''No Tags:'''
 
'''No Tags:'''
  
  <font style="color:green">'''-V 2 --vbr-new'''</font> '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> '''%s %d'''
  
 
'''ID3v1:'''
 
'''ID3v1:'''
  
  <font style="color:green">'''-V 2 --vbr-new'''</font> --id3v1-only --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> --id3v1-only --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
  
 
'''ID3v2:'''
 
'''ID3v2:'''
  
  <font style="color:green">'''-V 2 --vbr-new'''</font> --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
  
 
'''ID3v1 and ID3v2:'''
 
'''ID3v1 and ID3v2:'''
  
  <font style="color:green">'''-V 2 --vbr-new'''</font> --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
  
 
'''Automatic:'''
 
'''Automatic:'''
  
  <font style="color:green">'''-V 2 --vbr-new'''</font> --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
+
  <font style="color:green">'''-V2'''</font> --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
 
''Automatic'' means that by default only ID3v1 will be created. In case the length of at least one of the entries exceeds the permitted length of ID3v1, ID3v2 will be created in addition.
 
''Automatic'' means that by default only ID3v1 will be created. In case the length of at least one of the entries exceeds the permitted length of ID3v1, ID3v2 will be created in addition.
 
'''Note on ID3 tagging:''' Lame will exit with an error if you try to write a non-standard genre to either of the ID3 tags.  If you experience this issue, either remove '''--tg "%m"''' from, or add '''--ignore-tag-errors''' to the command line; or simply allow EAC to tag since it doesn't have this problem.
 
 
  
 
'''APEv2: (This requires [http://www.saunalahti.fi/cse/files/wapet.zip wapet.exe]. Remember to browse for wapet.exe instead of lame.exe as the external encoding program.)'''
 
'''APEv2: (This requires [http://www.saunalahti.fi/cse/files/wapet.zip wapet.exe]. Remember to browse for wapet.exe instead of lame.exe as the external encoding program.)'''
  
  '''%d''' -t "Artist=%a" -t "Title=%t" -t "Album=%g" -t "Year=%y" -t "Track=%n" -t "Genre=%m" <font style="font style="color:blue">LAME.exe</font> <font style="color:green">'''-V 2 --vbr-new'''</font> '''%s %d'''
+
  '''%d''' -t "Artist=%a" -t "Title=%t" -t "Album=%g" -t "Year=%y" -t "Track=%n" -t "Genre=%m" <font style="font style="color:blue">LAME.exe</font> <font style="color:green">'''-V2'''</font> '''%s %d'''
  
 
<font style="color:blue">'''Note 1:''' lame.exe needs to be in the same directory as wapet.exe.</font>
 
<font style="color:blue">'''Note 1:''' lame.exe needs to be in the same directory as wapet.exe.</font>
Line 62: Line 61:
 
<font style="color:Red">'''Note 4:''' The '''%l...%l''' and '''%h...%h''' placeholders are used to add text according to whether the High quality or Low quality radio button is selected, as shown below:</font>
 
<font style="color:Red">'''Note 4:''' The '''%l...%l''' and '''%h...%h''' placeholders are used to add text according to whether the High quality or Low quality radio button is selected, as shown below:</font>
  
  '''<font style="color:red">%l</font><font style="color:green">--preset 128</font><font style="color:red">%l%h</font><font style="color:green">--preset standard</font><font style="color:red">%h'''</font> '''%s %d'''
+
  '''<font style="color:red">%l</font><font style="color:green">-V5</font><font style="color:red">%l%h</font><font style="color:green">-V0</font><font style="color:red">%h'''</font> '''%s %d'''
  
 
Therefore, if you select '''Low quality''', EAC will invoke the LAME encoder with the following command line parameters:
 
Therefore, if you select '''Low quality''', EAC will invoke the LAME encoder with the following command line parameters:
  
  LAME.exe --preset 128 '''%s %d'''
+
  LAME.exe -V5 '''%s %d'''
  
 
..and if you select '''High quality''' EAC will invoke LAME with these command line parameters:
 
..and if you select '''High quality''' EAC will invoke LAME with these command line parameters:
  
  LAME.exe --preset standard '''%s %d'''
+
  LAME.exe -V0 '''%s %d'''
  
 
You can access the bitrate value in the dropdown list using the '''%r''' placeholder, For Example:
 
You can access the bitrate value in the dropdown list using the '''%r''' placeholder, For Example:
  
  --preset %r '''%s %d'''
+
  -b%r '''%s %d'''
  
 
So, if you selected '''192 kBit/s''' in the '''Bit Rate''' drop-down list, the command line would be:
 
So, if you selected '''192 kBit/s''' in the '''Bit Rate''' drop-down list, the command line would be:
  
  LAME.exe --preset 192 '''%s %d'''
+
  LAME.exe -b192 '''%s %d'''
  
 
It is a generally accepted fact that the bitrate selected in the drop-down list doesn't affect the command line. In essence this is true, as it will not affect the command line ''unless you use the %r placeholder''. However, using ABR or CBR over VBR is not recommended, and therefore you should never have to use the '''%r''' option.
 
It is a generally accepted fact that the bitrate selected in the drop-down list doesn't affect the command line. In essence this is true, as it will not affect the command line ''unless you use the %r placeholder''. However, using ABR or CBR over VBR is not recommended, and therefore you should never have to use the '''%r''' option.

Revision as of 07:56, 23 July 2009

Software Needed

Note: This guide has now been amended to reflect changes made to LAME as of 3.98. --vbr-new is now the default setting and is no longer explicitly required. In addition, non-standard genres are now handled more elegantly.

Installation

Note: This guide assumes that EAC has been configured for secure ripping, if not please follow this guide.

  • Unzip the chosen LAME version into the same directory as EAC.
  • If you would like to tag with APEv2 tags please download wapet.zip and unzip it into the same folder.

Configuration

  • Open EAC and insert a CD into the drive.
  • Click the EAC menu and select Compression Options.
  • Click the External Compression Tab, and put a check box in Use external program for compression.
  • Change Parameter passing scheme to User Defined Encoder (see this thread for reasoning).
  • Change Use file extension to .mp3.
  • Click the Browse button and locate the lame.exe that you unzipped into the EAC directory earlier.

Note: If you want to tag with APEv2 tags using Wapet please locate wapet.exe, not lame.exe.

  • Don't worry which bit rate is shown in the Bit rate drop down box, as this will not have any effect on the resultant MP3 file (See Note 4 at the bottom of this page).
  • Don't worry about the Use CRC check setting; it won't affect the resultant MP3 file either.
  • It's a good idea to tick Check for external programs return code.
  • If you wish to have EAC tag your files, you can safely tick Add ID3 tag; and in the Additional command line options box, copy and paste the following string:
-V2 %s %d
  • If you wish not to have tags or prefer to have EAC pass along data so that Lame can do the tagging, untick Add ID3 tag; and in the Additional command line options box, copy and paste one of the strings below, based on the tag format you prefer:

No Tags:

-V2 %s %d

ID3v1:

-V2 --id3v1-only --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d

ID3v2:

-V2 --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d

ID3v1 and ID3v2:

-V2 --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d

Automatic:

-V2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d

Automatic means that by default only ID3v1 will be created. In case the length of at least one of the entries exceeds the permitted length of ID3v1, ID3v2 will be created in addition.

APEv2: (This requires wapet.exe. Remember to browse for wapet.exe instead of lame.exe as the external encoding program.)

%d -t "Artist=%a" -t "Title=%t" -t "Album=%g" -t "Year=%y" -t "Track=%n" -t "Genre=%m" LAME.exe -V2 %s %d

Note 1: lame.exe needs to be in the same directory as wapet.exe.

Note 2: If you wanted to change the LAME preset, the green text denotes the part that needs to be altered.

Note 3: The %s and %d at the end of each string are placeholders for EAC. %s means source filename and %d means destination filename.

Note 4: The %l...%l and %h...%h placeholders are used to add text according to whether the High quality or Low quality radio button is selected, as shown below:

%l-V5%l%h-V0%h %s %d

Therefore, if you select Low quality, EAC will invoke the LAME encoder with the following command line parameters:

LAME.exe -V5 %s %d

..and if you select High quality EAC will invoke LAME with these command line parameters:

LAME.exe -V0 %s %d

You can access the bitrate value in the dropdown list using the %r placeholder, For Example:

-b%r %s %d

So, if you selected 192 kBit/s in the Bit Rate drop-down list, the command line would be:

LAME.exe -b192 %s %d

It is a generally accepted fact that the bitrate selected in the drop-down list doesn't affect the command line. In essence this is true, as it will not affect the command line unless you use the %r placeholder. However, using ABR or CBR over VBR is not recommended, and therefore you should never have to use the %r option.


LAME configured with ID3v1 tagging