Difference between revisions of "CUETools"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
(Supported formats: updated ALAC info)
Line 16: Line 16:
  
 
==Supported formats==
 
==Supported formats==
Supports [[WAV]], [[FLAC]], [[APE]], [[LossyWAV]] and [[WavPack]] audio input/output. [[ALAC]] is supported for input only.
+
Supports [[WAV]], [[FLAC]], [[APE]], [[LossyWAV]], [[WavPack]] and [[ALAC]] audio input/output.
 
Audio must be 16-bit, 44.1kHz samples stereo (i.e. [[Wikipedia:Red Book (audio CD standard)|CD]] PCM).
 
Audio must be 16-bit, 44.1kHz samples stereo (i.e. [[Wikipedia:Red Book (audio CD standard)|CD]] PCM).
 
Supports every imaginable [[Cue sheet|CUE sheet]] style (embedded, single file, gaps appended/prepended/left out).
 
Supports every imaginable [[Cue sheet|CUE sheet]] style (embedded, single file, gaps appended/prepended/left out).

Revision as of 10:13, 14 September 2010

CUETools
CUETools 2.0.8
Developer(s) Moitah,Gregory S. Chudov
Release information
Initial release {{{released}}}
Stable release 2.0.9
Preview release none
Compatibility
Operating system Windows via native .NET, Cross-platform via Mono
Additional information
Use Audio CD rip conversion and verification, multi-codec encoder and decoder
License GNU GPL
Website Hydrogenaudio, CUETools

CUETools is a tool for lossless audio/CUE sheet format conversion. The goal is to make sure the album image is preserved accurately. Lossless disc image must be lossless not only in preserving contents of the audio tracks, but also in preserving gaps and CUE sheet contents. Many applications lose vital information upon conversion, and don't support all possible CUE sheet styles. For example, foobar2000 looses disc pre-gap information when converting an album image, and doesn't support gaps appended (noncompliant) CUE sheets.

Supported formats

Supports WAV, FLAC, APE, LossyWAV, WavPack and ALAC audio input/output. Audio must be 16-bit, 44.1kHz samples stereo (i.e. CD PCM). Supports every imaginable CUE sheet style (embedded, single file, gaps appended/prepended/left out). It is also possible to process a set of audio files in a directory without a CUE sheet, or use a RAR archive as an input without unpacking it.

Use cases

  • Convert a single file album image with CUE sheet to a file-per-track album image
  • Convert a file-per-track album image with CUE sheet to a single file album image
  • Convert a file-per-track album image without a CUE sheet to a single file album image with simple CUE sheet
  • Convert an album image from one lossless codec to another, preserving CUE sheet structure
  • Verify a (possibly non offset-corrected) album image against AccurateRip database
  • Apply offset correction to a rip made without offset correction
  • Prepare an album image for burning with software, which does not handle drive write offsets, by applying offset
  • Extract an album image directly from a RAR archive without unpacking it, and save it in a different format
  • Fix filenames in a CUE sheet, if the files were renamed or converted to a different format.
  • Compress to LossyWAV, creating a lossy output + correction file.
  • Convert a HDCD image to 24-bit / 20-bit / lossyWAV 16-bit audio files (irreversible).

AccurateRip support

Since version 1.9.2, CUETools can verify album images using AccurateRip database. ARCue and TripleFLAC were an inspiration. The unique feature of CUETools AccurateRip verification is offset detection. Rip that was made without offset correction can still be verified against the database, offset can be found and corrected.

Sample log:

[Disc ID: 000d44e3-005781a4-6b09df03]
Track [ CRC ] Status
01 [4a3fc0dd] (00/118) No matches
02 [a9382641] (00/118) No matches
03 [ebf74add] (00/116) No matches
Offsetted by -738:
01 [fd79d20e] (08/118) Accurately ripped as in pressing(s) #1
02 [a0b20dcc] (08/118) Accurately ripped as in pressing(s) #1
03 [44bacfd7] (08/116) Accurately ripped as in pressing(s) #1
Offsetted by -265:
01 [b5d7e187] (05/118) Accurately ripped as in pressing(s) #4
02 [29867165] (05/118) Accurately ripped as in pressing(s) #4
03 [380c013d] (05/116) Accurately ripped as in pressing(s) #4

What's wrong if I'm sure the CD is present in the database, but CUETools doesn't find it?

CDs in the AccurateRip database are identified by the track lengths. Pregap and data track included. If you rip to separate tracks without a .cue sheet, this information is lost. If the CD had a pregap and/or data track, you won't find it in the database without a .cue sheet (or using dummy .cue sheet, or using Foobar2k-generated .cue sheet). Sometimes you will find a wrong set, e.g. if the disc was released in two versions - with and without data track. You rip a version with data track, and verify it without a .cue sheet, and your files look like the version without a data track. Or you rip a CD which has a pregap, and try verify it without a .cue sheet, your files look like a CD-R which someone made from such a rip, and then ripped it.

So make sure you have original .cue sheet and EAC .log available. Keeping the original .cue ensures that you don't lose the pregap length. Data track length is not stored in .cue sheet, but if you have an EAC log made by the recent versions of EAC, CUETools can find the data track length from it. For this to work, the .log file should have the same filename as the .cue file, aside from the extension. If you don't have a .log file, but your .cue sheet contains original DISCID (like all .cue sheets made by recent EAC versions), CUETools can detect that the datatrack was present and hint for a possible data track length range. You can try to enter 75 different values in that range manually to find an exact length.

Command line options

  • CUETools.exe /verify <filename> - verify an image using AccurateRip database.
  • CUETools.exe /convert <filename> - convert an image to the default output format.
  • CUETools.exe <filename> - open CUETools dialog, with input file set to <filename>.
  • ArCueDotNet.exe <filename> - console version of AccurateRip verification.
  • LossyWAVSharp.exe <filename> - console lossyWAV compression utility

Supported platforms

CUETools is a .NET application, written in C#. Binaries are available for 32 bit (x86) and 64 bit (x64) Windows versions. .NET Framework 2.0 and Visual C++ 2005 SP1 runtime are required. Users report they have been able to use it under GNU/Linux, using Mono, but in this scenario only WAV audio is supported, as other codecs are not yet ported to C#.

External links