unplayable audio CD

Stuart Barkley stuartb at 4gh.net
Thu Dec 23 15:27:11 UTC 2010

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
I've never been lost; I was once bewildered for three days, but never lost!
                                        --  Daniel Boone

More information about the freebsd-multimedia mailing list