superg / redumper

Low level CD dumper utility
GNU General Public License v3.0
227 stars 21 forks source link

INXS - Welcome to Wherever You Are: incorrect write-offset & track splitting #180

Open bikerspade opened 3 months ago

bikerspade commented 3 months ago

Similar to https://github.com/superg/redumper/issues/134 redumper determines the disc write offset to be +6838, and moves data out of lead-out

However, this results in incorrect track splitting, where the beginning samples of track 5 are heard at the end of track 4.

Using --force-offset=0 seems to result in correct track splitting.

Disc: https://www.discogs.com/release/1728760-INXS-Welcome-To-Wherever-You-Are Mastering Code: 3 82394-2 SRC=02 Toolstamp: M1S4

default (+6838):

=== 2024-08-12 12:55:43 ========================================================
redumper v2024.05.27 build_371 [May 27 2024, 14:07:43]

arguments: cd --verbose --debug --drive=H --speed=8 --retries=20 "--image-path=ISO\INXS - Welcome to Wherever You Are (USA)" "--image-name=INXS - Welcome to Wherever You Are (USA)"

drive path: H
drive: PLEXTOR - CD-R PX-W5224A (revision level: 1.04, vendor specific: 04/10/06 17:00)
drive configuration: PLEXTOR (read offset: +30, C2 shift: 294, pre-gap start: -75, read method: D8, sector order: DATA_C2_SUB)
drive read speed: 1411 KB

current profile: CD-ROM

image path: "ISO\INXS - Welcome to Wherever You Are (USA)"
image name: "INXS - Welcome to Wherever You Are (USA)"

*** DUMP

disc TOC:
  track 01 { audio }
    index 01 { LBA:     32, MSF: 00:02:32 }
  track 02 { audio }
    index 01 { LBA:   9592, MSF: 02:09:67 }
  track 03 { audio }
    index 01 { LBA:  24315, MSF: 05:26:15 }
  track 04 { audio }
    index 01 { LBA:  48207, MSF: 10:44:57 }
  track 05 { audio }
    index 01 { LBA:  63342, MSF: 14:06:42 }
  track 06 { audio }
    index 01 { LBA:  82140, MSF: 18:17:15 }
  track 07 { audio }
    index 01 { LBA:  97027, MSF: 21:35:52 }
  track 08 { audio }
    index 01 { LBA: 118450, MSF: 26:21:25 }
  track 09 { audio }
    index 01 { LBA: 134010, MSF: 29:48:60 }
  track 10 { audio }
    index 01 { LBA: 149402, MSF: 33:14:02 }
  track 11 { audio }
    index 01 { LBA: 163850, MSF: 36:26:50 }
  track 12 { audio }
    index 01 { LBA: 182495, MSF: 40:35:20 }
  track AA { audio }
    index 01 { LBA: 203037, MSF: 45:09:12 }

PLEXTOR: reading lead-in (retry: 1)
PLEXTOR: lead-in found (session: 1, sectors: 3657)
PLEXTOR: reading lead-in (retry: 2)
PLEXTOR: lead-in found (session: 1, sectors: 2825)
PLEXTOR: storing lead-in (session: 1, verified: yes)

media errors: 
  SCSI: 0
  C2: 0
  Q: 467

*** PROTECTION (time check: 362s)

protection: N/A

*** REFINE

*** SPLIT

correcting P... done
correcting Q... done

final TOC:
  track 01 { audio }
    index 00 { LBA: [  -150 ..     31], length:    182, MSF: 00:00:00-00:02:31 }
    index 01 { LBA: [    32 ..   9591], length:   9560, MSF: 00:02:32-02:09:66 }
  track 02 { audio }
    index 01 { LBA: [  9592 ..  24314], length:  14723, MSF: 02:09:67-05:26:14 }
  track 03 { audio }
    index 01 { LBA: [ 24315 ..  48206], length:  23892, MSF: 05:26:15-10:44:56 }
  track 04 { audio }
    index 01 { LBA: [ 48207 ..  63341], length:  15135, MSF: 10:44:57-14:06:41 }
  track 05 { audio }
    index 01 { LBA: [ 63342 ..  82139], length:  18798, MSF: 14:06:42-18:17:14 }
  track 06 { audio }
    index 01 { LBA: [ 82140 ..  97026], length:  14887, MSF: 18:17:15-21:35:51 }
  track 07 { audio }
    index 01 { LBA: [ 97027 .. 118449], length:  21423, MSF: 21:35:52-26:21:24 }
  track 08 { audio }
    index 01 { LBA: [118450 .. 134009], length:  15560, MSF: 26:21:25-29:48:59 }
  track 09 { audio }
    index 01 { LBA: [134010 .. 149351], length:  15342, MSF: 29:48:60-33:13:26 }
  track 10 { audio }
    index 00 { LBA: [149352 .. 149401], length:     50, MSF: 33:13:27-33:14:01 }
    index 01 { LBA: [149402 .. 163849], length:  14448, MSF: 33:14:02-36:26:49 }
  track 11 { audio }
    index 01 { LBA: [163850 .. 182494], length:  18645, MSF: 36:26:50-40:35:19 }
  track 12 { audio }
    index 01 { LBA: [182495 .. 203036], length:  20542, MSF: 40:35:20-45:09:11 }
  track AA { audio }
    index 01 { LBA: [203037 .. 203135], length:     99, MSF: 45:09:12-45:10:35 }

