Difference between revisions of "EAC and Lame"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (added a bit more colour)
m (Added "EAC guides" template.)
 
(50 intermediate revisions by 21 users not shown)
Line 1: Line 1:
==Software Needed==
+
{{EAC guides}}
* [http://exactaudiocopy.org/eac6.html Exact Audio Copy]
+
===Important note===
* [http://www.rarewares.org/dancer/dancer.php?f=1 Lame 3.90.3]
+
'''OR'''
+
* [http://rarewares.org/dancer/dancer.php?f=2 Lame 3.96.1]
+
  
Note: Although LAME is being continuously developed, the version that is extensively tested and recommended here at hydrogenaudio.org is version 3.90.3. So, you may want to stick with that version for now until a later version is tested and recommended.
+
'''From EAC 1.0 beta 2, the replacement strings changed'''. For example:
 +
* "%s" is now "%source%"
 +
* "%d" is now "%dest%"
 +
* "%a" is now "%artist%"
 +
* "%l" is now "%islow%"
 +
* "%h" is now "%ishigh%"
 +
See the full list in the [http://wiki.hydrogenaud.io/index.php?title=EAC_placeholders EAC Placeholders] page, the [http://wiki.hydrogenaudio.org/index.php?title=EAC_Compression_Options#External_compression EAC Compression Options guide] or in the original [http://www.exactaudiocopy.de/en/index.php/support/faq/ EAC FAQ].
  
 +
===Software Needed===
 +
* [http://www.exactaudiocopy.de/en/index.php/resources/download/ Exact Audio Copy]
 +
* [http://wiki.hydrogenaudio.org/index.php?title=Recommended_LAME Recommended LAME version]
  
==Installation==
+
'''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.
'''Note:''' This guide assumes that EAC is has been configured for secure ripping, if not please follow [[EAC_Drive_Configuration | this]] guide.
+
* Unzip the chosen lame version into the same directory that EAC is in.
+
  
 +
===Installation===
 +
'''Note:''' This guide assumes that EAC has been configured for secure ripping, if not please follow [[EAC_Drive_Configuration | this]] guide.
 +
* Unzip the chosen LAME version into the same directory as EAC.
 +
* If you would like to tag with APEv2 tags please download [http://www.rarewares.org/files/others/wapet.zip wapet.zip] and unzip it into the '''same folder'''.
  
==Configuration==
+
===General Configuration===
  
 
* Open EAC and insert a CD into the drive.
 
* Open EAC and insert a CD into the drive.
 
* Click the '''EAC''' menu and select '''Compression Options'''.
 
* Click the '''EAC''' menu and select '''Compression Options'''.
* Click the '''External Compression''' Tab, and put a check box in '''use external program for compression'''.
+
* Click the '''External Compression''' Tab, and put a check box in '''Use external program for compression'''.
* Change '''Parameter Passing Scheme''' to '''User Defined Encoder'''.
+
* Change '''Parameter passing scheme''' to '''User Defined Encoder''' (see [http://www.hydrogenaudio.org/forums/index.php?showtopic=57617 this thread] for reasoning).
* Change '''Use file extension''' to '''.mp3''' if not already that.
+
* Change '''Use file extension''' to '''.mp3'''.
* Click the '''Browse''' button and locate the '''LAME.EXE''' that you unzipped earlier.
+
* Click the '''Browse''' button and locate the '''lame.exe''' that you unzipped into the EAC directory earlier.
* Remove the ticks from '''Use CRC check''', '''Add ID3 tag''' and '''check for external programs return code'''.
+
'''Note:''' If you want to tag with APEv2 tags using Wapet  please locate '''wapet.exe''', not lame.exe.
* Do not worry what 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 which bit rate is shown in the '''Bit rate''' drop-down box, as this will not have any effect on the resultant MP3 file unless the %bitrate% placeholder is used (see end of the [[EAC_and_Lame#Advanced_Command_Line_Usage| Advanced Command Line Usage section]]).
 +
* 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'''.
  
* In the '''Addtional command line options''' box, copy and paste one of the below strings based on the Tag you would prefer.
+
===Configuring the Additional command line options===
'''No Tags:'''
+
* The <font style="color:green">'''green'''</font> portion in the examples following this section is where you configure the [[LAME#Encoder_Presets| LAME preset]].
  
<font style="color:green">'''--alt-preset standard'''</font> %s %d
+
* The '''%source%''' (formerly '''%s''') and '''%dest%''' (formerly '''%d''')  in the examples following this section are placeholders for EAC. '''%source%''' means '''source''' filename and  '''%dest%''' means '''destination''' filename.  These are absolutely necessary!
  
'''ID3v1:'''
+
* For specifics see the LAME [http://lame.cvs.sourceforge.net/viewvc/lame/lame/USAGE usage instructions].
  
<font style="color:green">'''--alt-preset standard'''</font> --id3v1-only --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
+
===Adding Tags===
  
'''ID3v2:'''
+
Note: Always use the '''[Test Encoder]''' Button to check your Command Line string. With EAC V1.0 beta 3 if you get a message: "Invalid replacement tag found !" try replacing<br>
 +
each occurence of "%" with "%%" since you need to use double percent so one can be escaped and allow the second one to be passed to Lame.
  
<font style="color:green">'''--alt-preset standard'''</font> --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
 
  
'''ID3v1 and ID3v2:'''
+
'''Let EAC create tags (Recommended)'''
  
  <font style="color:green">'''--alt-preset standard'''</font> --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d
+
To have EAC tag your files, tick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste the following string:
 +
  <font style="color:green">'''-V2'''</font> '''%source% %dest%'''
  
'''APEv2: (requires [http://www.saunalahti.fi/cse/files/wapet.zip wapet.exe])'''
+
'''Create files with no tags'''
* Set file extension to .mp3
+
* Locate '''wapet.exe'''
+
%d -t "Artist=%a" -t "Title=%t" -t "Album=%g" -t "Year=%y" -t "Track=%n" -t "Genre=%m" <font style="color:blue">lame.exe</font> <font style="color:green">'''--alt-preset standard'''</font> %s %d
+
  
 +
If you do not wish to have tags, untick '''Add ID3 tag'''; and in the '''Additional command line options''' box, copy and paste the following string:
 +
<font style="color:green">'''-V2'''</font> '''%source% %dest%'''
  
 +
'''Let Lame create tags'''
  
<font style="color:blue">'''Note 1:''' lame.exe needs to be in the same directory as wapet.exe.</font>
+
If you prefer to have Lame tag the files based on information shown in the EAC GUI, '''untick''' the checkbox next to '''Add ID3 tag'''. This is recommended in the article about [http://wiki.hydrogenaudio.org/index.php?title=EAC_Compression_Options#External_compression EAC Compression Options].
  
<font style="color:green">'''Note 2:''' If you wanted to change the [[LAME#Encoder_Presets| Lame preset]], the green portion what you would substitute with the new preset.</font>
+
Here are some examples providing different tag types:
  
<font style="color:green">'''Note 3:''' If you are using Lame version 3.95.1+, please note that '''--alt-preset''' is no longer used, it is now just '''--preset'''</font>
+
* ID3v1 only:
 +
<font style="color:green">'''-V2'''</font> --id3v1-only --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" '''%source% %dest%'''
  
<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>
+
* ID3v2 only :
 +
<font style="color:green">-V2</font> --id3v2-only --pad-id3v2 --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" %source% %dest%
  
 +
* ID3v2 only (before EAC version 1.0b2 - for comparison):
 +
<font style="color:green">'''-V2'''</font> --id3v2-only --pad-id3v2 --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" '''%s %d'''
  
  '''<font style="color:red">%l</font><font style="color:green">--alt-preset 128</font><font style="color:red">%l%h</font><font style="color:green">--alt-preset standard</font><font style="color:red">%h'''</font> %s %d
+
* ID3v1 and ID3v2:
 +
<font style="color:green">'''-V2'''</font> --add-id3v2 --pad-id3v2 --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" '''%source% %dest%'''
 +
 
 +
* Automatic:
 +
<font style="color:green">'''-V2'''</font> --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" '''%source% %dest%'''
 +
With Automatic, ID3v1 will always be created.  If any ID3v1 field exceeds the length allowed by the ID3v1 specification then a complete ID3v2 tag will also be added.
 +
 
 +
'''Use Wapet to create APEv2 tags'''
 +
 
 +
If you prefer instead to have APEv2 tags based on information shown in the EAC GUI, '''untick''' the checkbox next to '''Add ID3 tag'''
 +
 
 +
'''Note:''' Creating APE tags requires [http://www.rarewares.org/files/others/wapet.zip wapet.exe]. Remember to browse for wapet.exe instead of lame.exe as the external encoding program. Also, lame.exe needs to be in the same directory as wapet.exe.
 +
 
 +
Use the following string:
 +
'''%dest%''' -t "Artist=%artist%" -t "Title=%title%" -t "Album=%albumtitle%" -t "Year=%year%" -t "Track=%tracknr%/%numtracks%" -t "Genre=%genre%" LAME.exe <font style="color:green">'''-V2'''</font> '''%source% %dest%'''
 +
 
 +
===Advanced Command Line Usage===
 +
* The <font style="color:Red">'''%islow%...%islow%'''</font> and <font style="color:Red">''''%ishigh%...%ishigh%'''</font> placeholders are used to add text according to whether the High quality or Low quality radio button is selected, as shown below:
 +
 
 +
  '''<font style="color:red">%islow%</font><font style="color:green">-V5</font><font style="color:red">%islow%%ishigh%</font><font style="color:green">-V0</font><font style="color:red">%ishigh%'''</font> '''%source% %dest%'''
  
 
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 --alt-preset 128 %s %d
+
  <font style="color:green">'''-V5'''</font> '''%source% %dest%'''
  
 
..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 --alt-preset standard %s %d
+
  <font style="color:green">'''-V0'''</font> '''%source% %dest%'''
  
You can access the bitrate value in the dropdown list using the '''%r''' placeholder, For Example:
+
* You can access the bitrate value in the drop-down list using the <font style="color:blue">'''%bitrate%'''</font> placeholder, for example:
  
  --alt-preset %r %s %d
+
  <font style="color:green">'''-b'''</font><font style="color:blue">'''%bitrate%'''</font> '''%source% %dest%'''
  
 
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 --alt-preset 192 %s %d
+
  <font style="color:green">'''-b'''</font><font style="color:blue">'''192'''</font> '''%source% %dest%'''
 
+
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 hence, you will probably 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 '''%bitrate%''' (formerly '''%r''') placeholder''. However, the bitrate needs only be set when using ABR or CBR over VBR, which is not recommended for better quality audio.
  
<center>[[Image:EAC_LAME02.png|frame|center|Lame configured with ID3v1 tagging]]</center>
 
  
 +
<center>[[Image:EAC_LAME02.png|frame|center|LAME configured with ID3v1 tagging (and replacement strings used before EAC version 1.0 beta 2)]]</center>
  
==Addtional Reading==
+
[[Category:Guides]]
* [[MP3]]
+
[[Category:EAC Guides|LAME & EAC]]
* [[LAME]]
+
[[Category:EAC Compression Guides]]
* [[Exact_Audio_Copy|Exact Audio Copy]]
+

Latest revision as of 19:12, 23 March 2020

Important note[edit]

From EAC 1.0 beta 2, the replacement strings changed. For example:

  • "%s" is now "%source%"
  • "%d" is now "%dest%"
  • "%a" is now "%artist%"
  • "%l" is now "%islow%"
  • "%h" is now "%ishigh%"

See the full list in the EAC Placeholders page, the EAC Compression Options guide or in the original EAC FAQ.

Software Needed[edit]

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[edit]

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.

General Configuration[edit]

  • 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 unless the %bitrate% placeholder is used (see end of the Advanced Command Line Usage section).
  • 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.

Configuring the Additional command line options[edit]

  • The green portion in the examples following this section is where you configure the LAME preset.
  • The %source% (formerly %s) and %dest% (formerly %d) in the examples following this section are placeholders for EAC. %source% means source filename and %dest% means destination filename. These are absolutely necessary!

Adding Tags[edit]

Note: Always use the [Test Encoder] Button to check your Command Line string. With EAC V1.0 beta 3 if you get a message: "Invalid replacement tag found !" try replacing
each occurence of "%" with "%%" since you need to use double percent so one can be escaped and allow the second one to be passed to Lame.


Let EAC create tags (Recommended)

To have EAC tag your files, tick Add ID3 tag; and in the Additional command line options box, copy and paste the following string:

-V2 %source% %dest%

Create files with no tags

If you do not wish to have tags, untick Add ID3 tag; and in the Additional command line options box, copy and paste the following string:

-V2 %source% %dest%

Let Lame create tags

If you prefer to have Lame tag the files based on information shown in the EAC GUI, untick the checkbox next to Add ID3 tag. This is recommended in the article about EAC Compression Options.

Here are some examples providing different tag types:

  • ID3v1 only:
-V2 --id3v1-only --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" %source% %dest%
  • ID3v2 only :
-V2 --id3v2-only --pad-id3v2 --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" %source% %dest%
  • ID3v2 only (before EAC version 1.0b2 - for comparison):
-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 "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" %source% %dest%
  • Automatic:
-V2 --ta "%artist%" --tt "%title%" --tg "%genre%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr%/%numtracks%" %source% %dest%

With Automatic, ID3v1 will always be created. If any ID3v1 field exceeds the length allowed by the ID3v1 specification then a complete ID3v2 tag will also be added.

Use Wapet to create APEv2 tags

If you prefer instead to have APEv2 tags based on information shown in the EAC GUI, untick the checkbox next to Add ID3 tag

Note: Creating APE tags requires wapet.exe. Remember to browse for wapet.exe instead of lame.exe as the external encoding program. Also, lame.exe needs to be in the same directory as wapet.exe.

Use the following string:

%dest% -t "Artist=%artist%" -t "Title=%title%" -t "Album=%albumtitle%" -t "Year=%year%" -t "Track=%tracknr%/%numtracks%" -t "Genre=%genre%" LAME.exe -V2 %source% %dest%

Advanced Command Line Usage[edit]

  • The %islow%...%islow% and '%ishigh%...%ishigh% placeholders are used to add text according to whether the High quality or Low quality radio button is selected, as shown below:
%islow%-V5%islow%%ishigh%-V0%ishigh% %source% %dest%

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

-V5 %source% %dest%

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

-V0 %source% %dest%
  • You can access the bitrate value in the drop-down list using the %bitrate% placeholder, for example:
-b%bitrate% %source% %dest%

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

-b192 %source% %dest%

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 %bitrate% (formerly %r) placeholder. However, the bitrate needs only be set when using ABR or CBR over VBR, which is not recommended for better quality audio.


LAME configured with ID3v1 tagging (and replacement strings used before EAC version 1.0 beta 2)