| Command | Purpose | |--------------|-----------------------------------| | createcd | Create CHD from CD image | | createhd | Create CHD from hard disk image | | createld | Create CHD from laser disc image | | extractcd | Extract CHD back to CD image | | extracthd | Extract CHD back to hard disk | | extractld | Extract CHD back to laser disc | | verify | Check CHD integrity | | info | Show CHD metadata | 4.1 From CD-ROM / DVD (BIN/CUE, ISO, CCD, etc.) chdman createcd -i "input.cue" -o "output.chd" Example with options :
For CDs, always use cdlz – it compresses audio with FLAC. | Error | Solution | |--------------------------------------|------------------------------------------------| | Input file not found | Check path, use quotes for spaces | | Unsupported track type | Ensure CUE sheet is valid, all referenced bins exist | | Unable to decompress CHD | CHD may be corrupt or made with newer chdman version | | Output file already exists | Use -f to overwrite | | Unknown command | Typo; use chdman -h for list | chdman.exe
chdman extractcd -i disc.chd -o disc.cue -ob disc.iso chdman extracthd -i "drive.chd" -o "drive.raw" You may need to convert raw to VHD or IMG using other tools. 6. Common options across commands | Option | Effect | |----------------|----------------------------------------| | -c <codec> | Compression codec (zlib, lzma, etc.) | | -compression | Same as -c | | -v | Verbose output | | -f | Force overwrite existing output | | -noinputcheck | Skip input file validation (risky) | | -h | Show help for a command | 7. Useful examples 7.1 Batch convert all CUE/BIN to CHD (Windows batch) for %%i in (*.cue) do chdman createcd -i "%%i" -o "%%~ni.chd" -c cdlz 7.2 Batch extract all CHD to CUE/BIN for %%i in (*.chd) do chdman extractcd -i "%%i" -o "%%~ni.cue" -ob "%%~ni.bin" 7.3 Verify CHD integrity chdman verify -i "game.chd" Returns exit code 0 if OK, non-zero if corrupted. 7.4 Show CHD info chdman info -i "game.chd" Shows: CHD version, logical size, compression type, SHA1/hashes, track layout. 8. Compression codec details | Codec | Use case | Speed (create) | Size ratio | Notes | |-------|-------------------------|----------------|------------|---------------------------| | cdlz | CD-ROM/DVD | Medium | Good | Default for createcd | | lzma | Hard disks / archival | Slow | Excellent | CPU-heavy | | zlib | General | Fast | Fair | | | huffman | Simple data | Very fast | Poor | Rarely used alone | Common options across commands | Option | Effect