This post is just a simple note, inspired from here.
First, install cdparanoia and flac:
# emerge cdparanoia flac
Next, issue the following commands (I deleted the original WAV files after conversion). All tracks are extracted and converted to FLAC format.
# cdparanoia -B # find . -name "*.wav" -print0 | xargs -0 flac # rm *.wav
Then enjoy the music with your favorite player. Since I'm using mplayer, I call Ruby to generate the playlist and invoke mplayer with it (in the 1st line below, the last track number is 16. Change it according to your own situation).
$ ruby -e '(0..16).map{|i| printf("track%02d.cdda.flac\n", i)}' > pl $ mplayer -playlist pl
No comments:
Post a Comment