Wednesday, July 20, 2011

Convert *.toc/*.cue/*.bin to *.wav

I ripped an audio cd with Brasero in linux and created an image file (*.bin) so I could make a copy of the cd. I later wanted to listen to the music on my computer without the cd so I found a way to convert the cue/bin file into wav files. Here is how I did it.

First you need to open a terminal window and navigate to the folder where the bin and toc files are located. Next, you need to install some software to convert the bin files to wav format. You can apt-get it with the following command.
sudo apt-get install bchunk

Now, Brasero creates a toc file and you will need a cue file to run bchunk. So, you will need covert the toc file with the following command. The toc2cue should be install if not apt-get it.
toc2cue brasero.toc brasero.cue

The final step is to convert the bin file to the actual wav files. Make sure you use the flags -vws. If the wav file doesn't sounds correct try removing the -s.
bchunk -vws brasero.toc.bin brasero.cue brasero
The wav files should now be extracted in the folder where the bin files was located.

1 comment:

  1. Thanks for a very helpful post!

    Readers may want to note that if you don't have the toc2cue command installed on your system, you obtain it by installing the cdrdao package. (You will find that there is no package called "toc2cue".)