Mercurial > ~darius > hgwebdir.cgi > cddb-stuff
comparison gettracks.sh @ 3:74031379d3cb CDDB-STUFF_1_0
Initial revision
author | darius |
---|---|
date | Wed, 09 Aug 2000 02:18:47 +0000 |
parents | |
children | cf06ab549064 |
comparison
equal
deleted
inserted
replaced
2:5cead4da1db9 | 3:74031379d3cb |
---|---|
1 #!/bin/sh | |
2 | |
3 cddev=/dev/acd0c | |
4 root=`dirname $0` | |
5 if [ $# -eq 0 ]; then | |
6 tracks=`$root/cddb-id -f $cddev -n` | |
7 else | |
8 tracks=$* | |
9 fi | |
10 | |
11 echo Ripping tracks $tracks | |
12 | |
13 ripper="cdd -t \$num -" | |
14 comp="lame -x -b 192 - -" | |
15 #comp="gogo -silent -offset 0 -b 192 stdin" | |
16 | |
17 for t in $tracks ; do | |
18 num=`printf %02d $t` | |
19 name=`printf track_%s.mp3 $num` | |
20 echo Ripping $num to $name | |
21 eval $ripper 2>> rip.log | sox -t cdr - -t wav - | $comp > $name | |
22 if [ $? -ne 0 ]; then | |
23 echo "Failed!" | |
24 exit 1 | |
25 fi | |
26 done | |
27 |