[he.fi:/] · bchunk · slookup · splitmastream

bchunk v1.2.2 - BinChunker for Unix / Linux

binchunker converts a CD image in a ".bin / .cue" format (sometimes ".raw / .cue") to a set of .iso and .cdr tracks. The bin/cue format is used by some popular non-Unix cd-writing software, but is not supported on most other CD burning programs. A lot of CD/VCD images distributed on the Internet are in BIN/CUE format, I've been told.

This is a Unix/C rewrite of the fine BinChunker software. Thanks go to Bob Marietta , the author of BinChunker, for the extensive help, documentation and letting me look at his Pascal/Delphi source code!

What on earth is this stuff?

The .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. bchunk 1.1.0 (and later versions) can also output audio tracks in WAV format.

bchunk compiles and runs on any host with an ANSI C compiler, and somewhat POSIX.1 compliant environment. It has been tested on the following platforms:

Linux 2.0, i686, glibc 2.0.7, gcc 2.7.2.3 (RedHat 5.1)
Linux 2.2, i686, glibc 2.1.1, egcs 1.1.2 (RedHat 6.0)
Linux 2.4, i686, glibc 2.2, gcc 2.96 (RedHat 7.0)
Linux 2.6, i686, glibc 2.3, gcc 3.2.2 (RedHat 9.0)
Linux 2.6, i686, glibc 2.3.5, gcc 4.0.2 (Debian sarge, etch)
Solaris 2.5.1, SPARC, gcc 2.7.2
Solaris 2.6, SPARC, gcc 2.8.1
Digital Unix 4.0c, Alpha, DEC C V5.2-033
SGI IRIX 6.5.7m, MIPS R4600 IP22, gcc 2.95.2
Mac OS X 10.1.4, gcc 2.95.2
Mac OS X 10.11.6, llvm 8.0.0 (clang-800.0.42.1)

OpenBSD, FreeBSD and NetBSD all have a port of bchunk available in their respective archives for a very good set of hardware platforms.

Debian GNU/Linux users can install bchunk using 'apt-get install bchunk', as bchunk is maintained as a Debian package.

Download the (GPL'ed) source code below, read the README file, compile, and serve cold with a meal. Satisfaction not guaranteed. If it breaks, you get to keep both pieces.

Development of bchunk happens around Github.

What's new?

1.2.2 (14 Nov 2017): SECURITY UPDATE
  • Fixes CVE-2017-15953 and CVE-2017-15954, a heap-based buffer overflow. Fix provided by Yegor Timoshenko.
  • Fixes CVE-2017-15955, Access violation near NULL on destination operand and crash when processing a malformed CUE (.cue) file. Fix provided by Yegor Timoshenko.
  • Fix wrong track size calculation when having multiple tracks in one image (debian bug: #261274). Fix provided by Piotr Kaczuba.
  • Clarified manual page for input/output file types. Improvement from Reuben Thomas (debian bug: #503151).
1.2.0 (29 Jun 2004):
  • Man page patch from the openbsd port
  • -r option for MODE2/2352 MPEG/VCD support
1.1.1 (7 Aug 2001):
  • Error checking while reading the bin file
  • psxtruncate was always enabled by default - made -p work
  • Fixed .spec file to compile on other distributions
1.1.0 (30 Jun 2001):
  • Please note that 1.1.0 has NOT been extensively tested. Feedback and bug reports welcome.
  • MODE2/2352, PSX support
  • WAV audio file output (byte order fixing code might break compiling on some platforms)
  • Audio file byte order swapping
  • man page, make install
  • More error checking

Download!


Name Last modified Size Description

[TXT] ChangeLog 2017-11-17 01:17 1k
[CMP] bchunk-1.2.2.tar.gz 2017-11-17 01:17 15k
[CMP] bchunk-1.2.0.tar.gz 2004-06-29 23:48 15k
[CMP] bchunk-1.2.0-0.i386.rpm 2004-06-29 23:48 19k Built on an RH9.0 equivalent system.
[CMP] bchunk-1.2.0-0.src.rpm 2004-06-29 23:48 19k

Tips and tricks:

To record an MP3 image with a CUE sheet to an audio CD (for example the mixes at sicktracks.com):
  1. convert the .mp3 to a raw PCM audio file:
    $ mpg123 -sv sicktracks8.mp3 > sicktracks8.pcm
  2. split into tracks according to the CUE file:
    $ bchunk sicktracks8.pcm sicktracks8.txt tracks
  3. burn it:
    $ cdrecord -v -dao -audio tracks??.cdr
If you only get loud noise on the tracks, try either -swab on cdrecord or -s on bchunk to swap the byte order.

License:

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

follow this link if you're a harvester
Heikki Hannikainen <hessu at hes.iki.fi>  
Last modified: Monday, 06-May-2019 11:46:45 UTC