From owner-freebsd-multimedia Thu Jun 21 10:32: 5 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from kumr.lns.com (kumr.lns.com [140.174.7.1]) by hub.freebsd.org (Postfix) with ESMTP id 51E1D37B401 for ; Thu, 21 Jun 2001 10:32:02 -0700 (PDT) (envelope-from pozar@kumr.lns.com) Received: (from pozar@localhost) by kumr.lns.com (8.11.3/8.9.3) id f5LHVo503752; Thu, 21 Jun 2001 10:31:50 -0700 (PDT) (envelope-from pozar) Date: Thu, 21 Jun 2001 10:31:50 -0700 From: Tim Pozar To: Orion Hodson Cc: Christoph Kukulies , multimedia@FreeBSD.ORG Subject: Re: ripit Message-ID: <20010621103150.B3355@lns.com> References: <200106211621.f5LGLet45368@mule.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106211621.f5LGLet45368@mule.aciri.org>; from hodson@aciri.org on Thu, Jun 21, 2001 at 09:21:40AM -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Jun 21, 2001 at 09:21:40AM -0700, Orion Hodson wrote: > In message ,Heik > o Recktenwald writes: > > > Anyone knowing other tools for reading CD audio tracks? > > > > tosha ;-) > > > > But you must have a Toshiba scsi drive. > > > > Very easy, very efficient, > > > > If you have an atapi drive you can cat tracks from /dev. Device > entries are needed for each track: > > cd /dev > ./MAKEDEV acd0t100 > > >From then on you can cat /dev/acd0t1, /dev/acd0t2, etc. The output is > 44.1kHz stereo, 16bit linear samples. If you want to add headers sox > will do this. Thanks folks... I found I had to update my MAKEDEV from /usr/src/etc as I have one too old to understand "acd0t0". I wrote a quicky script that uses this facility and it works well... I will roll this into my regular rip script that does the track name/cut tile, etc and MP3 encoding. Thanks again! Tim -- #!/usr/local/bin/perl $tracks = 0; # Read in the table of contents to cound how many tracks and to # clue in the kernel there is an audio CD out there... open (TOC,"/usr/sbin/cdcontrol -f /dev/acd0 info|"); while(){ print; if(m/audio/){ $tracks = $tracks + 1; } } print "\n"; print "Number of tracks = $tracks\n"; # Start to rip! $i = 1; while ($i <= $tracks) { `dd if=/dev/acd0t$i of=/tmp/track_$i.wav bs=2352`; $i = $i + 1; } -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message