From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 23 17:21:48 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FBDC106564A for ; Thu, 23 Dec 2010 17:21:48 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mta5.iomartmail.com (mta5.iomartmail.com [62.128.193.155]) by mx1.freebsd.org (Postfix) with ESMTP id 157C58FC08 for ; Thu, 23 Dec 2010 17:21:47 +0000 (UTC) Received: from asmtp2.iomartmail.com (localhost.localdomain [127.0.0.1]) by mta5.iomartmail.com (8.12.11.20060308/8.12.11) with ESMTP id oBNHLYDc011725; Thu, 23 Dec 2010 17:21:35 GMT Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp2.iomartmail.com (8.13.8/8.13.8) with ESMTP id oBNHLYOi006252; Thu, 23 Dec 2010 17:21:34 GMT Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id C0D8233C1F; Thu, 23 Dec 2010 17:21:33 +0000 (GMT) Date: Thu, 23 Dec 2010 17:21:33 +0000 From: Frank Shute To: Stuart Barkley Message-ID: <20101223172133.GA8372@orange.esperance-linux.co.uk> References: <20101223131218.GA7979@orange.esperance-linux.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-PRERELEASE amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-multimedia@freebsd.org Subject: Re: unplayable audio CD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 17:21:48 -0000 On Thu, Dec 23, 2010 at 09:58:04AM -0500, Stuart Barkley wrote: > > On Thu, 23 Dec 2010 at 08:12 -0000, Frank Shute wrote: > > > I believe I can dd the tracks (can somebody give me an example > > command? I don't know what blocksize to use) and then encode > > although it's all a bit painful compared to using Grip. > > I have the following in my perl ripping script: > > my $cmd = > "dd if=${device}t${nn_track} bs=2352 ". > "| lame -r -x -b $opt_bitrate -h -m j -q1 - ". > "> ${disk}_${nn_track}.mp3"; > > Or for a .wav file: > > my $cmd = > "dd if=${device}t${nn_track} bs=2352 ". > "| sox -t raw -r44100 -sw -c2 - -t wav -". > "> ${disk}_${nn_track}.wav"; > > Or just the raw stuff: > > my $cmd = > "dd if=${device}t${nn_track} bs=2352 ". > "> ${disk}_${nn_track}.raw"; > > Stuart Barkley Thanks for those examples, Stuart. Unfortunately, dd doesn't want to work with this crappy CD: # dd if=/dev/acd0t01 of=track1.cdr bs=2352 dd: /dev/acd0t01: Device not configured 0+0 records in 0+0 records out 0 bytes transferred in 0.000179 secs (0 bytes/sec) Yet: $ ls -l /dev/acd0t01 crw-r----- 1 root operator 0, 91 Nov 30 23:27 /dev/acd0t01 Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html