analyzing... done (time: 13s)

non-zero  TOC sample range: [   -88200 .. +119385756]
non-zero data sample range: [   +23782 .. +119392594]
Universal Hash (SHA-1): 71c7d8914da3a5cf821aa67929998aa3433768ab

Perfect Audio Offset (silence level: 0): [-7744 .. +4966]
moving data out of lead-out (difference: +6838)
disc write offset: +6838

checking tracks
done

writing tracks
done

CUE [INXS - Welcome to Wherever You Are (USA).cue]:
CATALOG 0075678239427
FILE "INXS - Welcome to Wherever You Are (USA) (Track 01).bin" BINARY
  TRACK 01 AUDIO
    INDEX 00 00:00:00
    INDEX 01 00:00:32
FILE "INXS - Welcome to Wherever You Are (USA) (Track 02).bin" BINARY
  TRACK 02 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 03).bin" BINARY
  TRACK 03 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 04).bin" BINARY
  TRACK 04 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 05).bin" BINARY
  TRACK 05 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 06).bin" BINARY
  TRACK 06 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 07).bin" BINARY
  TRACK 07 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 08).bin" BINARY
  TRACK 08 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 09).bin" BINARY
  TRACK 09 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 10).bin" BINARY
  TRACK 10 AUDIO
    INDEX 00 00:00:00
    INDEX 01 00:00:50
FILE "INXS - Welcome to Wherever You Are (USA) (Track 11).bin" BINARY
  TRACK 11 AUDIO
    INDEX 01 00:00:00
FILE "INXS - Welcome to Wherever You Are (USA) (Track 12).bin" BINARY
  TRACK 12 AUDIO
    INDEX 01 00:00:00

*** HASH (time check: 23s)

dat:
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 01).bin" size="22560384" crc="5d2485a0" md5="16dbb84d8380c2f9684bf1d0c76870da" sha1="581a4e5cfb3fac2c1b4c7d54e641727f7b0c4352" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 02).bin" size="34628496" crc="2bae67ad" md5="449cdf08ebd7ab12b38b5fce7923fbaa" sha1="41d1e479cf73a782aa9853bcdc72e84ee7d471cd" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 03).bin" size="56193984" crc="592656e0" md5="07c96a6b7324649e2655a3a3683edd62" sha1="f63dd71928ef8f79b12a036f073f7007f082384e" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 04).bin" size="35597520" crc="b44ec1b3" md5="a2dec038312bb8b164ea8de8b0174bda" sha1="aabf88ba9cfc82178fbc8c48b30027e4d07ff181" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 05).bin" size="44212896" crc="8e2ee447" md5="99253a700a24f4a2f0ae9256c463065d" sha1="8bbebde7e38275438961b3972c7baaf8bc85c114" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 06).bin" size="35014224" crc="8a1804e1" md5="dddec8af25f210236a11ab930e3beac1" sha1="b80c1e81fbddddba819e7eab99c48899afeea268" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 07).bin" size="50386896" crc="515a29dd" md5="b6fdf9681952526ec026ab6b4206cb74" sha1="6f05efba3d8e38f0b9859105fbc855916afe168b" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 08).bin" size="36597120" crc="cb139923" md5="04de9dbcf3dba42194d8940b5668fe0e" sha1="334d18f8d6cac374b7a24a592daadffee9daa8f0" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 09).bin" size="36084384" crc="5396103e" md5="adb09e6c3d4b8c1a2d3ef246ecdb8b1d" sha1="b53fe23eb38ac7fd730578824b9888af2d4842bb" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 10).bin" size="34099296" crc="903fe3c9" md5="f24b5d06db79045b4421dceaa64b09f2" sha1="14de42610679c8443a1d45c272168dea0764e82d" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 11).bin" size="43853040" crc="2444a30d" md5="e04b87009f584109bde31e93f6c0531f" sha1="9de06deb33ad0b2df7721b377e6e918f52211e69" />
<rom name="INXS - Welcome to Wherever You Are (USA) (Track 12).bin" size="48314784" crc="61e5422e" md5="5dc14f87bb0951e61510a1238a22c1c3" sha1="27eeee9ee22335d2acfd35fc3fdffaa529c93768" />

*** INFO

*** SKELETON

*** END

INXS - Welcome to Wherever You Are (USA)_logs.zip

Deterous commented 3 months ago

Given that the offset is relatively small (<10000), this seems to be a design decision of redumper rather than a bug. The spec says that no data should be in the lead-out, and following the spec results in this "bad split". If there's a way to determine that data in the lead-out is due to bad mastering (disc doesn't follow spec) and not disc write offset (disc follows spec), then I am not aware of it.

superg commented 3 months ago

Up to 2 seconds of the non zero lead-out will be shifted (88200 samples).