Table of Contents

Exact Audio Helper for Exact Audio Copy v1.5

Overview

Exact Audio Copy

Exact Audio Helper

Requirements

  1. Copy tracks compressed losslessly to my audio file server for home use. I use the FLAC codec for this.
  2. Copy tracks compressed lossy with maximum compatibility and small file size to my audio file server for portable use. I use the MP3 codec for this, with the LAME encoder.
  3. Simple and speedy copying and encoding
  4. Every CD is processed only one time for both formats
  5. Proper meta tagging
  6. Replay Gain calculation in tags only, without modifying original compressed track file
  7. Integrate Album Art into each track file
  8. Compatible with Apple and Android portable devices

Other encoders

Installation

Ripping and tagging

  1. Download and install Exact Audio Copy
  2. Download Exact Audio Helper and install the zip file to a portable directory. Create a tools folder within this directory to keep the executables required to run EAC and EAH.
  3. Download the current 64 bit version of FLAC (as of 4 Sep 2020 this is version 1.3.2). Open the zip file and extract flac.exe and metaflac.exe from the win64 folder to your EAH tools folder (a folder of your choice).
  4. Download the current 64 bit version of LAME from Rarewares' LAME Bundles (as of 4 Sep 2020 this is version 3.100). Open the zip file and extract lame.exe and lame_enc.dll to your EAH tools folder.
  5. Download Akkurat's REACT mod, or this file react_2.0.akku.b04.zip, in case the link is not active. Open the zip file and extract metamp3.exe from the tools folder to your EAH tools folder.
  6. Download and install ImageMagic. There are many different versions available, you may choose to download a zip file without installer. Choose the Portable Win64 static at 16 bits-per-pixel component, you won't need HDRI. As of 4 Sep 2020 this is version 7.0.10-28. Open the zip file and extract convert.exe to your EAH tools folder.
  7. Download and install the current 64 bit version of Album Art Downloader, as of 4 Sep 2020 this is version 1.0.5. Album Art Downloader needs the .NET 3.5 Framework to run, which you might need to install first.

Trouble shoot encoder settings

Mp3tag

Mp3tag is a powerful meta tag viewer and editor. Despite it's name it supports many different audio file formats:

mid3v2

mid3v2 is part of the Mutagen package which allows detailed analysis of MP3 meta tags.

  1. Install Python. Go to the Microsoft Store, search for “python”, and install Python 3.8. Check that it has properly installed with:
    powershell python --version
  2. Install Mutagen with:
    powershell python -m pip install mutagen
  3. There will be a warning that the script directory is not in your path, so Windows cannot find the executables automatically. It will display something like “C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts”
  4. Add this path to your user's environment, so you don't need to type the full path everytime you need to run mid3v2.exe. Open Windows' Start Search, type “env”, then choose “Edit the system environment variables”, and click the “Environment Variables…” button at the bottom.

Music player

Configuration

Configuration of EAH is very flexible and can be adjusted to your EAC configuration. I have included my own setup in the walk through below, which adds proper meta tags, the album art image, and replay gain to each extracted track for mp3 and flac. To make EAC and EAH work together seamlessly I have also added the important settings of EAC to the walk through. EAH is configured completely independently from EAC, and does not modify any EAC settings or the registry. This keeps is transparent, but requires that you setup EAC properly in order to work with EAH.

EAC Configuration

MP3 Configuration

FLAC Configuration

Place holders

EAH and AAH use the same place holders as EAC does. This table explains the place holders, and where they are available. You can use them for file names and other options where reference to album and track information is required.

