cuerecover

generate .cue file for CD image .bin

Manual section:1
Manual group:Urchlay
Date: 2020-05-12
Version: 0.1.0

SYNOPSIS

cuerecover [-o output] [-s sec] [-t thresh] bin-file [bin-file ...]

DESCRIPTION

cuerecover attempts to generate a usable cue sheet for CD images which are missing their .cue (or .ccd, .mds, etc) files.

If a single .bin file is given, it's assumed to hold all the tracks (which might only be one). If multiple .bin files are given, each one is assumed to represent one track of the same CD image.

For data tracks, the recovered track should be correct, provided the bin file wasn't truncated or otherwise corrupted.

For audio tracks in a single .bin file, silence detection is used to find the split points between tracks. This means that in cases where one track segues into another, the two tracks will be combined in the resulting cue sheet. Also, if there are long periods of silence within a single track, this track will be split into two or more tracks.

OPTIONS

--help Print short usage string.
-o <file> Write cue file to file rather than standard output. If file already exists, cuerecover will refuse to overwrite it, which makes this safer than redirecting stdout. It's customary for cue files to have the same filename as their bin file(s), with the .bin replaced by .cue, but it's not actually required.
-s <sec> Minimum amount of silence for detecting the split point between two audio tracks. Argument is in seconds, and decimals are allowed. The default is 2, which is the standard sized gap between tracks in the Redbook standard and in most CD authoring software. 0 means to disable splitting tracks: all the audio tracks will be combined into one in the .cue sheet. This option is ignored when multiple .bin file arguments are given, since they're already split into tracks.
-t <thresh> Silence threshold, 0 to 100. Default is 0. This is the percentage of non-zero bytes allowed in a sector for it to be considered silent. Sometimes audio tracks have random data in the pregap (before the INDEX 01), which will fool cuerecover into thinking there's no pregap. This option can help with those, but don't set it too high. This option is ignored when multiple .bin file arguments are given, since they're already split into tracks.
-v Verbose mode. Prints (on stderr) some extra messages about what cuerecover is doing. Probably only of interest to the author.

Always include a space between an option and its argument (e.g. -s 1, not -s1).

NOTES

cuerecover works a lot better when it's reading a split image (one file per track).

When reading a monolithic image (multiple tracks the same file), cuerecover has to make some assumptions. These are usually valid, but should be mentioned here:

EXIT STATUS

As usual, 0 for success, non-zero for failure.

AUTHORS

cuerecover was written by B. Watson <yalhcru@gmail.com> and released under the WTFPL: Do WTF you want with this.

SEE ALSO

miragextract(1)

The manual for GNU ccd2cue(1) has useful information on the .cue file format:

https://www.gnu.org/software/ccd2cue/manual/html_node/CUE-sheet-format.html

More information on the CD-ROM data formats:

https://wiki.osdev.org/User:Combuster/CDRom_BS https://en.wikipedia.org/wiki/CD-ROM