Kind of easy with “asunder” using KDE4 🙂

# apt-get install flac libflac8 asunder

Open it, set appropiate values if CDDB connection fails and adjust the encoder to FLAC within the settings. Click “Import” and wait for the encoded data (defaults in your home directory).

It won’t create a full cd file instead all tracks for themselves including a playlist file. But for now that’s fine 🙂

If it struggles while ripping to wav and encoding to flac, just rip to wav and compress yourself afterwards using this script:

#!/bin/sh
# Check for Apps before starting
if [ `which flac| grep flac|wc -l` -eq 0 ]
then
  echo "flac not installed"
  exit 0
fi

# Create Direcotry of converted files
OUT_DIR="./wav2flac"
[ ! -d $OUT_DIR ] && mkdir -p $OUT_DIR

# Modify FLAC preferences
# http://linux.die.net/man/1/flac
# flac_opts="--compression-level-5 --replay-gain"
# Default Values ^ Lvl 5 Compression, Apply ReplayGain Tag

flac_opts="--compression-level-5 --replay-gain"

# Loop every .wav file
for x in *.wav
do FLACFILE=`basename "${x%.wav}.flac"`

# Then convert .wav to .flac
echo "Converting ${x} to FLAC format"
flac $flac_opts "$x" --output-name=$OUT_DIR/"$FLACFILE"
done

To keep it even more simple, use k3b …

At first it was intended to burn CDs but its designers have decided to add the possibility to rip off audio CD and DVDs. Let’s start with CDDB configuration: Settings –< Configure k3b -< CDDB -< Remote -< Enable remote CDDB queries (add http://freedb.org and port:80 if they do not exist), then conform changes followed by Tools -< Rip audio CD selection. K3b should download performer and songs’ titles. Now go to Start, ripping -< File type Ogg (or mp2 lame), configure the encoder, and press the start. As far as KDE is concerned, you may also use another application like Amarok or Konqueror, but it is impossible to describe them all within such limited text.

%d bloggers like this: