Git Product home page Git Product logo

bin2iso's People

Contributors

michaelortmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

michaelvsk

bin2iso's Issues

`output_dir` parameter ignored

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.

  • .cue file
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  • command line used & the screen output
$ 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
  • directory listing of source and files created (with sizes)
$ 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'

.iso files produced are broken

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

Buffer overflow processing a .bin

I doubt the file is corrupted in some way, but if it is the program shouldn't crash anyway.

  • .cue file
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
  • command line used & the screen output
$ 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
  • directory listing of source and files created (with sizes)
$ 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 %

Original .bin file destructively overwritten

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.

  • .cue file
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  • command line used & the screen output
$ 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
  • directory listing of source and files created (with sizes)
$ 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'

Original name not used for created .iso file

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.

  • .cue file
FILE "Usagi - Yasei no Touhai - Dramatic Mahjong (Japan).bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
  • command line used & the screen output
$ 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
  • directory listing of source and files created (with sizes)
$ 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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.