| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
*Warning*
Breach of copyright is taken very seriously in most parts of the world
- this article in no way encourages users to break the law.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ordinary audio CDs like the ones you'd play in your home stereo differ from data CDs in that the music is recorded onto the disk as raw data, that is, there is no file system on the disk. That's why if you put an ordinary audio CD into your CD drive and try to read the contents in a file manager, you won't find anything. Your computer is looking for a file system where there is none. An audio CD doesn't need to be mounted to be read or burnt - unlike data disks.
Data CDs on the other hand use a file system to organize the way in which the data is written to and read from the disk, similar to the file system on a hard disk. Music files in formats such as .mp3, wav, or ogg are written onto data CDs using a file system just like any other CDROM. These CDs can be opened in a file manager or from the command line, and the music played using the appropriate program.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
gtcd, KDE has kscd, and xmms can also
play CDs if you have the audio CD plugin enabled. These can be started
from the Multimedia section of your menu. From the command line you
could try the cdplay program, though it's not very
intuitive. Read the manual page (man cdplay) to find out more. Or
you can simply use the `play/skip/stop' buttons on your CD drive to
play audio CDs.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
xmms, an excellent clone of the
Windows Winamp player.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
xmms. The interface is much like
that of a CD or tape player, with buttons and sliders to control
starting, stopping, pausing. skip, repeat, volume, balance and so on. It
also includes an equalizer function (the `eq' button) and allows you to
set up play lists. To choose a track to play, hit the L key or
press the eject ("^") button. This brings up a window allowing you
navigate to the folder holding your music files. Once there, you can
select a track or tracks to play, or you can choose to play every file
in the folder. As well as the audio options, xmms also has visual
options, and different skins can be selected to change the appearance of
the player. It can even use Windows Winamp skins. Despite the multitude
of options, xmms is exceptionally easy to use. If you want to explore
its options and capabilities, click on the small O on the left
hand side of the display.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cdparanoia. If you prefer GUI tools, you might like to check out
grip. One of the things I particularly like about cdparanoia is the way
it can correct jitters or skips on marked or scratched disks. Here are
some examples of how to record tracks from an audio CD using cdparanoia:
cdparanoia n
`n` specifies the track number to record. By default the track will
be recorded to a file named cdda.wav. If cdda.wav already exists
it will be overwritten, so be careful if you are recording several
tracks! You can specify your own file name like this:
cdparanoia n filename.wav
To record the entire CD type: cdparanoia -B
The -B in the above command simply ensures that the tracks are put into
separate files (track1.wav, track2.wav etc.). Cdparanoia has many more
options and an easy to understand manual page; type man
cdparanoia to read it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bladeenc filename.wav
This will produce a file with the same name as the source file, but with the .mp3 suffix. If you want to specify a destination filename you can add it to the end like this:
bladeenc filename.wav filename.mp3
By default, bladeenc will encode the file at 128kbit/sec, this is the most commonly used bitrate and results in a very compact file of reasonable quality. Higher rates can be specified, giving a better sound quality at the expense of a slightly bigger file size, though it's hard to detect any improvement in sound quality using sampling rates above 160kbits/sec. To convert a file at 160kbits/sec use:
bladeenc -160 filename.wav
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
oggenc filename.wav
As with bladeenc, the sampling rate (and sound quality) can be specified. This is done by using the following command:
oggenc -q n filename.wav (where n is the quality level)
The default level is 3, but can be any number between 1 and 10. Level 5 seems to be roughly equivalent to an mp3 encoded at 160kbits/sec.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mpg123 -w filename.wav filename.mp3 (note - the destination
filename comes first)
Note also that there is some slight loss of sound quality when a .wav file is converted to mp3 format, and this isn't regained when converting back to .wav - so if possible, you should try to use .wav files that have been ripped from an audio CD rather than converting back from mp3s.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
normalize -m /path/to/files/*.wav
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
du command). Now it's just a matter of typing
this command:
cdrecord -v speed=4 dev=0,0,0 -audio -pad *.wav
Of course, your speed and device numbers might be different - you can
use cdrecord -scanbus to find the device address, and the speed
setting will depend on your CD burners' speed rating. In general,
burning will be more reliable at slower speeds, especially on older
machines.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mkisofs (to create the file system) and cdrecord to burn
the disk. As in the audio CD example above, put all the files into a
separate folder. The two operations can be combined into a single
command like this:
mkisofs -R /path/to/folder_to_record/ | cdrecord -v speed=4
dev=0,0,0 -
Don't forget the hyphen at the end! As in the example for burning audio CDs, you might have to use different speed and dev numbers. Older or slower computers might have difficulties running both mkisofs and cdrecord at once - if so you can do it as two separate operations like this:
mkisofs -R -o cdimage.raw /path/to/folder_to_record/
This creates an image named cdimage.raw. Then burn the disk:
cdrecord -v speed=4 dev=0,0,0 cdimage.raw
(using suitable speed and device settings..)
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |