| 1 |
|
| •2 |
binchunker for Unix, version 1.2.2 |
| 3 |
Copyright (C) 1998-2004 Heikki Hannikainen <[email protected]> |
| 4 |
|
| 5 |
Enhancements provided by: |
| 6 |
Colas Nahaboo <[email protected]>, 1999 |
| 7 |
Godmar Back <[email protected]>, 2001 |
| 8 |
Matthew Green <[email protected]>, 2003 |
| 9 |
Piotr Kaczuba <[email protected]>, 2009 |
| 10 |
Reuben Thomas <[email protected]>, 2008 |
| 11 |
Yegor Timoshenko <[email protected]>, 2017 |
| 12 |
|
| 13 |
|
| 14 |
http://he.fi/bchunk/ |
| 15 |
|
| 16 |
Created with the kind help of Bob Marietta <[email protected]>, |
| 17 |
partly based on his Pascal (Delphi) implementation. |
| 18 |
Released under the GNU GPL, version 2 or later (at your option). |
| 19 |
|
| 20 |
--- |
| 21 |
|
| 22 |
Licence: |
| 23 |
|
| 24 |
This program is free software; you can redistribute it and/or modify |
| 25 |
it under the terms of the GNU General Public License as published by |
| 26 |
the Free Software Foundation; either version 2 of the License, or |
| 27 |
(at your option) any later version. |
| 28 |
|
| 29 |
This program is distributed in the hope that it will be useful, |
| 30 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 31 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 32 |
GNU General Public License for more details. |
| 33 |
|
| 34 |
You should have received a copy of the GNU General Public License |
| 35 |
along with this program; if not, write to the Free Software |
| 36 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 37 |
02111-1307 USA |
| 38 |
|
| 39 |
--- |
| 40 |
|
| 41 |
Credits: |
| 42 |
|
| 43 |
This is a Unix/C rewrite of the fine BinChunker software for some |
| 44 |
non-Unix system. The non-Unix version of BinChunker has been |
| 45 |
obsoleted by FireBurner, which can be found at www.fireburner.com. |
| 46 |
FireBurner does a lot more than BinChunker did, but can be used to |
| 47 |
do exactly the same even without a burner device installed. |
| 48 |
Thanks go to Bob Marietta, the author of BinChunker, for the |
| 49 |
extensive help, documentation and letting me look at his |
| 50 |
Pascal/Delphi source code! |
| 51 |
|
| 52 |
Colas Nahaboo <[email protected]> and Godmar Back <[email protected]> |
| 53 |
added support for MODE2/2352 ISO data tracks in bchunk 1.1.0. |
| 54 |
Matthew Green implemented the -r option for raw MODE2/2352 |
| •55 |
exctraction for bchunk 1.2.0. |
| 56 |
|
| 57 |
--- |
| 58 |
|
| 59 |
What on earth is this stuff: |
| 60 |
|
| 61 |
binchunker converts a CD image in a ".bin / .cue" format |
| 62 |
(sometimes ".raw / .cue") to a set of .iso and .cdr tracks. |
| 63 |
|
| 64 |
The bin/cue format is used by some non-Unix cd-writing |
| 65 |
software, but is not supported on most other cd-writing |
| 66 |
programs. |
| 67 |
|
| 68 |
The .iso track contains an ISO file system, which can be |
| 69 |
mounted through a loop device on Linux systems ('mount track.iso |
| 70 |
/mnt/cdrom -o loop=/dev/loop0,blocksize=1024'), or written on a |
| 71 |
CD-R using cdrecord. |
| 72 |
|
| 73 |
The .cdr tracks are in the native CD audio format. They can |
| 74 |
be either written on a CD-R using cdrecord -audio, or converted |
| 75 |
to WAV (or any other sound format for that matter) using |
| 76 |
sox ('sox track.cdr track.wav'). Audio tracks can be written |
| 77 |
in WAV format by using the -w switch. |
| 78 |
|
| 79 |
The output type depends on the input type (data is just copied). |
| 80 |
If the input is in ISO format, the output will be. On the other |
| 81 |
hand, if the input is raw audio data, the output will be CDR or |
| 82 |
WAV (the latter if -w is given). |
| 83 |
|
| 84 |
--- |
| 85 |
|
| 86 |
How to install this stuff: |
| 87 |
|
| •88 |
$ gzip -d -c bchunk-1.2.2.tar.gz | tar xvf - |
| 89 |
$ cd bchunk-1.2.2 |
| 90 |
$ make |
| 91 |
# make install |
| 92 |
|
| 93 |
If your system does not have GCC installed, edit Makefile, |
| 94 |
uncommenting the CC lines. |
| 95 |
|
| 96 |
If your system does not ship with a BSD-style 'install' program and the |
| 97 |
make install fails, copy the resulting 'bchunk' binary to your favourite |
| 98 |
directory in your $PATH. /usr/local/bin is a good one. The manual page |
| 99 |
'bchunk.1' should go to /usr/local/man/man1 for example. |
| 100 |
|
| 101 |
bchunk has been successfully compiled on the following platforms: |
| 102 |
|
| 103 |
Linux 2.0, i686, glibc 2.0.7, gcc 2.7.2.3 (RedHat 5.1) |
| 104 |
Linux 2.2, i686, glibc 2.1.1, egcs 1.1.2 (RedHat 6.0) |
| 105 |
Linux 2.4, i686, glibc 2.2, gcc-2.96 (RedHat 7.0) |
| 106 |
Solaris 2.5.1, SPARC, gcc 2.7.2 |
| 107 |
Solaris 2.6, SPARC, gcc 2.8.1 |
| 108 |
Digital Unix 4.0c, Alpha, DEC C V5.2-033 |
| 109 |
SGI IRIX 6.5.7m, MIPS R4600 IP22, gcc 2.95.2 |
| 110 |
Mac OS X 10.1.4, gcc 2.95.2 |
| 111 |
|
| 112 |
It should be ANSI enough to compile on any decent system. |
| 113 |
(The HP-UX bundled compiler is not decent.) |
| 114 |
|
| 115 |
--- |
| 116 |
|
| 117 |
How to use this stuff: |
| 118 |
|
| •119 |
bchunk [-v] [-p (PSX)] [-r (raw)] [-w (wav)] [-s (swabaudio)] |
| 120 |
<image.bin> <image.cue> <basename> |
| 121 |
|
| •122 |
image.bin is the raw cd image file. image.cue is the |
| 123 |
track index file containing track types and offsets. |
| 124 |
basename is used for the beginning part of the created |
| 125 |
track files. |
| 126 |
|
| 127 |
The -v flag makes binchunker print some more unnecessary |
| 128 |
messages, which should not be of interest for anyone. |
| 129 |
|
| 130 |
The -p flag makes binchunker go into PSX mode and truncate |
| 131 |
MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal |
| 132 |
2048 bytes at offset 24. |
| 133 |
|
| 134 |
The -r flag makes binchunker output MODE2/2352 tracks in raw |
| 135 |
format, from offset 0 for 2352 bytes. Good for MPEG/VCD. |
| 136 |
|
| 137 |
The -p and -r flags works only with MODE2/2352 input (if input |
| 138 |
is in PSX mode pass -p flag or if it is in raw format pass |
| 139 |
-r flag). |
| •140 |
|
| 141 |
The -w flag makes binchunker write audio tracks in WAV format. |
| 142 |
|
| 143 |
The -s flag makes binchunker swap byte order in the samples of |
| 144 |
the audio tracks. If the audio sounds like loud static noise, |
| 145 |
try this. |
| 146 |
|
| 147 |
|
| 148 |
|