5

I've downloaded the .bin, .cue and .cdt files of an audio CD (freely available), but I'd prefer to have the audio in FLAC format on my computer. How do I convert the audio tracks of the .bin file to FLAC files without losing quality?

I'm using Ubuntu 16.04.

Jani Uusitalo
  • 893
  • 1
  • 8
  • 22

2 Answers2

5

(Expanding on the solution from oldmankit over at Ubuntu Forums)

  1. Install bchunk and flac:

    sudo apt install bchunk flac
    
  2. Use bchunk to convert the .bin to WAV files:

    bchunk -w image.bin image.cue track
    
  3. Use flac to compress the WAV files:

    for f in track*.wav; do flac $f; done
    

Naming and tagging the FLAC files is subject for another question, but cuetools (particularly the cueprint command) may be of help there.

Jani Uusitalo
  • 893
  • 1
  • 8
  • 22
1

In this post I found the following procedure that worked nicely for me, using just the flac package:

$ flac --endian=little --channels=2 --bps=16 --sample-rate=44100 --sign=signed \
    --force-raw-format CDImage.bin -o CDImage.flac
$ metaflac --import-cuesheet-from=CDImage.cue CDImage.flac

Which yields a single CD FLAC archive.

Petr
  • 113