|[he.fi:/] · archive · bchunk · cricket utils · slookup · splitmastream · clusse · htpp · mailgw · photos|
bchunk v1.2.0 - 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. The non-Unix version of BinChunker has been obsoleted by the CD-R/W burning software FireBurner, which can be found at www.fireburner.com. FireBurner does a lot more than BinChunker did, but can be used to do exactly the same even without a burner device installed. 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 220.127.116.11 (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
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 1.2.0 using 'apt-get install bchunk', as bchunk is maintained as a Debian package.
bchunk has apparently also been successfully compiled on BeOS without source modifications and the i386 binary can be downloaded here.
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.
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
Name Last modified Size Description ChangeLog 29-Jun-04 23:55 1k bchunk-1.2.0.lsm 29-Jun-04 23:48 1k bchunk-1.2.0.tar.gz 29-Jun-04 23:48 15k bchunk-1.2.0-0.i386.rpm 29-Jun-04 23:48 19k Built on an RH9.0 equivalent system. bchunk-1.2.0-0.src.rpm 29-Jun-04 23:48 19k bchunk-1.1.1.lsm 7-Aug-01 14:40 1k bchunk-1.1.1.tar.gz 7-Aug-01 14:33 14k bchunk-1.1.1-0.i386.rpm 7-Aug-01 14:33 18k Built on an RH7.1 equivalent system. bchunk-1.1.1-0.src.rpm 7-Aug-01 14:33 17k bchunk-1.1.0.lsm 30-Jun-01 19:25 1k bchunk-1.1.0.tar.gz 30-Jun-01 19:25 14k bchunk-1.1.0-0.i386.rpm 1-Jul-01 00:22 18k Built on an RH7.0 equivalent system. bchunk-1.1.0-0.src.rpm 1-Jul-01 00:22 17k bchunk-1.0.0.lsm 11-Oct-98 12:42 1k bchunk-1.0.0.tar.gz 11-Oct-98 12:42 15k
Tips and tricks:To record an MP3 image with a CUE sheet to an audio CD (for example the mixes at sicktracks.com):
If you only get loud noise on the tracks, try either -swab on cdrecord or -s on bchunk to swap the byte order.
- convert the .mp3 to a raw PCM audio file:
$ mpg123 -sv sicktracks8.mp3 > sicktracks8.pcm
- split into tracks according to the CUE file:
$ bchunk sicktracks8.pcm sicktracks8.txt tracks
- burn it:
$ cdrecord -v -dao -audio tracks??.cdr
License:follow this link if you're a harvester
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.
Heikki Hannikainen <hessu at hes.iki.fi>
Last modified: Thursday, 22-Nov-2007 16:04:08 EET