Help - Search - Members - Calendar
Full Version: Revamping bin/cue collection to flac files
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
Werewolf6851
While back when I was wanting to backup my audio disk, best methode looked to be use cdrdao to make bin/toc pairs for the disk
then easy to burn archive to use in the vehicle

Jump forward several years, and now flac made decent toe hold, wondered if there an 'easy' way to read the bin/toc files and convert them to flac??

Example, like Abcde ability to convert whole cd into a one flac file, and later to read from that file for other formats...
and since already read the disc once, don't want to have to RE-read all my cds.

So far looks like best bet using toc2cue, then bchunk to convert bin file to wavs or cdr files
but that makes one file for each track, and betting that just cat'ing the wav files then flac encoding it would lose data (like gaps or lack of gaps on live cd's)


Anyhelp be appreciated

Want to use command line utilities on my linux box. so I can ssh to the linux machine and have it processing audio and using another slower linux laptop to other stuff

tuffy
You should be able to convert a CDImage.bin to a big FLAC image using:
CODE
% flac --endian=little --channels=2 --bps=16 --sample-rate=44100 --sign=signed --force-raw-format CDImage.bin -o CDImage.flac

Once you've got that, you can use toc2cue to convert toc files to cuesheets and then import the track gaps using:
CODE
% metaflac --import-cuesheet-from=CDImage.cue CDImage.flac

Which yields a single CD FLAC archive which you can do whatever you like with.
Werewolf6851
QUOTE (tuffy @ Sep 27 2009, 20:54) *
You should be able to convert a CDImage.bin to a big FLAC image using:
CODE
% flac --endian=little --channels=2 --bps=16 --sample-rate=44100 --sign=signed --force-raw-format CDImage.bin -o CDImage.flac

Once you've got that, you can use toc2cue to convert toc files to cuesheets and then import the track gaps using:
CODE
% metaflac --import-cuesheet-from=CDImage.cue CDImage.flac

Which yields a single CD FLAC archive which you can do whatever you like with.


Thanks, that is an elegant solution compared to what I tried next

After sumbling across post about sox I tried the following

I would use toc2cue (from cdrdao) to make a cue file
then bchuck -s -w foofile.bin foofile.cue deleteme. (-s for swap bit postion -w for wav output)
followed by
sox deleteme*.wav -t flac -C 8 foofile.flac (-C for compression factor 8)
then
rm deleteme*
and
metaflac --import-cuesheet-from=foofile.cue

Thanks for helping me cut out several of my steps

next step will be testing
flac -d -o foofile.wav foofile.flac
then massage the cue file
and burning wav file to disk with cue data and see if the burn sounds like my original

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.