From owner-freebsd-questions Thu Dec 26 21:25:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C79F37B401 for ; Thu, 26 Dec 2002 21:25:38 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3935F43ED4 for ; Thu, 26 Dec 2002 21:25:38 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from woappsx16.mac.com (woappsx16-en1 [10.13.10.116]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id gBR5PbFL016312 for ; Thu, 26 Dec 2002 21:25:38 -0800 (PST) Received: from woappsx16 (localhost [127.0.0.1]) by woappsx16.mac.com (8.12.2/8.10.2) with ESMTP id gBR5L0ip022499 for ; Thu, 26 Dec 2002 21:21:00 -0800 (PST) Message-ID: <2336928.1040966460669.JavaMail.paulbeard@mac.com> Date: Thu, 26 Dec 2002 21:21:00 -0800 (PST) From: paul beard To: questions@freebsd.org Subject: cdrecord coaster problem solved Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I had some problems with cdrecord making audio CDs and some helpful person on this list suggested I use cdrdao(1) instead. Well, that turned out to be the solution. I did try using ATAPICAM with an IDE burner I had on hand, but it doesn't seem to be able to write (good thing it didn't cost anything, though perhaps I see why). The biggest problem I had with cdrdao was the need for a TOC file and the correct syntax. Turns out there are some samples in the distribution's source files. They don't work for me (you can't specify a driver as I need to do, just a device, and the device is expressed in a linux-ish style), but it's often easier to work from something that's broken that to start from scratch. It's basic as can be, but it saves me from trying to remember this stuff, and isn't that what scripts are all about? [/usr/home/paul/bin]:: more wav2toc.sh #!/bin/sh # usage: $0 FILES <*.wav> DIR=$1 TOCFILE=`basename $1`.toc echo CD_DA > ${TOCFILE} echo >> ${TOCFILE} for i in ${DIR}/*.wav do echo TRACK AUDIO >> ${TOCFILE} echo PREGAP 0:1:0 >> ${TOCFILE} echo FILE \"$i\" 0 >> ${TOCFILE} echo >> ${TOCFILE} done echo File ${TOCFILE} written Running with a path grabs all the WAV files, creates a file based on the basename of the path, then writes out all the particulars. (paul@red.paulbeard.org)-(09:18 PM / Thu Dec 26) [/usr/home/paul/bin]:: ./wav2toc.sh ~/cdimages/That_Summer File That_Summer.toc written (paul@red.paulbeard.org)-(09:20 PM / Thu Dec 26) [/usr/home/paul/bin]:: more That_Summer.toc CD_DA TRACK AUDIO PREGAP 0:1:0 FILE "/usr/home/paul/cdimages/That_Summer/new.wav" 0 TRACK AUDIO PREGAP 0:1:0 FILE "/usr/home/paul/cdimages/That_Summer/side_1.wav" 0 TRACK AUDIO PREGAP 0:1:0 FILE "/usr/home/paul/cdimages/That_Summer/side_2.wav" 0 Dunno if it will be useful to anyone (like anyone else is converting vinyl LPs to CDs) . . . . and the incantation for cdrdao is as follows: I need to specify a driver for this unit (it's branded as a Pinnacle CDR 5040S and is allegedly supported by cdrecord as a workalike for a similar unit). sudo cdrdao write --eject --device 0,1,0 --driver teac-cdr55 toc -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message