[Pykaraoke-discuss] Rip-rap

2005-12-13 Thread Jay R. Ashworth
Or something like that.  Herewith, my wrapper for ripping CDG's.

=8===
# rip a CDG into the hierarchy
#
# written Sun Dec 11 14:34:15 EST 2005 by [EMAIL PROTECTED]

RIPHOME=/home/jra/psk/rips
DEVICE=/dev/hdc
LABEL=$1
DISC=$2

cd $RIPHOME

if [ -z $LABEL ]
then
echo -n Enter the label code: 
read LABEL
else
echo Label code: $LABEL
fi

[ ! -d $LABEL ]  mkdir $LABEL

cd $LABEL; pwd

if [ -z $DISC ]
then
echo -n Enter the disc number: 
read DISC
else
echo Disc number: $DISC
fi

if [ -d $DISC ]
then
echo That disc has already been ripped.
cd $DISC; pwd
else
mkdir $DISC
cd $DISC; pwd

echo Ripping disc image...
time cdrdao read-cd \
--driver generic-mmc-raw \
--device $DEVICE \
--read-subchan rw_raw \
mycd.toc
echo Done.

fi

echo

echo Extracting and encoding...
time cdgrip --delete-bin-toc --with-cddb mycd.toc
rename track ${LABEL}${DISC}- *
echo
ls -CF
echo
eject /dev/hdc
echo Done.
=8===

It probably ought to have an *overall* time tracking facility, and some
logging.  And I need to update my cdrdao to permit slowing down; I'm
ripping some bad tracks.  (Perhaps a way to run the parser and
re-rip on errors?)  But it's a start.

Usage: ripcdg sc 8119

Cheers,
-- jra
-- 
Jay R. Ashworth[EMAIL PROTECTED]
Designer  Baylink RFC 2100
Ashworth  AssociatesThe Things I Think'87 e24
St Petersburg FL USA  http://baylink.pitas.com +1 727 647 1274

Space is called 'space' because there's so much *space* there.
- John Walker, of Fourmilab, on Trek's End


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Pykaraoke-discuss mailing list
Pykaraoke-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss


Re: [Pykaraoke-discuss] Rip-rap

2005-12-13 Thread Kelvin Lawson

Great! Thanks Jay.


It probably ought to have an *overall* time tracking facility, and some
logging.  And I need to update my cdrdao to permit slowing down; I'm
ripping some bad tracks.  (Perhaps a way to run the parser and
re-rip on errors?)  But it's a start.

Usage: ripcdg sc 8119


Have you tried ripping using --read-subchan rw rather than rw_raw, to 
see if your drive supports cooked mode? I can't test it here but as Will 
mentioned that should add error-correction to the mix.


Failing that, you could run the .cdgs through cdg2text and grep for 
whatever it is that ait prints out for unsupported CD+G commands. That 
should give an indication of the quality of the rip, but won't trap 
errors that still result in valid CD+G command codes.


Kelvin.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Pykaraoke-discuss mailing list
Pykaraoke-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss