Re: DiscImageCreator
Posted: Mon Aug 23, 2021 9:09 am
Come on guys. It's as simple as implementing some command line switch to perform extra hash caclulations...
I've already explained those hashes are important and shouldn't be disabled. DIC dumps every disc upto 15-20 minutes on 4x, while the hash calculating takes maybe a minute (when reading data from HDD, from ramdisk it should be faster). If "the years of your work" don't deserve that minute - better not to do any dumping at all.reentrant wrote:Come on guys. It's as simple as implementing some command line switch to perform extra hash caclulations...
I just want to add my 2 cents here. Please be aware of how this comes across. I understand we have to have certain standards such as the plextor requirement for standard submissions, but there are ALWAYS going to be some special exception cases, or types of discs that can't be dumped via the normal methods. And if we make a blanket block on any such submission entirely, there will be a lot of content missing.F1ReB4LL wrote:I will personally nuke all the dumps made with unofficial/hacked tools, we don't need them. We don't accept the dumps from non-plextor drives, why should we accept dumps from some shady builds?
Code: Select all
#define CHUNK_SIZE 524288
BYTE data[CHUNK_SIZE] = {};
UINT64 ui64Remaining = ui64FileSize;
OutputString("Hashing: %s\n", pszFnameAndExt);
while (ui64Remaining > 0) {
UINT uiChunkSize = ui64Remaining < CHUNK_SIZE ? ui64Remaining : CHUNK_SIZE;
if (fread(data, sizeof(BYTE), uiChunkSize, fp) < uiChunkSize) {
OutputErrorString("Failed to read: read size %u [F:%s][L:%d]\n", uiChunkSize, _T(__FUNCTION__), __LINE__);
return FALSE;
};
nRet = CalcHash(&crc32, &context, &sha, data, uiChunkSize);
if (!nRet) {
break;
}
ui64Remaining -= uiChunkSize;
}It is reversible for normal cases, but some dumps are a mess of descrambled and scrambled data. Also some scrambling/descrambling tools handle the data differently (the themabus'es descrambler adds weird headers to zeroed sectors, for example).hiker13526 wrote:If the descrambling isn't reversible for discs with mastering errors or unusual scrambling, won't it have to be redumped regardless of what the log shows?
Ask iR0b0t. scm contains what was read from the disc, img and bins are conversions.hiker13526 wrote:If the .scm hash is the One True Hash, why not store it in the database?
Probably also worth not to hash img and bin separately for the single-track dumps.bsbt wrote:The hashing phase is slow at least in part due to it only reading 2K at a time from the file. There's even a comment to that effect.
IMO, this is not acceptable behaviour from a redump mod. I would strongly recommend actually making sure you understand someone before immediately taking harsh and counterproductive actions like this. user7 clearly was refering to his PC, not a build of DIC, and if you were unsure, you should have asked him what he meant first. Even if he didn't, you could have talked things over in a much less hostile manner.F1ReB4LL wrote:I will personally nuke all the dumps made with unofficial/hacked tools, we don't need them. We don't accept the dumps from non-plextor drives, why should we accept dumps from some shady builds?user7 wrote:I've got a good build bro, thanks.
I'm not clear on the benefit of the .scm hash. What's the process for discs with a mess of descrambled and scrambled data? Is the .scm hash used, or is the .bin hash used?F1ReB4LL wrote:but some dumps are a mess of descrambled and scrambled data
Then he has nothing to worry about, what's the problem? Just warned people not to use untested/hacky builds, we have lots of problems with specific official & test versions of DIC, we don't need additional problems with hacky ones.RibShark wrote:user7 clearly was refering to his PC, not a build of DIC, and if you were unsure, you should have asked him what he meant first
No hostility at all, I haven't said anything about his dumps, the warning was neutral.RibShark wrote:Even if he didn't, you could have talked things over in a much less hostile manner.
What do you mean by "used"? In db? Db only uses cue-bin images, ofc. SCM hash is needed when/if you decide to verify some descrambled image by scrambling it back. Messy discs may give a different result, depends on the case. Also, there are known mastering errors when the scrambled CD image contains unscrambled sectors and the descrambled data contains scrambled sectors - again, if you don't have .scm checksums and don't have the scm image anymore, you can't really confirm the image is correct.hiker13526 wrote:I'm not clear on the benefit of the .scm hash. What's the process for discs with a mess of descrambled and scrambled data? Is the .scm hash used, or is the .bin hash used?F1ReB4LL wrote:but some dumps are a mess of descrambled and scrambled data
Would you advise that ideally the database would have .scm hashes?F1ReB4LL wrote:What do you mean by "used"? In db? Db only uses cue-bin images, ofc. SCM hash is needed when/if you decide to verify some descrambled image by scrambling it back. Messy discs may give a different result, depends on the case. Also, there are known mastering errors when the scrambled CD image contains unscrambled sectors and the descrambled data contains scrambled sectors - again, if you don't have .scm checksums and don't have the scm image anymore, you can't really confirm the image is correct.