How to rip an audio CD into flac
I suggest the application abcde
. Install it with:
sudo apt-get update
sudo apt-get install abcde flac
Now, put the CD into the tray. You might wish to create a directory of music files:
mkdir flacs
cd flacs
abcde -o flac
In order to get track information, etc., abcde queries the CDDB via an internet connection. If there is no internet connection, or if the CD is not registered, no track information will be retieved, although you may manually edit the input. Here is an example of the track information gathered:
Grabbing entire CD - tracks: 01 02 03 04 05 06 07 08 09 10 11 12
Retrieving 1 CDDB match...done.
---- Muddy Waters / The Real Folk Blues ----
1: Mannish Boy
2: Screamin' and Cryin'
3: Just To Be With You
<snip>
Edit selected CDDB data [y/N]?
Pressing Enter selects the default, No.
After ripping, a file appears named "Muddy Waters / The Real Folk Blues". Within it are the track listings CDDB found.
chili@T440p:~/Desktop/flac$ ls Muddy_Waters-The_Real_Folk_Blues/
01.Mannish_Boy.flac 07.Same_Thing.flac
02.Screamin_and_Cryin.flac 08.Gypsy_Woman.flac
03.Just_To_Be_With_You.flac 09.Rollin_&_Tumblin.flac
04.Walking_in_the_park.flac 10.40_Days_and_Forty_Nights.flac
05.Walking_Blues.flac 11.Little_Geneva.flac
06.Canary_Bird.flac 12.You_Cant_Lose_What_You_Never_Had.flac
If the CD is not on file with CDDB, you will have the option to edit the titles and other information and submit it. If there is no internet connection, then you must manually edit the file.
You can set the variables you wish to use by default by creating a conf file:
cp /etc/abcde.conf ~/.abcde.conf
gedit .abcde.conf
Use nano or kate or leafpad if you don't have the text editor gedit. Check for the common variables that you wish to use. Uncomment the settings you'd like to use by default. For example, change:
#OUTPUTTYPE=ogg
To:
OUTPUTTYPE=flac
In this example, once you have specified the output type as flac, it is no longer necessary to specify it on the command line. Merely do:
abcde