Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 2010 17:21:33 +0000
From:      Frank Shute <frank@shute.org.uk>
To:        Stuart Barkley <stuartb@4gh.net>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: unplayable audio CD
Message-ID:  <20101223172133.GA8372@orange.esperance-linux.co.uk>
In-Reply-To: <alpine.BSF.2.00.1012230952580.68246@freeman.4gh.net>
References:  <20101223131218.GA7979@orange.esperance-linux.co.uk> <alpine.BSF.2.00.1012230952580.68246@freeman.4gh.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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





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