Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2008 00:57:21 -0400
From:      "John L. Templer" <green_tiger@comcast.net>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Extract Songs from DVD
Message-ID:  <490155B1.5050502@comcast.net>
In-Reply-To: <20081023095257.f05a1d95.freebsd@edvax.de>
References:  <991123400810220734i3c981038ocae053bc24d44336@mail.gmail.com>	<20081022171708.43023af8.freebsd@edvax.de>	<49001B2D.4090706@comcast.net> <20081023095257.f05a1d95.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote:
> On Thu, 23 Oct 2008 02:35:25 -0400, "John L. Templer" <green_tiger@comcast.net> wrote:
>> Polytropon wrote:
>>> 	% dd if=/dev/acd0t01 of=track01.cdr bs=2352
>> Very cool!  I have a few questions though.  I notice this doesn't work
>> for my Plextor CD writer.
> 
> What, dd doesn't work from Plextor writer? I had (or, still have)
> a Plextor CD writer which is SCSI, so I just have to change the
> command in order to read from the correct device, which is /dev/cd0
> for the first SCSI CD drive:
> 
> 	% dd if=/dev/cd0t01 of=track01.cdr bs=2352
> 
> Of course, you would have to change other commands in order to get
> this correct, for example:
> 
> 	% cdcontrol -f /dev/cd0 info
> 
> 
> 
>> I assume this is because CD and DVD drives
>> have different drivers?
> 
> Maybe, but I think these basic things rely on the same commands
> internally.
> 
> 
> 
>> Also, does this use libparanoia or something
>> similar to extract "recalcitrant" tracks?
> 
> No, dd reads block-wise. There's dd_rescue which is able to read
> from defectively manufactured media (we call them "Un-CDs" or
> "Un-DVDs" in Germany).
> 
> Another option, by the way, is to use cdrdao. It has the read
> command in combination with a paranoia level switch which can be
> adjusted in order to read mentioned media. As far as I remember,
> you need to have the atapicam facility in your kernel (custom
> compile kernel or module) in order to access ATAPI devices just
> like SCSI devices.
> 
> 	% camcontrol devlist
> 
> will then show you which device equals /dev/cd0, e. g. 0,0,0
> (1st SCSI controller, 1st device, 1st LUN).
> 
> 
> 
> If I did misunderstand the question, just post another one. :-)
> (English is not my native language.)

Actually, I was referring to having individual device files for each
track on the CD.  When I put an audio CD in the Plexwriter CD writer, it
doesn't create the device files for the tracks.  However when I put it
in the DVD reader it does create acd0t01 through acd0t11, or however
many tracks are on the CD.  My Plexwriter is SCSI, but the DVD drives
are IDE.

Under Solaris x86 or Ubuntu Linux I have to use an application like
cdrecord or soundjuicer to extract the audio tracks.  These applications
bypass the device files and go straight to the SCSI interface layer.
libparanoia is a library that handles the tricky bits of reading the
data off the CD.  Just using dd to copy the data from the device file
often results in corrupted data.  I was wondering if the BSD kernel (or
devd or whatever) uses a similar method of handling all the different
variations that audio format CDs have.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?490155B1.5050502>