Date: Thu, 21 Jun 2001 10:31:50 -0700 From: Tim Pozar <pozar@lns.com> To: Orion Hodson <hodson@aciri.org> Cc: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>, multimedia@FreeBSD.ORG Subject: Re: ripit Message-ID: <20010621103150.B3355@lns.com> In-Reply-To: <200106211621.f5LGLet45368@mule.aciri.org>; from hodson@aciri.org on Thu, Jun 21, 2001 at 09:21:40AM -0700 References: <uzs106@ibm.rhrz.uni-bonn.de> <200106211621.f5LGLet45368@mule.aciri.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 21, 2001 at 09:21:40AM -0700, Orion Hodson wrote: > In message <Pine.BSF.4.21.0106211350310.826-100000@moritz.alleswirdgelber>,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(<TOC>){ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010621103150.B3355>