RupertAvery / PSXPackager

A utility to convert Playstation disc images in various formats to PBP format and back
Other
230 stars 15 forks source link

Add support for .ccd, .chd, .mdf formats #9

Open aymanbagabas opened 3 years ago

aymanbagabas commented 3 years ago

I'm trying to organize my PSX library and compress the roms as low as possible with the .pbp format. However, some roms have these formats and it would be super great to support them in this awesome project. Thanks for putting the time into this @RupertAvery!

RupertAvery commented 2 years ago

Thanks for using PSXPackager.

It would be nice to support these, but they are not open standards and I have difficulty finding documentation about the file formats.

mrsilver76 commented 2 years ago

For CHD, could you not just shell out to chdman?

For example, if you get a CHD as an input file, use chdman extractcd to extract the contents to a temporary folder (which will likely result in BIN and CUE files) and then work on that.

If someone wants to convert to CHD, create BIN and CUE files and then use chdman createcd to generate the CHD.

malvarenga123 commented 1 year ago

CHD has a standalone library: https://github.com/rtissera/libchdr CCD is a different type of cuesheet used by CloneCD. You may find out how they're structured by looking at DIC's source: https://github.com/saramibreak/DiscImageCreator/blob/master/DiscImageCreator/output.cpp (just search for 'writeccd')

RupertAvery commented 8 months ago

This could become possible with https://github.com/HeatXD/chdr_cs, which are automatically generated bindings for libchdr