- Joined
- Dec 19, 2016
- Messages
- 324
- Reaction score
- 684
- Trophies
- 1
- Age
- 36
- Location
- Brazil
- Website
- mundowiihack.wordpress.com
- XP
- 2,652
- Country


I asked because I had crashes with chd compressed with cdzl + cdfl (still Colin Mc Rae PAL). Because of cdzl then, not cdfl ?CHDs using only zlib and FLAC were already faster than the ones using LZMA. The real issue was and is LZMA compression. zlib is fine.
I tried.Have you tried also this for achieve a little more compression? (ZStandard+FLAC)
chdman createcd -i input.cue -o output.chd -c cdzs,cdfl
chdman - MAME Compressed Hunks of Data (CHD) manager 0.263 (mame0263)
Input file: Colin McRae Rally (Europe) (En,Fr,De,Es) (Rev 1).chd
File Version: 5
Logical size: 511,024,896 bytes
Hunk Size: 19,584 bytes
Total Hunks: 26,094
Unit Size: 2,448 bytes
Total Units: 208,752
Compression: cdzs (CD Zstandard), cdfl (CD FLAC)
CHD size: 275,336,932 bytes
Ratio: 53.9%
SHA1: 741067e01788665ff90b9bd10fa23fae8f7948de
Data SHA1: cc1debc7f605e5bd864ad3350d56867e91e204a4
Metadata: Tag='CHT2' Index=0 Length=93 bytes
TRACK:1 TYPE:MODE2_RAW SUBTYPE:NONE FRAMES:147897 PREGAP:0 PGTYPE:MODE1 PGSUB:NONE POSTGAP:0.
Metadata: Tag='CHT2' Index=1 Length=91 bytes
TRACK:2 TYPE:AUDIO SUBTYPE:NONE FRAMES:23700 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0.
Metadata: Tag='CHT2' Index=2 Length=91 bytes
TRACK:3 TYPE:AUDIO SUBTYPE:NONE FRAMES:13450 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0.
Metadata: Tag='CHT2' Index=3 Length=91 bytes
TRACK:4 TYPE:AUDIO SUBTYPE:NONE FRAMES:23698 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0.
Hunks Percent Name
---------- ------- ------------------------------------
53 0.2% Copy from self
18,489 70.9% CD Zstandard
7,552 28.9% CD FLAC
If I'm not mistaken, FLAC is even lighter than Zstandard and deflate (zlib) as it can be decoded on many DAP's with hardware even more restricted than the Wii.I asked because I had crashes with chd compressed with cdzl + cdfl (still Colin Mc Rae PAL). Because of cdzl then, not cdfl ?
I tried.
And the size reduction is noticeable:
Colin Mc Rae PAL:
313Mo (cdzs only) -> 268Mo (cdzs + cdfl)
Code:chdman - MAME Compressed Hunks of Data (CHD) manager 0.263 (mame0263) Input file: Colin McRae Rally (Europe) (En,Fr,De,Es) (Rev 1).chd File Version: 5 Logical size: 511,024,896 bytes Hunk Size: 19,584 bytes Total Hunks: 26,094 Unit Size: 2,448 bytes Total Units: 208,752 Compression: cdzs (CD Zstandard), cdfl (CD FLAC) CHD size: 275,336,932 bytes Ratio: 53.9% SHA1: 741067e01788665ff90b9bd10fa23fae8f7948de Data SHA1: cc1debc7f605e5bd864ad3350d56867e91e204a4 Metadata: Tag='CHT2' Index=0 Length=93 bytes TRACK:1 TYPE:MODE2_RAW SUBTYPE:NONE FRAMES:147897 PREGAP:0 PGTYPE:MODE1 PGSUB:NONE POSTGAP:0. Metadata: Tag='CHT2' Index=1 Length=91 bytes TRACK:2 TYPE:AUDIO SUBTYPE:NONE FRAMES:23700 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0. Metadata: Tag='CHT2' Index=2 Length=91 bytes TRACK:3 TYPE:AUDIO SUBTYPE:NONE FRAMES:13450 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0. Metadata: Tag='CHT2' Index=3 Length=91 bytes TRACK:4 TYPE:AUDIO SUBTYPE:NONE FRAMES:23698 PREGAP:150 PGTYPE:VAUDIO PGSUB:NONE POSTGAP:0. Hunks Percent Name ---------- ------- ------------------------------------ 53 0.2% Copy from self 18,489 70.9% CD Zstandard 7,552 28.9% CD FLAC
I didn't test it yet, to see if crashes happen or not. (It shouldn't ? as there's no subchannel data, so no zlib anywhere ?)
Nope, all's fine with cue+bin.Do the crashes also happen with uncompressed bin/cue?
I don't think we should worry about subchannel data in CHD's, because chdman does not support MSD/MDF or CCD/IMG/SUB or SBI files. These are the main formats that have subchannel data. Even if you try to convert a game with BIN/CUE/SBI, the SBI file will get ignored by chdman.Nope, all's fine with cue+bin.
(I use Cue+Bin for all games -including Colin McRae-, but I also use this game for CHD tests).
So far:
- CHD Zlib (cdzl) + LZMA (cdlz) + FLAC (cdfl): crash (chdman default compression)
- CHD Zlib (cdzl) + FLAC (cdfl) : crash
- CHD Zstandard (cdzs) : no crash \o/
- CHD Zstandard (cdzs) + FLAC (cdfl) : not fully tested yet (not played enough).
From what I understand, flac use zlib algorithm only for subchannel data. I wonder if this could induce crash.
As you said, it has to be tested with a game having subchannel data, to be 100% sure it's safe.


Thanks for your appreciation, let's be honest i learned many things about the Wii/vWii and somewhat of coding by myself.Saul you’ve been a real awesome part of the Wii modding scene for a few years now. I’ve used all sorts of stuff you worked on. Did you teach yourself how to code to do this?

They has to be ripped. Wii read only Wii discs (some models read Gamecube discs too).Sorry if this has been asked before (I cannot find a way to search in a forum thread): can original playstation discs be used by directly inserting them into the Wii slot, or do they first need to be ripped?


Are the sound issues happening in CHD only or also with BIN/CUE or even PBP?Well, it looks that problems with CHD are (at least partially) fixed - even using Deflate + FLAC I haven't noticed any problems (even with previosly problematic games).
Sadly, there are still weird problems with sound I metioned some time ago.
Crashes are very random with zlib + flac.even using Deflate + FLAC
though I did check again and saw that the tester of Colin Mc Rae Rally used the PAL version (I went with NTSC-U)
I wanted to test again Colin Mc Rae PAL (SLES00477) [...]
But I encountered a problem: I launch the game, but the controller does not respond on the main menu (not even the Home button to go back to the Wiistation menu).
EDIT: OK, I found the culprit. It's Lightrec. When I switch to Dynarec, the controller responds again on the game menu.
So, there's a regression here. I'm affirmative it was working fine with previous Lightrec versions.

Thanks! I'm working on cleaning everything up and creating a download that isn't too "piratey" but still has the essentials.Absolutely Bloody Gorgeous
I have been looking for an excuse to get a couple 40USD perfect condition Wiis...
I adore your work. Do you think it would be possible to get a back-up of your SD Dump and any adjacent documentation?
I am BLOWN AWAY.
Gorgeous.





