EAC and AAC (qaac): Difference between revisions

From Hydrogenaudio Knowledgebase
(→‎General Configuration for Encode ALAC: Update encoding parameters)
m (fix headings, move note to panel)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{EAC guides}}
{{EAC guides}}{{Locked‏‎}}
===Important note===
‎<onlyinclude><!-- Edits made between the 'onlyinclude' tags will also change the text in the EAC and ALAC (qaac) article -->
= Software Needed =
* [https://www.exactaudiocopy.de/en/index.php/resources/download/ Exact Audio Copy]
* [https://github.com/nu774/qaac/releases qaac - CLI QuickTime AAC/ALAC encoder]
* Apple Application Support (e.g. iTunes)


This guide is in need of an update, because '''in EAC 1.0 beta 2, the replacement strings changed'''. For example:
= Installation =
* "%s" is now "%source%"
'''Note:''' This guide assumes that EAC has been configured for secure ripping, if not please review [[EAC_Drive_Options|this]] guide.
* "%d" is now "%dest%"
* Download the latest version of [https://github.com/nu774/qaac/releases qaac - CLI QuickTime AAC/ALAC encoder]
* "%a" is now "%artist%"
* Uncompress the zip archive into a directory (e.g. {{code|'''C:\qaac'''}}). Alternatively you can uncompress just the files from the '''x64''' directory (64-bit) or just the files from the '''x86''' directory (32-bit) into a directory (e.g. {{code|'''C:\qaac'''}}).
See the full list in [http://www.exactaudiocopy.de/en/index.php/support/faq/ the EAC FAQ] or in the [http://wiki.hydrogenaudio.org/index.php?title=EAC_Compression_Options#External_Compression EAC Compression Options guide].
* <span id="check">Check for '''Apple Application Support'''</span>
*: If you believe that you already have the required '''Apple Application Support''' (e.g. iTunes installed) you can run this check:
*# Open a command prompt window (press {{key press|Win|R}}, then type {{code|'''cmd'''}} and press {{key press|Enter}}).
*# Change directory to where the '''qaac''' or '''qaac64''' file is located (e.g. type {{code|'''cd\qaac'''}} and press {{key press|Enter}}).
*# Type {{code|'''qaac64.exe --check'''}} (for 64-bit) or type {{code|'''qaac.exe --check'''}} (for 32-bit) and press {{key press|Enter}}.</br>A version number should be displayed.


===Software Needed===
* If you do not already have the required '''Apple Application Support'''
* [http://www.exactaudiocopy.de/en/index.php/resources/download/ Exact Audio Copy]
*: You can install iTunes.
* [https://github.com/nu774/qaac CLI QuickTime AAC/ALAC encoder]
*# Download [https://www.apple.com/itunes/download/win64 iTunes64Setup.exe] (64-bit) or [https://www.apple.com/itunes/download/win32 iTunesSetup.exe] (32-bit) and install.
*# Run the '''[[#check|check]]''' for '''Apple Application Support''' above.
* Alternative to installing iTunes
*: It is possible to extract the necessary '''Apple Application Support''' files without installing iTunes.
*# Install [https://www.7-zip.org/download.html 7-zip], if not already installed (the script used below requires it).
*# Download [https://www.apple.com/itunes/download/win64 iTunes64Setup.exe] (64-bit) or [https://www.apple.com/itunes/download/win32 iTunesSetup.exe] (32-bit) and move to the directory where you extracted the '''x64''' (64-bit) or the '''x86''' (32-bit) '''qaac''' files above.
*# Download [https://raw.githubusercontent.com/nu774/makeportable/master/makeportable2.cmd makeportable2.cmd] and move to the same directory.
*# Double-click on the {{code|'''makeportable2.cmd'''}} file.
*# The script will create a new subdirectory ({{code|'''\QTfiles64'''}} or {{code|'''\QTfiles'''}}) in the same directory.
*# Run the '''[[#check|check]]''' for '''Apple Application Support''' above.
*#: If all is working as expected, '''makeportable2.cmd''', '''iTunesSetup.exe''', and/or '''iTunes64Setup.exe''' are no longer needed.


'''Note:''' This guide has now been amended to reflect changes made to QAAC as of 2.18.
= Configuration =
 
===refalac's command line usage===
* [https://github.com/nu774/qaac/wiki/refalac-usage refalac usage]
 
===qaac's command line usage===
* [https://github.com/nu774/qaac/wiki/Command-Line-Options Command Line Options]
 
===Installation===
'''Note:''' This guide assumes that EAC has been configured for secure ripping, if not please follow [[EAC_Drive_Configuration | this]] guide.
* Download [https://github.com/nu774/qaac/releases the latest version of CLI QuickTime AAC/ALAC encoder], Then unzip the chosen QAAC version (include '''qaac.exe''' and '''refalac.exe''') into the same directory as EAC.
 
===General Configuration for Encode ALAC===


* Open EAC and insert a CD into the drive.
* Open EAC and insert a CD into the drive.
Line 30: Line 37:
* Click the '''External Compression''' Tab, and put a tick in the box for '''use external program for compression'''.
* Click the '''External Compression''' Tab, and put a tick in the box for '''use external program for compression'''.
* Change '''Parameter Passing Scheme''' to '''User Defined Encoder'''.
* Change '''Parameter Passing Scheme''' to '''User Defined Encoder'''.
* Change '''Use file extension''' to '''.m4a''' if not already that.
* Change '''Use file extension''' to '''.m4a''' (alternately you can use '''.mp4''').<!-- DO NOT suggest just MP4 for the general user, m4a (mp4 audio only) is default in qaac -->
* Click the '''Browse''' button and locate the '''refalac.exe''' or '''refalac64.exe''' that you unzipped earlier.
* Click the '''Browse''' button and locate the '''qaac.exe''' or '''qaac64.exe''' that you unzipped earlier.
* Remove the ticks from '''Use CRC check''' and '''Add ID3 tag'''.
* Remove the ticks from '''Use CRC check''' and '''Add ID3 tag'''.
* Tick '''Check for external programs return code'''.
* Tick '''Check for external programs return code'''.
* If you are using EAC 1.0b2 or newer, then in the '''Additional command line options''' box, copy and paste the following string:
* If you are using EAC 1.0b2 or newer, then in the '''Additional command line options''' box, copy and paste from the following example(s):‎</onlyinclude>


  --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr2%/%numtracks%" %source%  
AAC ABR (Small file size):
  <font style="color:green">-a 96 -q 1</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%


* <font style="color:red">'''Note''': Remember that you cannot change the compression level.</font>
AAC ABR (iTunes High Quality):
<font style="color:green">-a 128 -q 1</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%


===General Configuration for Encode AAC===
AAC True VBR mode (90):
<font style="color:green">-V90</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%


* Open EAC and insert a CD into the drive.
AAC Constrained VBR mode (iTunes Plus):
* Click the '''EAC''' menu and select '''Compression Options'''.
<font style="color:green">-v 256 -q 2</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%
* Click the '''External Compression''' Tab, and put a tick in the box for '''use external program for compression'''.
 
* Change '''Parameter Passing Scheme''' to '''User Defined Encoder'''.
AAC Constrained VBR mode (Maximum Quality):
* Change '''Use file extension''' to '''.m4a''' if not already that.
<font style="color:green">-v 0 -q 2</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%
* Click the '''Browse''' button and locate the '''qaac.exe''' that you unzipped earlier.
 
* Remove the ticks from '''Use CRC check''' and '''Add ID3 tag'''.
AAC Constrained VBR mode (Maximum Quality) with <font style="color:DarkOrange">cover</font>:
* Tick '''Check for external programs return code'''.
<font style="color:green">-v 0 -q 2</font> --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" <font style="color:DarkOrange">%hascover%--artwork "%coverfile%"%hascover%</font> -o %dest% %source%
* If you are using EAC 1.0b2 or newer, then in the '''Additional command line options''' box, copy and paste the following string:
 
<font style="color:green">'''Note:''' The green portion is where you would change the compression level.</font> <br />
[[Image:EACandQAAC.png|frame|center|600px|QAAC configured for AAC (Advanced Audio Coding)]]
 
* Do not worry about the bit rate is shown in the bit rate drop down box; this will be ignored, as will the quality setting below it.
 
== Copy Image & Create CUE Sheet ==
 
When extracting to an Image & CUE Sheet, the Tags (artist, album title, track titles, track numbers, etc.) are located in the CUE Sheet so you don't need to tag the Image.  
{{panel|title=Note:|There is a BUG in EAC where Track#2 information is used for all track related [[EAC_placeholders|placeholders]] when you use {{code|[Test & ]Copy Image & Create CUE Sheet > Compressed...}}. If you do decide to tag the Image, make sure to only use placeholders that are intended for the entire CD.|color=yellow}}
 
AAC Constrained VBR mode (Maximum Quality) with No Tags:
<font style="color:green">-v 0 -q 2</font> -o %dest% %source%
 
AAC Constrained VBR mode (Maximum Quality) with No Tags (except for the <font style="color:DarkOrange">cover</font>):
<font style="color:green">-v 0 -q 2</font> <font style="color:DarkOrange">%hascover%--artwork "%coverfile%"%hascover%</font> -o %dest% %source%
 
<!-- overcomplicated for general user, should be described as an advanced option with more detail on how to use %bitrate%
-- available bitrates for 2ch 44100Hz in QAAC are 64,72,80,96,112,128,144,160,192,224,256,288,320
-- available bitrates in EAC are 32,40,48,56,64,80,96,112,128,160,192,224,256.320,384,512,640,768,896,1024


  --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --composer "%composer%" --comment "%comment%" --genre "%genre%" --date "%year%" --track "%tracknr1%/%numtracks%" --disk "%cdnumber%/%totalcds%" %haslyrics%--lyrics "%lyricsfile%"%haslyrics% %hascover%--artwork "%coverfile%"%hascover% %islow%-a %bitrate%%islow% %ishigh%-v %bitrate%%ishigh% %source% -o %dest%
  --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" %islow%-a %bitrate%%islow% %ishigh%-v %bitrate%%ishigh% %source% -o %dest%  


* '''High quality''' in EAC = Constrained VBR mode = VBR on in iTunes.
* '''High quality''' in EAC = Constrained VBR mode = VBR on in iTunes.
* '''Low quality''' in EAC = ABR mode = VBR off in iTunes.
* '''Low quality''' in EAC = ABR mode = VBR off in iTunes.
* Note: for other encoding modes (such as CBR, True VBR, HE-AAC, etc.), edit the parameters between the %islow% and/or %ishigh% tags. See [https://github.com/nu774/qaac/wiki/Command-Line-Options Command Line Options].
* Note: for other encoding modes (such as CBR, True VBR, HE-AAC, etc.), edit the parameters between the %islow% and/or %ishigh% tags. See [https://github.com/nu774/qaac/wiki/Command-Line-Options Command Line Options]. -->
= qaac command line usage =
* [https://github.com/nu774/qaac/wiki/Command-Line-Options Command Line Options]


[[Category:Guides]]
[[Category:Guides]]
[[Category:EAC Guides|QAAC & EAC]]
[[Category:EAC Guides|AAC (qaac) & EAC]]
[[Category:EAC Compression Guides]]
[[Category:EAC Compression Guides|AAC (qaac) & EAC]]
[[Category:EAC External Compression Guides|AAC (qaac) & EAC]]
[[Category:EAC and AAC]]

Latest revision as of 14:06, 12 August 2024

Software Needed

Installation

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

  • Download the latest version of qaac - CLI QuickTime AAC/ALAC encoder
  • Uncompress the zip archive into a directory (e.g. C:\qaac). Alternatively you can uncompress just the files from the x64 directory (64-bit) or just the files from the x86 directory (32-bit) into a directory (e.g. C:\qaac).
  • Check for Apple Application Support
    If you believe that you already have the required Apple Application Support (e.g. iTunes installed) you can run this check:
    1. Open a command prompt window (press ⊞ Win+R, then type cmd and press ↵ Enter).
    2. Change directory to where the qaac or qaac64 file is located (e.g. type cd\qaac and press ↵ Enter).
    3. Type qaac64.exe --check (for 64-bit) or type qaac.exe --check (for 32-bit) and press ↵ Enter.
      A version number should be displayed.
  • If you do not already have the required Apple Application Support
    You can install iTunes.
    1. Download iTunes64Setup.exe (64-bit) or iTunesSetup.exe (32-bit) and install.
    2. Run the check for Apple Application Support above.
  • Alternative to installing iTunes
    It is possible to extract the necessary Apple Application Support files without installing iTunes.
    1. Install 7-zip, if not already installed (the script used below requires it).
    2. Download iTunes64Setup.exe (64-bit) or iTunesSetup.exe (32-bit) and move to the directory where you extracted the x64 (64-bit) or the x86 (32-bit) qaac files above.
    3. Download makeportable2.cmd and move to the same directory.
    4. Double-click on the makeportable2.cmd file.
    5. The script will create a new subdirectory (\QTfiles64 or \QTfiles) in the same directory.
    6. Run the check for Apple Application Support above.
      If all is working as expected, makeportable2.cmd, iTunesSetup.exe, and/or iTunes64Setup.exe are no longer needed.

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 tick in the box for use external program for compression.
  • Change Parameter Passing Scheme to User Defined Encoder.
  • Change Use file extension to .m4a (alternately you can use .mp4).
  • Click the Browse button and locate the qaac.exe or qaac64.exe that you unzipped earlier.
  • Remove the ticks from Use CRC check and Add ID3 tag.
  • Tick Check for external programs return code.
  • If you are using EAC 1.0b2 or newer, then in the Additional command line options box, copy and paste from the following example(s):‎

AAC ABR (Small file size):

-a 96 -q 1 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%

AAC ABR (iTunes High Quality):

-a 128 -q 1 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%

AAC True VBR mode (90):

-V90 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%

AAC Constrained VBR mode (iTunes Plus):

-v 256 -q 2 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%

AAC Constrained VBR mode (Maximum Quality):

-v 0 -q 2 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" -o %dest% %source%

AAC Constrained VBR mode (Maximum Quality) with cover:

-v 0 -q 2 --title "%title%" --artist "%artist%" --band "%albumartist%" --album "%albumtitle%" --genre "%genre%" --date "%year%" --track "%tracknr%/%numtracks%" %hascover%--artwork "%coverfile%"%hascover% -o %dest% %source%

Note: The green portion is where you would change the compression level.

QAAC configured for AAC (Advanced Audio Coding)
  • Do not worry about the bit rate is shown in the bit rate drop down box; this will be ignored, as will the quality setting below it.

Copy Image & Create CUE Sheet

When extracting to an Image & CUE Sheet, the Tags (artist, album title, track titles, track numbers, etc.) are located in the CUE Sheet so you don't need to tag the Image.

AAC Constrained VBR mode (Maximum Quality) with No Tags:

-v 0 -q 2 -o %dest% %source%

AAC Constrained VBR mode (Maximum Quality) with No Tags (except for the cover):

-v 0 -q 2 %hascover%--artwork "%coverfile%"%hascover% -o %dest% %source%

qaac command line usage