This article needs additional citations for verification .(May 2010) |
A cue sheet, or cue file, is a metadata file which describes how the tracks of a CD or DVD [ citation needed ] are laid out. Cue sheets are stored as plain text files and commonly have a .cue filename extension. CDRWIN first introduced cue sheets, [1] which are now supported by many optical disc authoring applications and media players.
Cue sheets can describe many types of audio and data CDs. The main data (including audio) for a CD described by a cue sheet is stored in one or more files referenced by the cue sheet. Cue sheets also specify track lengths and CD-Text including track and disc titles and performers. They are especially useful when dividing audio stored in a single file into multiple songs or tracks. The data files referred to by the cue sheet may be audio files (commonly in MP3 or WAV format), or plain disc images, usually with a .bin extension.
When used for disc images, the format is usually called BIN/CUE, indicating that it stores a disc image composed of one cue sheet file and one or more .bin files. The .bin files are raw sector-by-sector binary copies of tracks in the original discs. These binary .bin files usually contain all 2,352 bytes from each sector in an optical disc, including control headers and error correction data in the case of CD-ROMs (unlike ISO images of CD-ROMs, which store only the user data). However, the TRACK command in a cue sheet file can be used to refer to binary disc images that contain only the user data of each sector, by indicating the specific CD mode of the tracks from which the image was created (which is necessary to know the size of the user data in each sector).
The BIN/CUE format is one of the few formats besides Nero's NRG, Alcohol 120%'s MDF/MDS and CloneCD's CCD/IMG/SUB disc image formats to support Mixed Mode CDs which can contain audio CD tracks as well as data tracks.
The name "cue sheet" originates from the "send cue sheet" SCSI/ATA command in optical disc authoring. [1] The specification for that command defines a cue sheet format containing mostly the same information, but in a tabular, binary data structure, rather than a text file. [2]
In October 2023, a vulnerability was discovered in the libcue library, which parses cue sheets on Linux systems with GNOME desktops. The exploit could give an attacker code execution rights on GNOME systems. [3]
An entire multi-track audio CD may be ripped to a single audio file and a cue sheet. However, software audio players and hardware digital audio players often treat each audio file as a single playlist entry, which can make it difficult to select and identify the individual tracks. A common solution is to split the original audio file into a series of separate files, one per track.
Another approach is for the audio player to support the cue sheet directly. This may involve providing a new playlist (for example, an extra window) for the contents of the cue sheet, or adding an entry for each track directly into the main playlist.
A cue sheet is a plain text file containing commands with one or more parameters. The commands usually apply either to the whole disc or to an individual track, depending on the particular command and the context. They may describe the layout of data to be written, or CD-Text (metadata). The original specification of the cue sheet syntax and semantics appears in the CDRWIN User Guide. [4]
The standard commands are: [5]
CD ripping programs normally offer the option of creating a separate file for each audio track, with the (pre)gap portion of a track placed at the end of the preceding track's file. This coincides with normal playback operation – the beginning of each file is the beginning of a track, not the gap preceding it – and with the layout described in the disc's table of contents, which doesn't specify gap information at all.
The cue sheet format, as specified in the CDRWIN Users Manual, [4] doesn't support file sets of this type; rather, it's designed with the expectation that all of the audio data exists in a single file (CDRWIN only creates cue sheets for that kind of rip) or in separate files, but only with the gap portions of the audio either removed or placed at the beginning of the files.
In order to allow cue sheets to be used to burn a CD from ordinary file sets which have the gap portion at the end of each file, the CD ripping & burning program Exact Audio Copy (EAC) allows the creation of cue sheets that relax the CDRWIN Users Manual's restriction on where FILE commands can be used. [7] This non-conforming cue sheet format, intended only for burning CDs with EAC, is not supported by some other pieces of software, such as the media player foobar2000, which allows the use of cue sheets as playlists.
The MP3 file "Faithless - Live in Berlin.mp3", contains a live recording of the band Faithless. At this concert, Faithless performed eight songs in the order shown below. Therefore, the track listing is as follows:
Since the MP3 is one file containing the entire performance, burning it to a CD as-is would make it inconvenient to skip to individual songs. To design the cue sheet, one must first find the points in the MP3 at which each song starts. The times are cumulative: each track must have a later time than the previous one.
The first five lines denote the disc information. This is followed by the information for each track, indented from the rest. The INDEX 01 line reads the same for each track, with the exception of the time value that follows it. REM, TITLE and PERFORMER are optional.
REM GENRE Electronica REM DATE 1998 PERFORMER "Faithless" TITLE "Live in Berlin" FILE "Faithless - Live in Berlin.mp3" MP3 TRACK 01 AUDIO TITLE "Reverence" PERFORMER "Faithless" INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "She's My Baby" PERFORMER "Faithless" INDEX 01 06:42:00 TRACK 03 AUDIO TITLE "Take the Long Way Home" PERFORMER "Faithless" INDEX 01 10:54:00 TRACK 04 AUDIO TITLE "Insomnia" PERFORMER "Faithless" INDEX 01 17:04:00 TRACK 05 AUDIO TITLE "Bring the Family Back" PERFORMER "Faithless" INDEX 01 25:44:00 TRACK 06 AUDIO TITLE "Salva Mea" PERFORMER "Faithless" INDEX 01 30:50:00 TRACK 07 AUDIO TITLE "Dirty Old Man" PERFORMER "Faithless" INDEX 01 38:24:00 TRACK 08 AUDIO TITLE "God Is a DJ" PERFORMER "Faithless" INDEX 01 42:35:00
An example of a cue sheet used in conjunction with a CD image file:
FILE "sampleimage.bin" BINARY TRACK 01 MODE1/2352 INDEX 01 00:00:00
To convert a CD-ROM image to a format that can be mounted on Unix-like systems, the open source tool BinChunker can be used: [8]
$ bchunkimage.binimage.cueoutput.iso
Waveform Audio File Format is an audio file format standard for storing an audio bitstream on personal computers. The format was developed and published for the first time in 1991 by IBM and Microsoft. It is the main format used on Microsoft Windows systems for uncompressed audio. The usual bitstream encoding is the linear pulse-code modulation (LPCM) format.
Universal Disk Format (UDF) is an open, vendor-neutral file system for computer data storage for a broad range of media. In practice, it has been most widely used for DVDs and newer optical disc formats, supplanting ISO 9660. Due to its design, it is very well suited to incremental updates on both write-once and re-writable optical media. UDF was developed and maintained by the Optical Storage Technology Association (OSTA).
FLAC is an audio coding format for lossless compression of digital audio, developed by the Xiph.Org Foundation, and is also the name of the free software project producing the FLAC tools, the reference software package that includes a codec implementation. Digital audio compressed by FLAC's algorithm can typically be reduced to between 50 and 70 percent of its original size and decompresses to an identical copy of the original audio data.
A CD ripper, CD grabber, or CD extractor is software that rips raw digital audio in Compact Disc Digital Audio (CD-DA) format tracks on a compact disc to standard computer sound files, such as WAV or MP3.
An optical disc image is a disk image that contains everything that would be written to an optical disc, disk sector by disc sector, including the optical disc file system. ISO images contain the binary image of an optical media file system, including the data in its files in binary format, copied exactly as they were stored on the disc. The data inside the ISO image will be structured according to the file system that was used on the optical disc from which it was created.
K3b is a CD, DVD and Blu-ray authoring application by KDE for Unix-like computer operating systems. It provides a graphical user interface to perform most CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD/DVD, as well as more advanced tasks such as burning eMoviX CD/DVDs. It can also perform direct disc-to-disc copies. The program has many default settings which can be customized by more experienced users. The actual disc recording in K3b is done by the command line utilities cdrecord or cdrkit, cdrdao, and growisofs. As of version 1.0, K3b features a built-in DVD ripper.
ID3 is a metadata container most often used in conjunction with the MP3 audio file format. It allows information such as the title, artist, album, track number, and other information about the file to be stored in the file itself.
APE tags comprise one extant convention used to store information (metadata) about a given digital audio file. Each APE tag constitutes a discrete element that describes a single attribute of the file's contents. Each consists of a key/value pair; the key is simply a label that names the attribute, such as Year, Title, Artist, or Track Number, etc.), and associated with it is a corresponding value, namely, some information descriptive of this file, in terms of the attribute in question. APE tags can be used with .ape-formatted recordings, as well as with sound files of other audio file formats.
Gapless playback is the uninterrupted playback of consecutive audio tracks, such that relative time distances in the original audio source are preserved over track boundaries on playback. For this to be useful, other artifacts at track boundaries should not be severed either. Gapless playback is common with compact discs, gramophone records, or tapes, but is not always available with other formats that employ compressed digital audio. The absence of gapless playback is a source of annoyance to listeners of music where tracks are meant to segue into each other, such as some classical music, progressive rock, concept albums, electronic music, and live recordings with audience noise between tracks.
cdrdao is a free and open source utility software application for authoring and ripping of audio and data CD-ROMs. It is licensed under GPL-2.0 or Later. The application is available for several operating systems, including Linux, Windows, and macOS, and has been reported to work on other operating Unix-based operating systems.
Exact Audio Copy (EAC) is a CD ripping program for Microsoft Windows. The program has been developed by Andre Wiethoff since 1998. Wiethoff's motivation for creating the program was that other such software only performed jitter correction while scratched CDs often produced distortion.
The pregap on a Red Book audio CD is the portion of the audio track that precedes "index 01" for a given track in the table of contents (TOC). The pregap is typically two seconds long and usually, but not always, contains silence. Popular uses for having the pregap contain audio are live CDs, track interludes, and hidden songs in the pregap of the first track.
IMG, in computing, refers to binary files with the .img
filename extension that store raw disk images of floppy disks, hard drives, and optical discs or a bitmap image – .img
.
A CloneCD Control File is a text descriptor with the extension .ccd used by CloneCD to store the subcode data of a CD/DVD image. These files need to be combined with an image file to be burned. It may also come with a subchannel file.
CD-i Ready is a compact disc format for mixing audio and data content on a CD. It was developed by Phillips in 1991, based on the CD-i format. The CD-i Ready format uses a certain technique to get audio CD players to skim over the CD-i software and data. CD-i Ready places the software and data in the pregap of track 1. Since most CD players assume that the pregap area contains only silence, they skip it. Because of this, CD-i Ready was presented as an alternative to CD-i, which was more compatible with audio CD players.
An NRG file is a proprietary optical disc image file format originally created by Nero AG for the Nero Burning ROM utility. It is used to store disc images. Other than Nero Burning ROM, however, a variety of software titles can use these image files. For example, Alcohol 120%, or Daemon Tools can mount NRG files onto virtual drives for reading.
PMCD is a specially formatted, recordable Compact Disc designed to be sent to a CD pressing plant for replication. The PreMaster CD format, developed in the early 1990s by the CD-ROM division of Sony, in cooperation with "START Lab Inc." of Tokyo and Sonic Solutions, contained a hidden "PreMaster Cue Sheet" that held the metadata needed for replication that a Red Book CD-DA lacks. The PreMaster CD format made use of the fact that not all data-recording surfaces are specified for use in the Red Book CD-DA or Yellow Book CD-ROM standards. CD transports were not able to recover the data hidden in the Cue Sheet unless commanded to by proprietary software. The Cue Sheet specified a broad range of metadata, including number of channels, per track pre-emphasis status, per track copy protection bit setting, per track ISRC Codes, per disc UPC/EAN, etc.
Media Descriptor File (MDF) is a proprietary disc image file format developed for Alcohol 120%, an optical disc authoring program. Daemon Tools, CDemu, MagicISO, PowerDVD, and WinCDEmu can also read the MDF format. A disc image is a computer file replica of the computer files and file system of an optical disc.
A CD-ROM is a type of read-only memory consisting of a pre-pressed optical compact disc that contains data computers can read, but not write or erase. Some CDs, called enhanced CDs, hold both computer data and audio with the latter capable of being played on a CD player, while data is only usable on a computer.