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.binis the raw cd image file.image.cueis the track index file containing track types and offsets.basenameis 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.cuefile to eitherMODE2/2352/2048orMODE2/2352/2324depending 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 truncateMODE2/2352tracks 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 outputMODE2/2352tracks 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 fileimage.cueโ TOC (Track index, Table Of Contents) file*.isoโ tracks in ISO9660 CD filesystem format. can be either written on a CD-R usingcdrecord, 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 usingcdrecord โaudio, or converted to WAV (or any other sound format for that matter) usingsox:
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 ๐โจ
๐ฆ where this page comes from
- arch rolling: bchunk 1.2.2-8 ยท GPL
- debian bookworm: bchunk 1.2.2+git20220715+ds-2 ยท GPL-2.0-or-later
- debian trixie: bchunk 1.2.2+git20220715+ds-3.1 ยท GPL-2.0-or-later
- fedora 43: bchunk 1.2.2-19.fc43 ยท GPL-2.0-or-later
- fedora 44: bchunk 1.2.2-21.fc44 ยท GPL-2.0-or-later
- nixos 26.05: bchunk 1.2.2
- nixpkgs unstable: bchunk 1.2.2
- ubuntu jammy: bchunk 1.2.2-2
- ubuntu noble: bchunk 1.2.2+git20220715+ds-2 ยท GPL-2.0-or-later
- ubuntu questing: bchunk 1.2.2+git20220715+ds-3.1
- ubuntu resolute: bchunk 1.2.2+git20220715+ds-4 ยท GPL-2.0-or-later
- ubuntu stonking: bchunk 1.2.2+git20220715+ds-4 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms