Data inside pregap?

User avatar
Rocknroms
Posts: 858
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by Rocknroms »

F1ReB4LL wrote:I repeat, any drive descrambles everything in datatrack automatically, including the next audio gap, because it "belongs" to the same datatrack (drive splits tracks by TOC and TOC contains LBAs of all the 01 indexes, 00 index belongs to the previous track, according to this logic), d8 edition of cdtoimg is a must.
I didn's say anything different. We are talking of audio gap and if we have a bad mastering situation (this gap attached to the end of "track 01" has any garbage due to offset correction, the sectors are simply saved as data <---> they are 0x00 audio descrambled to data format so simply empty sectors with mode1/2 headers).
If you have to move sectors as audio, simply use the operation I said above to unscramble sectors (I did this operation to retrieve most of SS dumps if I got right offset correction).
My patch requests thread
--------------------------------
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by F1ReB4LL »

No rescrambling of descrambled data, please. We've already seen corrupted scrambled data sectors in the audio gap. Remember, if there are data sectors in audio gap, this is a badly mastered disc and there can be anything, descrambled data can be wrong and rescrambling will make things even worse. We're a database of dumps, not manually rescrambled things. a) Plextor, cdtoimg and chopfile or b) Swap trick, CD tool and chopfile - no more alternatives (yet).
User avatar
Rocknroms
Posts: 858
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by Rocknroms »

What are you talking about? Did you understand or not?
Empty data sectors has nothing corrupt, they are simply empty with headers

The following is simply an empty mode1 sector and not garbage:

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  00 FF FF FF FF FF FF FF FF FF FF 00 00 02 00 01  .ÿÿÿÿÿÿÿÿÿÿ.....
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000020  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000150  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000180  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000190  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000001F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000200  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000210  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000220  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000230  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000240  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000250  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000260  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000270  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000280  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000290  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000002F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000300  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000310  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000320  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000330  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000340  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000350  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000360  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000370  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000380  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000390  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000003F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000400  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000410  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000420  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000430  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000440  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000450  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000460  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000470  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000480  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000490  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000004F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000500  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000510  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000520  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000530  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000540  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000550  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000560  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000570  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000580  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000590  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000005F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000600  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000610  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000620  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000630  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000640  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000650  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000660  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000670  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000680  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000690  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000006F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000700  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000710  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000720  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000730  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000740  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000750  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000760  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000770  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000780  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000790  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000800  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000810  C5 13 68 2B 00 00 00 00 00 00 00 00 00 F7 00 F5  Å.h+.........÷.õ
00000820  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000830  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000840  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000850  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000860  00 00 00 00 00 00 52 35 B8 7D 00 00 00 00 00 00  ......R5¸}......
00000870  00 00 00 F5 00 F4 00 00 00 00 00 00 00 00 00 00  ...õ.ô..........
00000880  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000890  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000008A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000008B0  00 00 00 00 00 00 00 00 00 00 00 00 97 26 D0 56  ............—&ÐV
000008C0  00 00 00 00 00 00 00 00 00 41 00 00 00 00 00 00  .........A......
000008D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 2D 17  ..............-.
000008E0  2E 1B B1 48 B2 44 00 00 00 00 00 00 00 00 00 00  ..±H²D..........
000008F0  00 00 00 00 00 00 00 65 00 C2 00 E6 00 43 00 00  .......e.Â.æ.C..
00000900  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000910  00 00 45 3C 53 75 33 2B 25 62 00 00 00 00 00 00  ..E<Su3+%b......
00000920  00 00 00 00 00 00 00 00 00 00 00 90 00 C1 00 12  .............Á..
a) Plextor, cdtoimg and chopfile or b) Swap trick, CD tool and chopfile
Don't you have to rescrambling something in both situations? Or not? don't you have to use descramble_CDDA or something similar?
I repeat again THOSE SECTORS ARE EMPTY and so they are always the same if they take sector count and mode (the only exception can be fake TOC discs, but I don't see any in DB, did you?).

And I repeat again descrambled data can be wrong ok, if so you can use sector from an empty mode1/2 track to fix it (or simply use this track to create scrambled sectors). And there's no garbage at the end on data track, those are empty dta sectors (you want to call them descrambled audio pregap? Wel is the same thing because this audio is 0x00 and when descrambled you will get empty data sectors like the one above, no garbage this is simply header on 0x00).
My patch requests thread
--------------------------------
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by F1ReB4LL »

Rocknroms wrote:
a) Plextor, cdtoimg and chopfile or b) Swap trick, CD tool and chopfile
Don't you have to rescrambling something in both situations? Or not? don't you have to use descramble_CDDA or something similar?
Nope, no need to use. cdtoimg or swap trick + cd tool give the scrambled sectors, you just dump them and that's all. And I mean cases like https://redump.info/disc/7077/ or https://redump.info/disc/8047/ which contain abnormal scrambled data sectors, which sometimes give correct descrambled ones (by a drive's firmware on some drives). Rescrambling them back won't give you proper sectors. That's why I say, that in any case of incorrect mastering you should dump the scrambled sectors properly, because they can be abnormal.
Rocknroms wrote:And I repeat again descrambled data can be wrong ok, if so you can use sector from an empty mode1/2 track to fix it (or simply use this track to create scrambled sectors).
We don't fix anything, we preserve the data "as is". Or am I misunderstanding you?
User avatar
Rocknroms
Posts: 858
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by Rocknroms »

This https://redump.info/disc/8047/ is the only exception, the other one is the same of my examples, that is not garbage unless it has wrong offset.

About the other point you don't fix anything, simply speed up the process importing the same sectors from an empty image without redumping it with cdtoimg or trap disc. There's nothing to fix or modify, disc has always the same structure, if it's mode1 for example, all empty sectors will have the same header at same position for any disc with mode1 form unless toc is fake. The sector I write above is the first empty sector of any image, it's always the same in any disc if this sector is empty. So if you know with sub analisys that n sector or sectors have to be scrambled you can simply take these from an empty image (same position, same format) and unscramble them with descramble_cdda. If they don't have to be scrambled they are simply ready as they are.

PS: About your PCE assertions above, today we have probably something more to check real gaps, I'll report something as soon as I have time to take a look.
My patch requests thread
--------------------------------
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by F1ReB4LL »

Rocknroms wrote:This https://redump.info/disc/8047/ is the only exception, the other one is the same of my examples, that is not garbage unless it has wrong offset.
Wrong, you can't dump WWF by reading the descrambled sectors and rescrambling them - this won't give you the proper image.
Rocknroms wrote:About the other point you don't fix anything, simply speed up the process importing the same sectors from an empty image without redumping it with cdtoimg or trap disc. There's nothing to fix or modify, disc has always the same structure, if it's mode1 for example, all empty sectors will have the same header at same position for any disc with mode1 form unless toc is fake.
Please, don't ever generate any data, every byte should be read from CD, over. Your method is only good for converting the random dumps to match our dats, but if you're gonna add such semi-generated dumps into db - I'll kill you. You can't say the sector on the particular CD is good and doesn't have any mastering errors without reading it - you can only assume that and assuming is always bad, especially when you claim that the dump comes from the actual CD.
User avatar
Rocknroms
Posts: 858
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by Rocknroms »

I don't assume anything, I'm complete sure as I recovered those sectors (not my dumps) this way (scrambled and unscrambled) and because those are empty sectors that are always the same in the same position.

And I repeat those sector are not garbage, garbage is something else: wrong offset detection or bytes added by firmware or program, bytes not present on CD.
Your method is only good for converting the random dumps to match our dats
What's the difference if they match? I don't say to do this when you like but after analysing subs... if subs say something, is this wrong now?
I only say: TEST WHAT I SAID instead of assuming it's wrong because you assume wrongly that empty data sectors are something different. If I got 99 matches on 100 this is not assuming, but it's a proof where you have the remaining one (see Sakura Tsushin) as exception. We have a lot of exceptions in DB so please don't tell me that an exception doesn't make a rule because we can close DB as everything could be wrong.

Moreover I never said I want to submit dumps this way, mine was an analisys about something; did you read somewhere I wanted to add discs dumped this way?

I find this solution not only for recovering dumps around but also because as you should remember I have problems dumping Gunbird with cdtoimg
Please, don't ever generate any data, every byte should be read from CD
It's better also not to repeat this everytime you want something to match your thoughs because again we can close DB as everything could be wrong (psx, safedisc, all dvds, 2 tracks discs, etc.).
My patch requests thread
--------------------------------
F1ReB4LL
Posts: 3395
Joined: Mon Jun 08, 2026 1:26 am

Re: Data inside pregap?

Post by F1ReB4LL »

Rocknroms wrote:And I repeat those sector are not garbage, garbage is something else: wrong offset detection or bytes added by firmware or program, bytes not present on CD.
I've never said those sectors are garbage, I've said that a data track with a glued audio gap on the end has garbage between the descrambled data and audio sectors and even if it were possible to disable descrambling for audio gap when there are data sectors, that gap would be incomplete due to that garbage.
Post Reply