[linux-audio-user] cd ripping in linux
Paul Winkler
pw_lists at slinkp.com
Tue Oct 10 00:32:00 EDT 2006
On Tue, Oct 10, 2006 at 03:40:42AM +0000, carmen wrote:
> On Mon Oct 09, 2006 at 10:37:20PM -0500, Josh Lawrence wrote:
> > On 10/9/06, Michael Rasmussen <mikeraz at patch.com> wrote:
> > >get a grip. Well, just get grip.
>
> anyone got a 1-line bash cd-ripping script?
>
> presumably this is what grip ends up doing anwyays..
If all you wanna do is rip to .wav:
cdparanoia -B
And, not quite one line, but here's a simple script that, given an
argument "foo", will spit out a bunch of mp3 files named foo_01.mp3,
foo_02.mp3, etc. Adjust to taste.
#!/bin/sh
ENCODER="lame -S"
EXT=.mp3
cdparanoia -B -q || exit 1
for file in track*wav; do
$ENCODER $file > /dev/null 2>&1 && rm -f $file || exit 1
rename .cdda.wav.${EXT} .${EXT} ${file}.${EXT}
done
rename track ${1}_ track*${EXT}
--
Paul Winkler
http://www.slinkp.com
More information about the Linux-audio-user
mailing list