EAC and WavPack

From Hydrogenaudio Knowledgebase

Jump to: navigation, search

Contents

[edit] Important note

This guide is in need of an update, because in EAC 1.0 beta 2, the replacement strings changed. For example:

  • "%s" is now "%source%"
  • "%d" is now "%dest%"
  • "%a" is now "%artist%"

A page has been created to describe the change and convert between the two sets of command-line placeholders at EAC placeholders. See also the original list in the EAC FAQ or in the EAC Compression Options guide.

[edit] Software needed

[edit] Installation

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

  • Unzip Wavpack into the same directory that EAC is in.


[edit] 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.
  • Change user file extension to .wv if not already that.
  • Click the Browse button and locate the WAVPACK.EXE that you unzipped earlier.
  • Remove the ticks from Use CRC check, Add ID3 tag and check for external programs return code.
  • In the Addtional command line options box, copy and paste the string below.

No Tags:

-h %s %d

APEv2:

-w "Artist=%a" -w "Title=%t" -w "Album=%g" -w "Year=%y" -w "Track=%n" -w "Genre=%m" -h %s %d

Note: If a user wanted to change compression settings on Wavpack the green portion what you would substitute with the new preset.

  • Do not worry what bit rate is shown in the bit rate drop down box, this will be ignored.


Wavpack configured with tagging support

[edit] Hybrid mode

If you want to create a correction file while encoding from EAC you will need to adapt your normal command line slightly, to ensure that the correction file ("<name>.wvc") is named the same as the primary file ("<name>.wv"). If you do not follow these guidelines your correction file will be named incorrectly, using the temporary filename that EAC uses while processing.

Since Wavpack 4.1 beta you can specify an additional file path when using the -c switch to request a correction file. This filepath will be used to name the correction file.

The suggested method to implement this feature is to utilise the Use CRC check checkbox on the External Compression dialogue, to specify whether a correction file is required or not. In conjunction, you must also add the following to the end of your command line:

%c-c %o%c

For example:

-w "Artist=%a" -w "Title=%t" -w "Album=%g" -w "Track=%n" -hb320 %s %d %c-c %o%c

When you check Use CRC check the -c switch, and the file path specified by the EAC placeholder %o, will be included in your command line, creating a correction file with the correct file name. With Use CRC check unchecked no correction file will be created.

If you do not want this configurability, simply add:

-c %o

All encodes will then include a correction file, which is named correctly.


[edit] Embedding the cue-sheet in an audio image file

If you prefer to rip to an image file, and want to embed the cuesheet in the image, you can add the following tagging switch to your command line:

-w "Cuesheet=@*.cue"

This uses two of WavPack's features. Firstly, the '@' tells WavPack to set the 'Cuesheet' tag from the contents of a file. Secondly, the wildcard '*' tells WavPack to find the file itself, given the '.cue' restriction (i.e. "find the first '.cue' file you come across").

PLEASE NOTE: This will only work if there is one CUE file in the folder. WavPack will exit because of this command, if you have an existing cuesheet in the folder before starting. The easiest way is simply to ensure that you either move your previous rips beforehand, or rip to a new directory each time.

Example command-line:

-hm -w "Cuesheet=@*.cue" -w "Artist=%a" -w "Album=%g" -w "Year=%y" -w "Genre=%m" %s %d

[edit] Additional reading

Personal tools