Mercurial > ~darius > hgwebdir.cgi > cddb-stuff
view gettracks-lame.sh @ 9:f3f2657296d2
Use Tcl 8.2
Catch socket errors.
Create separate dummy file generation proc.
author | darius |
---|---|
date | Thu, 18 Jul 2002 06:37:12 +0000 |
parents | 5cead4da1db9 |
children |
line wrap: on
line source
#!/bin/sh if [ $# -lt 1 ]; then echo Usage: $0 \<tracknum\> [ \<tracknum\> ... ] exit 1 fi for t in $* ; do num=`printf %02d $t` name=`printf track_%s.mp3 $num` echo Ripping $num to $name (cdd -t $num - | sox -t cdr - -t wav - | lame -x -b 192 - $name) 2>> rip.log if [ $? -ne 0 ]; then echo "Failed!" exit 1 fi done