KBNLresearch / iromlab

Loader software for automated imaging of optical media with Nimbie disc robot
Apache License 2.0
31 stars 5 forks source link

Add support for cd-i discs #78

Closed bitsgalore closed 5 years ago

bitsgalore commented 5 years ago

IsoBuster should support this, cd-info appears to support CD-I detection as well:

https://github.com/xbmc/libcdio/blob/3ffee56e19c18142f07f0e52924c4e7b55d9e11d/src/cd-info.c#L685

bitsgalore commented 5 years ago

Output of cd-info for cd-i disc:

CD location   : D:
CD driver name: WIN32
   access mode: ioctl

__________________________________

CD-ROM Track List (1 - 1)
  #: MSF       LSN    Type   Green? Copy?
  1: 00:02:00  000000 data   false  no
170: 57:47:00  259875 leadout (582 MB raw, 507 MB formatted)
__________________________________
CD Analysis Report
CD-Interactive

So from this we can easily detect cd-i discs.

bitsgalore commented 5 years ago

The IsoBuster docs mention several caveats on the extraction of data from CD-i discs

https://www.isobuster.com/help/cd-i_and_vcd

A first test on one cd-i shows that extracting the user data (as with a CD-ROM) does not work, but extracting to RAW or RAW to User does. It's unclear how the resulting images should then be read (if possible at all).

Checked back with IsoBuster author, who recommended to always image as RAW for cd-i (and also Video CD), because block size may vary within a track.

According to this overview, the MAME emulator offers some support for cd-i:

http://emulation.gametechwiki.com/index.php/Philips_CD-i_emulators

So for any tests on the accessibility of cd-i images this is probably a good starting point.

bitsgalore commented 5 years ago

Done: https://github.com/KBNLresearch/iromlab/commit/9ce72af87ba5c2b8421031ba47354cb111524e9d