Tutorial - How to import CDs

From Audacity Development Manual
Jump to: navigation, search
Audacity does not contain any function for importing (ripping) audio from CDs. This can, however, be achieved by using other applications to extract the data into a file format Audacity does support.

CD Format

A Compact Disc (also known as a CD) is an optical disc used to store digital data. It was originally developed to store sound recordings exclusively, but later it also allowed the preservation of other types of data. Audio CDs have been commercially available since October 1982. They remain the standard physical storage medium for audio. although sales of commercial CDs have been falling for some years while digital downloads (for storage on hard drives or flash-based music players) have been increasing.

Standard CDs have a diameter of 120 mm and can hold up to 80 minutes of uncompressed audio (700 MB of data). The Mini CD has various diameters ranging from 60 to 80 mm. Mini CDs are sometimes used for CD singles or device drivers, storing up to 24 minutes of audio.

The vast majority of audio CDs are encoded according to the Red Book Standard. The Red Book standard is a 16-bit, 44,100 Hz PCM stereo stream of audio. This is very similar to (though not directly comparable with) stereo WAV and AIFF files encoded at 16-bit, 44,100 Hz. Audio CD quality sounds identical to those formats. However, because the data is a stream with a TOC (Table of Contents), rather than a set of self-contained files, most operating systems cannot open the audio for editing in the same way that a WAV or AIFF file can be opened.

The basic Red Book specifications state that:

  1. Maximum playing time is 79.8 minutes.
  2. Minimum duration for a track is 4 seconds (including 2-second pause).
  3. Maximum number of tracks is 99.
  4. Maximum number of index points (subdivisions of a track) is 99 with no maximum time limit.

Importing data from CDs

Users new to audio editing are often surprised to find that they cannot import the audio from CDs into Audacity with the File > Import > Audio command. In fact, most operating systems do not actually allow the import of data from the CD tracks into applications, because audio CDs do not have files or a file system like computer media, but consist essentially of a stream of bits on the disc. That is why when you look at an audio CD in a file manager like Windows Explorer, each CD track will appear only as a small .cda "file" 44 bytes in size, which is merely header information for the stream.

In order to import tracks from an audio CD, you must first usually extract (or "rip") the tracks to a WAV or AIFF audio file using CD extraction software; then you can import those WAV or AIFF files into Audacity with the usual File > Import > Audio command.

Warning icon Do not extract the CD to smaller-sized MP3 format if you want to edit the audio in Audacity, because every time you export an MP3 file, some of the quality is lost. Extract to WAV or AIFF which are lossless. You can always export to MP3 from Audacity after editing, but do that only once for the finished audio.


Windows

Audio CDs may be ripped to WAV with Windows Media Player 11 or 12 (click Tools > Options > Rip Music and choose "WAV (Lossless)" in the Format dropdown in "Rip Settings"). Earlier versions of Windows Media Player are not appropriate for extracting CD audio for editing in Audacity, because they are unable to extract to WAV.

Alternatively the Windows version of iTunes (which is free to download) may be used to extract audio CDs to WAV or AIFF.


Mac

Mac users have a quick way to import CDs, because when a CD is put in the drive, the CDA tracks are mounted as AIFF files in the Finder. It's thus possible to either drag the AIFF files from the Finder into Audacity, or use the File > Import > Audio command, instead of extracting the audio.

Warning icon If you import CD tracks into Audacity from Finder and save them as a Project, the CD must be present next time you open the Project, unless you set Audacity to make a copy of the data. To do this choose Audacity > Preferences: Import / Export and where it says "When importing audio files...", check the radio button: selected radio button Copy uncompressed files into the project (safer) (default setting).

Another possibility is to use Max, a free software CD ripping and encoding application. It has full support for encoding into the FLAC lossless audio format.


Linux

On Linux or other Unix-like systems you can use K3b for the KDE desktop or RipperX for GNOME. Or use any built-in CD extraction utility that comes with the distribution.