BCHUNK(1)

โœจ NAME โœจ

bchunk โ€” CD image format conversion from bin/cue to iso/cdr

๐ŸŽ€ SYNOPSIS ๐ŸŽ€

bchunk [-v] [-p] [-r] [-w] [-s] <image.bin> <image.cue> <basename>

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so bestie, listen: bchunk takes a CD image in a ".bin / .cue" format (sometimes you'll see it called ".raw / .cue", same vibe) and converts it into a whole set of .iso and .cdr tracks. it's giving glow-up. ๐Ÿ’…

the bin/cue format is used by some non-Unix cd-writing software, but it is not supported on most other cd-writing programs. so yeah, if you're stuck with one of those files, this is your girl.

here's who's who in that command line:

  • image.bin is the raw cd image file.
  • image.cue is the track index file containing track types and offsets.
  • basename is used for the beginning part of the created track files.

the produced .iso track contains an ISO file system, which can be mounted through a loop device on Linux systems, or written on a CD-R using cdrecord. the .cdr tracks are in the native CD audio format. they can be either written on a CD-R using cdrecord โ€audio, or converted to WAV (or any other sound format for that matter) using sox. so many options, we love to see it ๐Ÿซถ

the output type depends on the input type (data is just copied). if the input is in ISO format, the output will be. on the other hand, if the input is raw audio data, the output will be CDR or WAV (the latter if โ€w is given).

โš ๏ธ it is advisable to edit the .cue file to either MODE2/2352/2048 or MODE2/2352/2324 depending on whether an ISO filesystem or a VCD is desired, respectively. the format itself does not contain this feature and in an ambiguous case it can only guess. so like, help her out, she's doing her best ๐Ÿ˜ญ

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -v โ€” makes binchunker print some more unnecessary messages, which should not be of interest for anyone. literally nobody asked but here she is, yapping ๐Ÿ’€
  • -w โ€” makes binchunker write audio tracks in WAV format.
  • -s โ€” makes binchunker swap byte order in the samples of audio tracks.
  • -p โ€” makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24. use this option if input is in PSX mode. ๐ŸŽฎ
  • -r โ€” makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. good for MPEG/VCD. use this option if input is in raw format. slay.

๐ŸŒธ FILES ๐ŸŒธ

  • image.bin โ€” raw CD image file
  • image.cue โ€” TOC (Track index, Table Of Contents) file
  • *.iso โ€” tracks in ISO9660 CD filesystem format. can be either written on a CD-R using cdrecord, or mounted (on Linux platforms at least) through a loop device:
mount track.iso /mnt/cdrom โ€o loop=/dev/loop0,blocksize=1024
  • *.cdr โ€” audio tracks in native CD audio format. they can be either written on a CD-R using cdrecord โ€audio, or converted to WAV (or any other sound format for that matter) using sox:
sox track.cdr track.wav
  • *.wav โ€” audio tracks in WAV format.

๐Ÿงš SEE ALSO ๐Ÿงš

cdrecord(1), mkisofs(8), sox(1), cdrdao(1)

๐Ÿ’œ AUTHORS ๐Ÿ’œ

  • Heikki Hannikainen <hessu@hes.iki.fi>
  • Bob Marietta <marietrg@SLU.EDU>
  • Colas Nahaboo <Colas@Nahaboo.com>
  • Godmar Back <gback@cs.utah.edu>
  • Matthew Green <mrg@eterna.com.au>

and that's the whole page, bestie!! ๐ŸŽ€ this one's v1.2.2, dated 14 Nov 2017, and it came to you courtesy of Heikki Hannikainen โ€” go forth and convert those images, periodt ๐Ÿ’–โœจ