Place holder Explanation EAC EAH AAH
Place holders available in EAC only
%source% source filename T - -
%dest% destination filename T - -
%original% original filename (without temporary renaming) T - -
%ishigh% text between 2 such place holders only when “High quality” selected A - -
%islow% text between 2 such place holders only when “Low quality” selected A - -
%haslyrics% text between 2 such place holders only when lyrics exist T - -
%hascover% text between 2 such place holders only when storing cd cover is enabled and cover exists A - -
%crcenabled% text between 2 such place holders only when “CRC checksum” selected T - -
%tracklen% track duration T - -
%lengthmin% track duration (minutes part) T - -
%lengthsec% track duration (seconds part) T - -
%cddbtype% freedb music type A - -
%cddbid% freedb ID A - -
%lyrics% lyrics T - -
%lyricsfile% filename of lyrics text file T - -
%trackcrc% CRC of extracted track T - -
%bitrate% selected bitrate A - -
Place holders available in EAH and AAH
%tracknr% track number (same as %tracknr2%) T - T
%tracknr1% track number (at least 1 digit) T - T
%tracknr2% track number (at least 2 digits) T - T
%tracknr3% track number (at least 3 digits) T - T
%numtracks% number of tracks on CD/album A - A
%cdnumber% number of the CD A A A
%totalcds% total number of CDs in the given CD set A A A
%title% track title T - T
%artist% track artist T - T
%genre% music genre A A A
%year% year A A A+T1
%composer% track performer T - T
%albumtitle% CD title A A A
%albumartist% CD artist A A A
%albumcomposer% CD composer A A A
%albuminterpret% CD performer A A A
%comment% comment A A A
%coverfile% filename of CD cover image A A A
%workspace% working folder for temporary files - F F
%scriptdir% directory the script is run from - F F
%username% current user logged in to windows - A A
%today% today's date - A A

Scope: A=album, T=track, F=folder, -=not available. 1In AAH %year% is replaced with the year indicated for each track, if a track_artists.txt file exists and the year is specified for the track, replaced with the “album” year taken from the GUI otherwise.

Work flow

  1. You should always make sure that your workspace (the extraction directory) is empty before you start a new session.
  2. Start EAH which starts EAC and inserts an additional menu entry “Encode”EAC
  3. Multi-CD album: set Number of CDs and CD Number first.
  4. If you have a Compilation CD, set the Various Artists checkbox. The CD Artist field will be replaced with the string for Various Artists as set in EAH.ini. In case you have a Compilation CD but you want to assign a main artist to this CD, this is possible too. In this case, set the checkbox, then overwrite the CD Artist field with the main artist.
  5. Select Encode –> Copy & encode tracks or Shift-F5. This is the same as invoking EAC's built-in function Action –> Copy Selected Tracks –> Compressed… and is repeated here for convenience. All tracks will be copied from CD and encoded with the encoders as defined in the EAC configuration. EAH menu
  6. After all tracks have been copied, hit the “OK” button, then select “Create Log” and “Save”, which saves the log file to the extraction directory, then hit “OK” to finish extraction.
  7. Multi-CD album: select Encode –> Multi CD file rename. I prefer to have all music files in one directory for multiple CD albums, rather than having them split into different album names. All tracks which are not renamed yet will be renamed with the CD Number in front of the file name. For example, file “01 First track.mp3” becomes “1-01 First track.mp3”. This is necessary to separate the tracks from the different CDs in the set, and is the better way than EAC's built-in Continue from last track number functionality. The file rename does not affect track naming.
  8. Multi-CD album: repeat step 5-7 for all CDs in the set.
  9. Select Encode –> Get album art or Shift-F9 to open AlbumArtDownloader.exe, find a cover file, and save it to the work space. If a jpg image file already exists in work space, or in the “AlbumArtPath” (which is in EAH.ini settings), then this step is not necessary and can be skipped.
  10. Finally, select RG & Cover Art & file tracks or Ctrl-F9 to compute replay gain, add the cover art image file to each track, add the comment as set in the EAH.ini file, and move all tracks to the folder for encoded tracks as set in EAH.ini. It is easy to organize your music into a structure like “flac/artist name/album name” or “mp3/artist name/album name”.


Configuration walk through

EAC Options

In tab General, enable “Show status dialog after extraction”, “wait for external compressors”, and chose the “language”EAC Options - General
In tab Filename and Additional Filename, set the Naming scheme to “%tracknr2% %title%”EAC Options - Filename
In tab Extraction, enable “Lock drive tray during extraction”, set Extraction and compression priority to “Normal”, and Error recovery quality to “High”EAC Options - Extraction
In tab Directories, chose the directory for the temporary files, which must be the same directory as set for option “Workspace” in EAH.iniEAC Options - Directories
In tab Character Replacements, change the replacement settings to your preference, I prefer to replace double quotes “ with single quotes ', ”?“ with an empty string, “’” with ”'“, and ”:“ with ”;“. Refer to the Limitations below for further information about the character replacements in file names.EAC Options - Character Replacements

