unplayable audio CD

Frank Shute frank at shute.org.uk
Thu Dec 23 17:21:48 UTC 2010


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




More information about the freebsd-multimedia mailing list