Re: cd ripping in linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux