From owner-freebsd-questions@FreeBSD.ORG Sat Nov 24 13:47:03 2007 Return-Path: Delivered-To: Freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA25316A420 for ; Sat, 24 Nov 2007 13:47:03 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id 93E0A13C469 for ; Sat, 24 Nov 2007 13:47:03 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so278618pyb for ; Sat, 24 Nov 2007 05:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding; bh=E+V0RG+nYOxilvx8PXNcRLYmheUoyZ8LXt4enVz7PoM=; b=KLijasRTk+WZaprhmmSKMGesY9So3535vtdW258VqM0tJToUuv8QjwFed+KA0OqinprKVjXumr/2jDUMyQjM1ec55qySo+1CBMXze1xWj/whW/IuWk6m471OnDFtX9+9KisMP0nFJUlaXUBeD+AtNLWGlVCmQTupIOs7z4PO9nM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding; b=SD3v8CvvsSJKC/nDbOXchZbYYKl3UCx0CofxvCX5LhWIQQIrNSIcBrsqOKXnBSxR1He5Sv6zoQsl3AfufBPBOHFSKX2THsjmH1CYHLA/gxxTnGSTVV4Uq8DmUno3VigYQr2t6NKNI/Sp2kKGGbHqbliIQuFRKhT/EYiG9clgsjk= Received: by 10.65.44.5 with SMTP id w5mr1027879qbj.1195912021048; Sat, 24 Nov 2007 05:47:01 -0800 (PST) Received: from fortytwo.zapto.org ( [67.70.96.133]) by mx.google.com with ESMTPS id e1sm2254492nzd.2007.11.24.05.46.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Nov 2007 05:47:00 -0800 (PST) Message-ID: <47482B58.1020905@gmail.com> Date: Sat, 24 Nov 2007 08:47:04 -0500 From: Jimmie James User-Agent: Thunderbird 2.0.0.4pre (X11/20071018) MIME-Version: 1.0 To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Freebsd-questions@FreeBSD.ORG Subject: RE: Has anybody written a script to automate CD duplication? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jimmiejaz@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 13:47:03 -0000 > I can live with gnome-cd to play my CD's ... or use sound-juicer > to play and extract if I want to use up that much space. But > nothing that we FBSDer's have will copy an audio CD using the ATAPI > drive. From the Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html 18.6.5 Duplicating Audio CDs The ATAPI CD driver makes each track available as /dev/acddtnn, where d is the drive number, and nn is the track number written with two decimal digits, prefixed with zero as needed. So the first track on the first disk is /dev/acd0t01, the second is /dev/acd0t02, the third is /dev/acd0t03, and so on. I use abcde audio/abcde for ripping and this script for burning: abcde (A Better CD Encoder) is a frontend sh script to rip tracks from a CD, encode them in ogg vorbis or mp3 format, and tag them. Of course, the handbook has info on ripping to .wav sysutils/cdrtools a sampling utility that dumps CD audio data into wav sound files. man 1 cdda2wav It shouldn't be too difficult to merge cdda2wav with the following script burnaudiocd.sh -- #!/bin/sh # # burnaudiocd.sh: script to burn audio CD's # # choose a relatively low speed like 4 for burning audio CD's SPEED="4" # point this to your CD burner device name BURNER="/dev/acd0" #///////////////////////////////////////////////////////# # You probably don't have to edit stuff after this line # #///////////////////////////////////////////////////////# echo "This script burns all .raw files in the current directory to CD" echo "Using burning device: ${BURNER}" echo "Using speed: ${SPEED}" echo echo "*** Make sure there is an empty cd-r in the drive!" echo "Press [Return] or [ENTER] to start burning, or [CTRL+C] to cancel" echo read ANYKEY for x in *.wav; do burncd -f ${BURNER} -s ${SPEED} audio "$x" sleep 3 done burncd -f ${BURNER} -s ${SPEED} -e fixate HTH. Jimmie If you can't beat your computer at chess, try kickboxing. --- --- --- Solving Today's Problems Tomorrow