Compression Options

In tab External Compression and Additional External Compression, select “Use external program for compression”, “User Defined Encoder”, matching “file extension”, “Program, including path, used for compression”, “Additional command-line options”, “Bit rate”, “Delete WAV after compression” (for External Compression only), “High quality”, and un-check “Add ID3 tag”Compression Options - External Compression
For MP3 encoding I chose a medium bit rate of 160 kBit/s, which ensures good audio quality with relatively small file size. These files are used on mobile devices, a higher bit rate would probably remain unnoticed on such devices. I would set the following command line options, which ensure all meta tags are set except replay gain, cover art image, and comment, as these will be set through EAH and set in EAH.ini under “MetaOpt”:

-V4 --vbr-new --id3v2-only --replaygain-accurate --ignore-tag-errors --ta "%artist%" --tt "%title%" --tl "%albumtitle%" --ty "%year%" --tn "%tracknr1%/%numtracks%" --tg "%genre%" --tv "TPE2=%albumartist%" --tv "TPE3=%albuminterpret%" --tv "TPOS=%cdnumber%/%totalcds%" --tv "TCOM=%composer%" %source% %dest%


For FLAC encoding I chose the highest bit rate of 1024 kBit/s, which ensures best possible audio quality. These files are used on my HIFI audio system at home, where I don't want to compromise on audio quality. I would set the following command line options, which ensure all meta tags are set except replay gain, cover art image, and comment, as these will be set through EAH and set in EAH.ini under “AddMetaOpt”:

-8 -V -T "ARTIST=%artist%" -T "TITLE=%title%" -T "ALBUM=%albumtitle%" -T "DATE=%year%" -T "TRACKNUMBER=%tracknr1%" -T "TOTALTRACKS=%numtracks%" -T "GENRE=%genre%" -T "ALBUMARTIST=%albumartist%" -T "PERFORMER=%albuminterpret%" -T "DISCNUMBER=%cdnumber%" -T "TOTALDISCS=%totalcds%" -T "COMPOSER=%composer%" %source% -o %dest%


In tab ID3 Tag, check “Write ID3V2 tags using UTF16”, un-check “Write ID3V1 tags”, “Use ID3V1.1 tags instead of ID3V1.0 tags”, “Add cover image to ID3V2 tag”, and “Write cover image into extraction folder” (all of which will be handled by EAH)Compression Options - ID3 Tag

Trouble Shooting / Limitations

Trouble Shooting

  1. Use Verify Audio Helper (VAH.exe) to make sure your destination folders are in sync, if you use 2 encoders. There is no separate help file, but the app is self explanatory, and the settings in the ini file are simple.
  2. Set $debug = 1 in the source file and run in from within the AutoIt environment

Limitations

  1. Track names cannot start with 1 or 2 digits followed by a hyphen and 2 or 3 digits, if the track is part of a MultiCD when tagging.
  2. If a track name contains more than 1 dot before the extension (e.g. Even in the Quietest Moments….mp3), then all but 1 dot are removed from the track file name, because metamp3.exe cannot handle it. The resulting file name would be something like 01 Even in the Quietest Moments.mp3. This does not apply if the multiple dots are in the middle or at the beginning of the track name.
  3. Illegal file name characters are removed from the track file name, but not from the track title in the meta tags. Illegal characters are defined in EAC or in the ini file, see EAC Options - Character Replacements. You need to add character ’ to that list, which metamp3.exe cannot handle. There might be more characters metamp3.exe cannot handle, which I did not find yet. You can find them when you observe the output after invoking function “RG & Cover Art & file tracks” and check the total files processed. If that number is lower than the number of tracks in EAC check which file does not get processed by metamp3.exe.

Here is how to deal with these limitations:

  1. Remove the hyphen between the digits before encoding. Complete encoding, tagging and moving all tracks to the destination folder, then modify the title tag of these files manually with Mp3tag.