CUETools

From Hydrogenaudio Knowledgebase

(Redirected from CueTools)
Jump to: navigation, search
CUETools
CUETools 2.1.4
Developer: Moitah,Gregory S. Chudov
Stable release: 2.1.4
Preview release: 2.1.5
OS: Windows via native .NET, Cross-platform via Mono
Use: Audio CD rip conversion and verification, multi-codec encoder and decoder
License: GNU GPL
Website: Discussion topic at Hydrogenaudio, Gregory S. Chudov’s official CUETools site


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 loses disc pre-gap information when converting an album image, and doesn't support gaps appended (noncompliant) CUE sheets.

Contents

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

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

[edit] AccurateRip support

Since version 1.9.2, CUETools can verify album images using the AccurateRip database. ARCue and TripleFLAC were an inspiration. The unique feature of CUETools AccurateRip verification is offset detection. A rip that was made without offset correction can still be verified against the database, and its 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

[edit] 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, with the track 01 pregap and data tracks 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 or foobar2000-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 they came from a CD-R which had been made from such a rip.

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.

If a data track is present, its 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 the original freedb DISCID (like all .cue sheets made by recent EAC versions), CUETools can detect that the data track 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.

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

[edit] Supported platforms

CUETools is a .NET application, written in C#. Processor dependent plugins are included for 32 bit (x86) and 64 bit (x64) Windows versions. .NET Framework 2.0 SP2 and Visual C++ 2008 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#.

[edit] External links

Personal tools