Monday, August 22, 2011

ripping music/audio CDs in linux to mp3

Check tracks info:
(/dev/scd0 will be the specific device)
cdparanoia -Q -d /dev/scd0

Make a directory for the tracks
mkdir some_cd
cd some_cd

Rip the audio tracks
cdparanoia -B

You'll get a bunch of wav files (can also use raw or aift).
Re-encode all the files in the dir to mp3:
for FILE in * ; do lame $FILE; done
("lame -b 256" will set the bit rate to 256kb/s)

Delete wav files
rm *wav

You'll end up with a bunch of mp3 files in the directory.

No comments:

Post a Comment