michaelortmann / bin2iso Goto Github PK
View Code? Open in Web Editor NEWbin2iso converts RAW format (.bin) files to ISO/WAV format.
License: MIT License
bin2iso converts RAW format (.bin) files to ISO/WAV format.
License: MIT License
I don't pass the -i
option, and yet my original files get overwritten without my permission; it's bad program etiquette because I can't get the file back. This is not documented behaviour and really there's no reason it should be overwriting the .bin instead of just creating a new .iso file.
Maybe bin2iso
is so fast because it rewrites only certain chunks in some file? In this case either overwriting the original .bin should not be the default (have an option --inplace
that enables this behaviour) or the user should be given some confirmation question asking if the file may be overwritten.
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
$ bin2iso Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\).cue /run/media/danb/ps2_mx4iso/CD/
Aug 26 2021, 08:56:50
bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
Bob Doiron, ICQ#280251
Check for updates at http://users.andara.com/~doiron
Note: Appending pregap data to end of audio tracks
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso (425 Mb) - sectors 000000:189743 (offset 000000000:446277887)
Mode2/2352 single track bin file indicated by cue file
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin renamed to Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso
$ ls -al Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\)*
-rw-r--r-- 1 danb danb 446277888 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso'
-rw-r--r-- 1 danb danb 116 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).cue'
I've been trying to use bin2iso
to convert a CD-based Playstation 2 game into an .iso format which is needed for PS2's OPL program to load the game.
All 15 .bin/.cue games that I've tried over the past 4 hours have failed to even be detected as a valid ISO game. Meanwhile using bchunk
produced a working .iso for all of them.
Consider the original files:
$ ls -al Mahjong\ Haou\ -\ Battle\ Royale\ \(Japan\).*
-rw-r--r-- 1 danb danb 40767216 Dec 24 1996 'Mahjong Haou - Battle Royale (Japan).bin'
-rw-r--r-- 1 danb danb 102 Dec 24 1996 'Mahjong Haou - Battle Royale (Japan).cue'
This is the file that bchunk
produces:
-rw-r--r-- 1 danb danb 35497984 Apr 20 07:10 'Mahjong Haou - Battle Royale (Japan)01.iso'
This is the file that bin2iso
produces:
-rw-r--r-- 1 danb danb 40767216 Dec 24 1996 'Mahjong Haou - Battle Royale (Japan)-01.iso'
Notice that there's a full 5 megs difference between the 2 .iso files. bin2iso is doing something very different... and the .iso file produced does not work.
I list below the commands I used to produce the .iso files.
$ f="Mahjong Haou - Battle Royale (Japan)"; bchunk "$f.bin" "$f.cue" "$f"
binchunker for Unix, version 1.2.2 by Heikki Hannikainen <[email protected]>
Created with the kind help of Bob Marietta <[email protected]>,
partly based on his Pascal (Delphi) implementation.
Support for MODE2/2352 ISO tracks thanks to input from
Godmar Back <[email protected]>, Colas Nahaboo <[email protected]>
and Matthew Green <[email protected]>.
Released under the GNU GPL, version 2 or later (at your option).
Reading the CUE file:
Track 1: MODE2/2352 01 00:00:00
Writing tracks:
1: Mahjong Haou - Battle Royale (Japan)01.iso 33/33 MB [********************] 100 %
$ bin2iso Mahjong\ Haou\ -\ Battle\ Royale\ \(Japan\).cue
Aug 26 2021, 08:56:50
bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
Bob Doiron, ICQ#280251
Check for updates at http://users.andara.com/~doiron
Note: Appending pregap data to end of audio tracks
Mahjong Haou - Battle Royale (Japan)-01.iso ( 38 Mb) - sectors 000000:017332 (offset 000000000:040767215)
Mode2/2352 single track bin file indicated by cue file
Mahjong Haou - Battle Royale (Japan).bin renamed to Mahjong Haou - Battle Royale (Japan)-01.iso
I pass the output_dir
parameter and yet the .iso is not written to there; the .iso is written to the current directory, which is the default.
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
$ bin2iso Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\).cue /run/media/danb/ps2_mx4iso/CD/
Aug 26 2021, 08:56:50
bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
Bob Doiron, ICQ#280251
Check for updates at http://users.andara.com/~doiron
Note: Appending pregap data to end of audio tracks
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso (425 Mb) - sectors 000000:189743 (offset 000000000:446277887)
Mode2/2352 single track bin file indicated by cue file
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin renamed to Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso
$ ls -al Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\)*
-rw-r--r-- 1 danb danb 446277888 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso'
-rw-r--r-- 1 danb danb 116 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).cue'
The input file is "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).cue", the output file is 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso' note "-01" was suffixed. It's not neat that the filename is changed: just the extension should change. It's annoying to have to rename the files afterwards to get the original name.
If the number denotes CD tracks, so that a CD with multiple tracks will create multiple iso's, I suggest to only suffix with the number if there is more than 1 track. If there's only 1 track, the .iso should not suffix the number. This makes for neater output and file organisation.
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
$ bin2iso Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\).cue /run/media/danb/ps2_mx4iso/CD/
Aug 26 2021, 08:56:50
bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
Bob Doiron, ICQ#280251
Check for updates at http://users.andara.com/~doiron
Note: Appending pregap data to end of audio tracks
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso (425 Mb) - sectors 000000:189743 (offset 000000000:446277887)
Mode2/2352 single track bin file indicated by cue file
Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin renamed to Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso
$ ls -al Usagi\ -\ Yasei\ no\ Touhai\ -\ Dramatic\ Mahjong\ \(Japan\)*
-rw-r--r-- 1 danb danb 446277888 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan)-01.iso'
-rw-r--r-- 1 danb danb 116 Dec 24 1996 'Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).cue'
I doubt the file is corrupted in some way, but if it is the program shouldn't crash anyway.
FILE "Simple 2000 Series Ultimate Vol. 14 - Touhai! Dramatic Mahjong - Ten - Tenhoo Doori no Kaidanji (Japan).bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
$ bin2iso Simple\ 2000\ Series\ Ultimate\ Vol.\ 14\ -\ Touhai\!\ Dramatic\ Mahjong\ -\ Ten\ -\ Tenhoo\ Doori\ no\ Kaidanji\ \(Japan\).cue
Aug 26 2021, 08:56:50
bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
Bob Doiron, ICQ#280251
Check for updates at http://users.andara.com/~doiron
*** buffer overflow detected ***: terminated
[1] 2197819 IOT instruction (core dumped) bin2iso
$ ls -al *14*
-rw-r--r-- 1 danb danb 49293216 Dec 24 1996 'Simple 2000 Series Ultimate Vol. 14 - Touhai! Dramatic Mahjong - Ten - Tenhoo Doori no Kaidanji (Japan).bin'
-rw-r--r-- 1 danb danb 169 Dec 24 1996 'Simple 2000 Series Ultimate Vol. 14 - Touhai! Dramatic Mahjong - Ten - Tenhoo Doori no Kaidanji (Japan).cue'
bchunk
processes the file without issue:$ bchunk Simple\ 2000\ Series\ Ultimate\ Vol.\ 14\ -\ Touhai\!\ Dramatic\ Mahjong\ -\ Ten\ -\ Tenhoo\ Doori\ no\ Kaidanji\ \(Japan\).bin Simple\ 2000\ Series\ Ultimate\ Vol.\ 14\ -\ Touhai\!\ Dramatic\ Mahjong\ -\ Ten\ -\ Tenhoo\ Doori\ no\ Kaidanji\ \(Japan\).cue Simple\ 2000\ Series\ Ultimate\ Vol.\ 14\ -\ Touhai\!\ Dramatic\ Mahjong\ -\ Ten\ -\ Tenhoo\ Doori\ no\ Kaidanji\ \(Japan\)
binchunker for Unix, version 1.2.2 by Heikki Hannikainen <[email protected]>
Created with the kind help of Bob Marietta <[email protected]>,
partly based on his Pascal (Delphi) implementation.
Support for MODE2/2352 ISO tracks thanks to input from
Godmar Back <[email protected]>, Colas Nahaboo <[email protected]>
and Matthew Green <[email protected]>.
Released under the GNU GPL, version 2 or later (at your option).
Reading the CUE file:
Track 1: MODE2/2352 01 00:00:00
Writing tracks:
1: Simple 2000 Series Ultimate Vol. 14 - Touhai! Dramatic Mahjong - Ten - Tenhoo Doori no Kaidanji (Japan)01.iso 40/40 MB [********************] 100 %
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.