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