Mercurial > ~darius > hgwebdir.cgi > cddb-stuff
annotate gettracks-lame.sh @ 2:5cead4da1db9
Initial import.
Seems to work nicely.
author | darius |
---|---|
date | Wed, 09 Aug 2000 02:18:47 +0000 |
parents | |
children |
rev | line source |
---|---|
2 | 1 #!/bin/sh |
2 | |
3 if [ $# -lt 1 ]; then | |
4 echo Usage: $0 \<tracknum\> [ \<tracknum\> ... ] | |
5 exit 1 | |
6 fi | |
7 | |
8 for t in $* ; do | |
9 num=`printf %02d $t` | |
10 name=`printf track_%s.mp3 $num` | |
11 echo Ripping $num to $name | |
12 (cdd -t $num - | sox -t cdr - -t wav - | lame -x -b 192 - $name) 2>> rip.log | |
13 if [ $? -ne 0 ]; then | |
14 echo "Failed!" | |
15 exit 1 | |
16 fi | |
17 done | |
18 |