Aaru to CDRWin has incorrect INDEX 01 offset #660

Closed
opened 2026-01-29 15:25:24 +00:00 by claunia · 16 comments
Owner

Originally created by @terinjokes on GitHub (Feb 1, 2021).

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Check and fill as appropriate:

  • I was running Aaru under Windows [version here]...
  • I was running Aaru under Linux 5.10.3
  • I was running Aaru under macOS [version here]...
  • ...in 32-bit
  • ...in 64-bit
  • ...using an Intel / AMD processor
  • ...using an ARM or Apple Silicon processor
    • Image format: Aaru
    • Application that created the image: Aaru
  • [X I was converting the image...
    • ...Destination image format: CDRWin
  • I was listing the filesystem contents...
  • I was extracting the filesystem contents...
    • ...Filesystem:
    • Analyze command recognizes the filesystem
  • I was creating a metadata sidecar
  • I was checksumming the image
  • I was verifying the image

Description

When converting a CDDA to CDRWin's BIN+CUE format, I've noticed that Track 1 often starts abruptly, not how I remember the CD starting. The generated Cue sheet reports the audio starting at 2 seconds, which is about 1.5 seconds after the audio actually seems to start.

aaru media info /dev/sr0
aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified
Copyright © 2011-2021 Natalia Portillo

Error 1 querying ATA PACKET IDENTIFY
Media has 161415 blocks of 2048 bytes/each. (for a total of 315.264 MiB)
TOC:
First track number in first complete session: 1
Last track number in last complete session: 10
Track number: 1
Track starts at LBA 0, or MSF 00:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 2
Track starts at LBA 16580, or MSF 40:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 3
Track starts at LBA 29886, or MSF 74:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 4
Track starts at LBA 44800, or MSF AF:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 5
Track starts at LBA 61264, or MSF EF:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 6
Track starts at LBA 78555, or MSF 32:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 7
Track starts at LBA 95325, or MSF 74:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 8
Track starts at LBA 110737, or MSF B0:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 9
Track starts at LBA 125629, or MSF EA:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 10
Track starts at LBA 141725, or MSF 29:02:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: Lead-Out
Track starts at LBA 161415, or MSF 76:02:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited


Standard Disc Information:
Disc type declared as CD-DA or CD-ROM
Disc is finalized
Last session is complete
First track on disc is track 1
Disc has 1 sessions
First track in last session is track 1
Last track in last session is track 10
Last session Lead-In address is 4294967295 (as LBA) or FF:FF:FF
Last possible Lead-Out address is 4294967295 (as LBA) or FF:FF:FF
Disc is defined for restricted use

Session information:
First complete session number: 1
Last complete session number: 1
First track number in last complete session: 1
Track starts at LBA 512, or MSF 02:00:00
Q subchannel stores current position
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited


Raw TOC:
First complete session number: 1
Last complete session number: 1
Session 1
First track number: 1 (Stereo audio track with no pre-emphasis)
Disc type: 0
Last track number: 10 (Stereo audio track with no pre-emphasis)
Lead-out start position: 35:54:15
Lead-out is audio type
Audio track 1 starts at: 00:02:00 (Stereo audio track with no pre-emphasis)
Audio track 2 starts at: 03:43:05 (Stereo audio track with no pre-emphasis)
Audio track 3 starts at: 06:40:36 (Stereo audio track with no pre-emphasis)
Audio track 4 starts at: 09:59:25 (Stereo audio track with no pre-emphasis)
Audio track 5 starts at: 13:38:64 (Stereo audio track with no pre-emphasis)
Audio track 6 starts at: 17:29:30 (Stereo audio track with no pre-emphasis)
Audio track 7 starts at: 21:13:00 (Stereo audio track with no pre-emphasis)
Audio track 8 starts at: 24:38:37 (Stereo audio track with no pre-emphasis)
Audio track 9 starts at: 27:57:04 (Stereo audio track with no pre-emphasis)
Audio track 10 starts at: 31:31:50 (Stereo audio track with no pre-emphasis)

MCN: 0602557480726
Track's 1 ISRC: FIUM71700068
Track's 2 ISRC: FIUM71601324
Track's 3 ISRC: FIUM71700070
Track's 4 ISRC: FIUM71700069
Track's 5 ISRC: FIUM71700071
Track's 6 ISRC: FIUM71601032
Track's 7 ISRC: FIUM71700072
Track's 8 ISRC: FIUM71700055
Track's 9 ISRC: FIUM71700073
Track's 10 ISRC: FIUM71700074
Media Serial Number:
Media identified as CDDA

Track calculations:
Track 1 starts at LBA 0, ends at LBA 16579, has a pregap of 0 sectors and is of type Audio
Track 2 starts at LBA 16580, ends at LBA 29885, has a pregap of 0 sectors and is of type Audio
Track 3 starts at LBA 29886, ends at LBA 44799, has a pregap of 0 sectors and is of type Audio
Track 4 starts at LBA 44800, ends at LBA 61263, has a pregap of 0 sectors and is of type Audio
Track 5 starts at LBA 61264, ends at LBA 78554, has a pregap of 0 sectors and is of type Audio
Track 6 starts at LBA 78555, ends at LBA 95324, has a pregap of 0 sectors and is of type Audio
Track 7 starts at LBA 95325, ends at LBA 110736, has a pregap of 0 sectors and is of type Audio
Track 8 starts at LBA 110737, ends at LBA 125628, has a pregap of 0 sectors and is of type Audio
Track 9 starts at LBA 125629, ends at LBA 141724, has a pregap of 0 sectors and is of type Audio
Track 10 starts at LBA 141725, ends at LBA 161414, has a pregap of 0 sectors and is of type Audio

Offsets:
Drive reading offset not found in database.
Disc offset cannot be calculated.
aaru media dump -O compress=false --eject --fix-offset --subchannel none /dev/sr0 cd.aaru
aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified
Copyright © 2011-2021 Natalia Portillo

Output image format: Aaru Format.
Device not in database, please create a device report and attach it to a Github issue.

Reading full TOC
Building track map...
Checking if drive supports PQ subchannel reading...
Checking if drive supports full raw subchannel reading...
Full raw subchannel reading supported...
Drive returns subchannel in BCD...
Calculating pregaps, can take some time...
Reading ATIP
Reading Disc Information
Reading PMA
Reading Session Information
Reading CD-Text from Lead-In
Solving lead-outs...
Detecting disc type...
WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect!
Reading 64 sectors at a time.
Device reports 161415 blocks (395143920 bytes).
Device can read 64 blocks at a time.
Device reports 2448 bytes per logical block.
SCSI device type: MultiMediaDevice.
Media identified as CDDA.
Setting flags for track 1...
Setting flags for track 2...
Setting flags for track 3...
Setting flags for track 4...
Setting flags for track 5...
Setting flags for track 6...
Setting flags for track 7...
Setting flags for track 8...
Setting flags for track 9...
Setting flags for track 10...
Drive reading offset not found in database.
Disc offset cannot be calculated.
Dump may not be correct.
Setting speed to MAX for data reading.
Setting speed to 8x for audio reading.
Setting index 1 for track 1 to LBA 0.
Found new MCN 0602557480726.
Found new ISRC FIUM71700068 for track 1.
Setting index 1 for track 2 to LBA 16580.
Found new ISRC FIUM71601324 for track 2.
Setting index 1 for track 3 to LBA 29886.
Found new ISRC FIUM71700070 for track 3.
Setting index 1 for track 4 to LBA 44800.
Found new ISRC FIUM71700069 for track 4.
Setting index 1 for track 5 to LBA 61264.
Found new ISRC FIUM71700071 for track 5.
Setting index 1 for track 6 to LBA 78555.
Found new ISRC FIUM71601032 for track 6.
Setting index 1 for track 7 to LBA 95325.
Found new ISRC FIUM71700072 for track 7.
Setting index 1 for track 8 to LBA 110737.
Found new ISRC FIUM71700055 for track 8.
Setting index 1 for track 9 to LBA 125629.
Found new ISRC FIUM71700073 for track 9.
Setting index 1 for track 10 to LBA 141725.
Found new ISRC FIUM71700074 for track 10.
Reading sector 161373 of 161415 (1.426 MiB/sec.)
Dump finished in 346.7412661 seconds.
Average dump speed 1130.491 KiB/sec.
Average write speed 70178.692 KiB/sec.
Setting ISRC for track 1 to FIUM71700068
Setting ISRC for track 2 to FIUM71601324
Setting ISRC for track 3 to FIUM71700070
Setting ISRC for track 4 to FIUM71700069
Setting ISRC for track 5 to FIUM71700071
Setting ISRC for track 6 to FIUM71601032
Setting ISRC for track 7 to FIUM71700072
Setting ISRC for track 8 to FIUM71700055
Setting ISRC for track 9 to FIUM71700073
Setting ISRC for track 10 to FIUM71700074
Setting disc Media Catalogue Number to 0602557480726
Closing output file.
Closed in 0.7300662 seconds.
Hashing image file...
Hashing image file byte 379584512 of 379693566
Hashing media tags...
Checking filesystems
Hashing tracks...
Hashing sector 16384 of 16580
Hashing sector 12800 of 13306
Hashing sector 14848 of 14914
Hashing sector 16384 of 16464
Hashing sector 16896 of 17291
Hashing sector 16384 of 16770
Hashing sector 15360 of 15412
Hashing sector 14848 of 14892
Hashing sector 15872 of 16096
Hashing sector 19456 of 19690

Writing metadata sidecar

Took a total of 375.328 seconds (341.343 processing commands, 21.513 checksumming, 5.499 writing, 0.730 closing).
Average speed: 1.104 MiB/sec.
Fastest speed burst: 1.430 MiB/sec.
Slowest speed burst: 0.115 MiB/sec.
0 sectors could not be read.
0 subchannels could not be read.
aaru image info cd.aaru
aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified
Copyright © 2011-2021 Natalia Portillo

Image format identified by Aaru Format (49360069-1784-4a2f-b723-0c844d610b0a).

Image information:
Format: Aaru version 1.0
Was created with Aaru version 5.2
Image without headers is 379690706 bytes long
Contains a media of 161415 sectors with a maximum sector size of 2352 bytes (if all sectors are of the same size this would be 379648080 bytes)
Created on 02/01/2021 06:51:55
Last modified on 02/01/2021 06:57:43
Contains a media of type CDDA and XML type OpticalDisc
Has partitions
Has sessions
Contains 2 readable media tags:
CD_FullTOC CD_MCN
Contains 2 readable sector tags:
CdTrackIsrc CdTrackFlags

CompactDisc Table of Contents contained in image:
First complete session number: 1
Last complete session number: 1
Session 1
First track number: 1 (Stereo audio track with no pre-emphasis)
Disc type: 0
Last track number: 10 (Stereo audio track with no pre-emphasis)
Lead-out start position: 35:54:15
Lead-out is audio type
Audio track 1 starts at: 00:02:00 (Stereo audio track with no pre-emphasis)
Audio track 2 starts at: 03:43:05 (Stereo audio track with no pre-emphasis)
Audio track 3 starts at: 06:40:36 (Stereo audio track with no pre-emphasis)
Audio track 4 starts at: 09:59:25 (Stereo audio track with no pre-emphasis)
Audio track 5 starts at: 13:38:64 (Stereo audio track with no pre-emphasis)
Audio track 6 starts at: 17:29:30 (Stereo audio track with no pre-emphasis)
Audio track 7 starts at: 21:13:00 (Stereo audio track with no pre-emphasis)
Audio track 8 starts at: 24:38:37 (Stereo audio track with no pre-emphasis)
Audio track 9 starts at: 27:57:04 (Stereo audio track with no pre-emphasis)
Audio track 10 starts at: 31:31:50 (Stereo audio track with no pre-emphasis)

CompactDisc Media Catalogue Number contained in image: 0602557480726

Image sessions:
Session  First track  Last track  Start       End
=========================================================
1        1            10          0           161414

Image tracks:
Track  Type             Bps   Raw bps Subchannel  Pregap  Start       End
=================================================================================
1      Audio            2352  2352    None        150     0           16579
2      Audio            2352  2352    None        0       16580       29885
3      Audio            2352  2352    None        0       29886       44799
4      Audio            2352  2352    None        0       44800       61263
5      Audio            2352  2352    None        0       61264       78554
6      Audio            2352  2352    None        0       78555       95324
7      Audio            2352  2352    None        0       95325       110736
8      Audio            2352  2352    None        0       110737      125628
9      Audio            2352  2352    None        0       125629      141724
10     Audio            2352  2352    None        0       141725      161414

Track indexes:
Track  Index  Start
=======================
1      0      -150
1      1      0
2      1      16580
3      1      29886
4      1      44800
5      1      61264
6      1      78555
7      1      95325
8      1      110737
9      1      125629
10     1      141725

Dump hardware information:
Manufacturer  Model          Serial       Software  Version      Operating system  Start     End
=======================================================================================================
hp            DVD-RAM GH40L               Aaru      5.2.99.3380  Linux             0         161414
aaru image convert -f cd.aaru cd2.cue
aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified
Copyright © 2011-2021 Natalia Portillo

Input image format identified by Aaru Format.
Output image format: CDRWin cuesheet.
Converting media tag CD_MCN
161415 sectors to convert
Converting sectors 161415 to 161415 in track 10 (100.00 % done)
Converting tag CdTrackIsrc in track 10 (100.00 % done).
Converting tag CdTrackFlags in track 10 (100.00 % done).
Written dump hardware list to output image.
Closing output image.

Conversion done
cat cd2.cue
REM ORIGINAL MEDIA-TYPE: CD
REM METADATA AARU MEDIA-TYPE: CDDA
REM Ripping Tool: Aaru
REM Ripping Tool Version: 5.2.99.3380
REM METADATA DUMP EXTENT: Aaru | 5.2.99.3380 | Linux | hp | DVD-RAM GH40L | RB12 |  | 0:161414
CATALOG 0602557480726
FILE "cd2.bin" BINARY
REM SESSION 1
  TRACK 01 AUDIO
    ISRC FIUM71700068
    INDEX 00 00:00:00
    INDEX 01 00:02:00
  TRACK 02 AUDIO
    ISRC FIUM71601324
    INDEX 01 03:41:05
  TRACK 03 AUDIO
    ISRC FIUM71700070
    INDEX 01 06:38:36
  TRACK 04 AUDIO
    ISRC FIUM71700069
    INDEX 01 09:57:25
  TRACK 05 AUDIO
    ISRC FIUM71700071
    INDEX 01 13:36:64
  TRACK 06 AUDIO
    ISRC FIUM71601032
    INDEX 01 17:27:30
  TRACK 07 AUDIO
    ISRC FIUM71700072
    INDEX 01 21:11:00
  TRACK 08 AUDIO
    ISRC FIUM71700055
    INDEX 01 24:36:37
  TRACK 09 AUDIO
    ISRC FIUM71700073
    INDEX 01 27:55:04
  TRACK 10 AUDIO
    ISRC FIUM71700074
    INDEX 01 31:29:50

However it's clear the the audio is starting earlier than 00:02:00 by opening the raw file in audacity.

audacity

If I'm using aaru wrong, that's fine, I haven't made a lot of progress, but I'd like to learn that now than later. Is this related to my drive not being in the drive database?


Edit: I get the same issue when I providing the --first-pregap option to aaru media dump.

Originally created by @terinjokes on GitHub (Feb 1, 2021). ### Prerequisites * [X] Are you running the latest version? * [X] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [ ] I was running Aaru under Windows [version here]... * [X] I was running Aaru under Linux 5.10.3 * [ ] I was running Aaru under macOS [version here]... * [ ] ...in 32-bit * [X] ...in 64-bit * [X] ...using an Intel / AMD processor * [ ] ...using an ARM or Apple Silicon processor * **Image format**: Aaru * **Application that created the image**: Aaru * [X I was converting the image... * ...**Destination image format**: CDRWin * [ ] I was listing the filesystem contents... * [ ] I was extracting the filesystem contents... * ...**Filesystem**: * [ ] Analyze command recognizes the filesystem * [ ] I was creating a metadata sidecar * [ ] I was checksumming the image * [ ] I was verifying the image ### Description When converting a CDDA to CDRWin's BIN+CUE format, I've noticed that Track 1 often starts abruptly, not how I remember the CD starting. The generated Cue sheet reports the audio starting at 2 seconds, which is about 1.5 seconds after the audio actually seems to start. <details> <summary><code>aaru media info /dev/sr0</code></summary> ``` aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified Copyright © 2011-2021 Natalia Portillo Error 1 querying ATA PACKET IDENTIFY Media has 161415 blocks of 2048 bytes/each. (for a total of 315.264 MiB) TOC: First track number in first complete session: 1 Last track number in last complete session: 10 Track number: 1 Track starts at LBA 0, or MSF 00:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 2 Track starts at LBA 16580, or MSF 40:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 3 Track starts at LBA 29886, or MSF 74:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 4 Track starts at LBA 44800, or MSF AF:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 5 Track starts at LBA 61264, or MSF EF:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 6 Track starts at LBA 78555, or MSF 32:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 7 Track starts at LBA 95325, or MSF 74:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 8 Track starts at LBA 110737, or MSF B0:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 9 Track starts at LBA 125629, or MSF EA:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 10 Track starts at LBA 141725, or MSF 29:02:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: Lead-Out Track starts at LBA 161415, or MSF 76:02:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Standard Disc Information: Disc type declared as CD-DA or CD-ROM Disc is finalized Last session is complete First track on disc is track 1 Disc has 1 sessions First track in last session is track 1 Last track in last session is track 10 Last session Lead-In address is 4294967295 (as LBA) or FF:FF:FF Last possible Lead-Out address is 4294967295 (as LBA) or FF:FF:FF Disc is defined for restricted use Session information: First complete session number: 1 Last complete session number: 1 First track number in last complete session: 1 Track starts at LBA 512, or MSF 02:00:00 Q subchannel stores current position Stereo audio track with no pre-emphasis Digital copy of track is prohibited Raw TOC: First complete session number: 1 Last complete session number: 1 Session 1 First track number: 1 (Stereo audio track with no pre-emphasis) Disc type: 0 Last track number: 10 (Stereo audio track with no pre-emphasis) Lead-out start position: 35:54:15 Lead-out is audio type Audio track 1 starts at: 00:02:00 (Stereo audio track with no pre-emphasis) Audio track 2 starts at: 03:43:05 (Stereo audio track with no pre-emphasis) Audio track 3 starts at: 06:40:36 (Stereo audio track with no pre-emphasis) Audio track 4 starts at: 09:59:25 (Stereo audio track with no pre-emphasis) Audio track 5 starts at: 13:38:64 (Stereo audio track with no pre-emphasis) Audio track 6 starts at: 17:29:30 (Stereo audio track with no pre-emphasis) Audio track 7 starts at: 21:13:00 (Stereo audio track with no pre-emphasis) Audio track 8 starts at: 24:38:37 (Stereo audio track with no pre-emphasis) Audio track 9 starts at: 27:57:04 (Stereo audio track with no pre-emphasis) Audio track 10 starts at: 31:31:50 (Stereo audio track with no pre-emphasis) MCN: 0602557480726 Track's 1 ISRC: FIUM71700068 Track's 2 ISRC: FIUM71601324 Track's 3 ISRC: FIUM71700070 Track's 4 ISRC: FIUM71700069 Track's 5 ISRC: FIUM71700071 Track's 6 ISRC: FIUM71601032 Track's 7 ISRC: FIUM71700072 Track's 8 ISRC: FIUM71700055 Track's 9 ISRC: FIUM71700073 Track's 10 ISRC: FIUM71700074 Media Serial Number: Media identified as CDDA Track calculations: Track 1 starts at LBA 0, ends at LBA 16579, has a pregap of 0 sectors and is of type Audio Track 2 starts at LBA 16580, ends at LBA 29885, has a pregap of 0 sectors and is of type Audio Track 3 starts at LBA 29886, ends at LBA 44799, has a pregap of 0 sectors and is of type Audio Track 4 starts at LBA 44800, ends at LBA 61263, has a pregap of 0 sectors and is of type Audio Track 5 starts at LBA 61264, ends at LBA 78554, has a pregap of 0 sectors and is of type Audio Track 6 starts at LBA 78555, ends at LBA 95324, has a pregap of 0 sectors and is of type Audio Track 7 starts at LBA 95325, ends at LBA 110736, has a pregap of 0 sectors and is of type Audio Track 8 starts at LBA 110737, ends at LBA 125628, has a pregap of 0 sectors and is of type Audio Track 9 starts at LBA 125629, ends at LBA 141724, has a pregap of 0 sectors and is of type Audio Track 10 starts at LBA 141725, ends at LBA 161414, has a pregap of 0 sectors and is of type Audio Offsets: Drive reading offset not found in database. Disc offset cannot be calculated. ``` </details> <details> <summary><code>aaru media dump -O compress=false --eject --fix-offset --subchannel none /dev/sr0 cd.aaru</code></summary> ``` aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified Copyright © 2011-2021 Natalia Portillo Output image format: Aaru Format. Device not in database, please create a device report and attach it to a Github issue. Reading full TOC Building track map... Checking if drive supports PQ subchannel reading... Checking if drive supports full raw subchannel reading... Full raw subchannel reading supported... Drive returns subchannel in BCD... Calculating pregaps, can take some time... Reading ATIP Reading Disc Information Reading PMA Reading Session Information Reading CD-Text from Lead-In Solving lead-outs... Detecting disc type... WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect! Reading 64 sectors at a time. Device reports 161415 blocks (395143920 bytes). Device can read 64 blocks at a time. Device reports 2448 bytes per logical block. SCSI device type: MultiMediaDevice. Media identified as CDDA. Setting flags for track 1... Setting flags for track 2... Setting flags for track 3... Setting flags for track 4... Setting flags for track 5... Setting flags for track 6... Setting flags for track 7... Setting flags for track 8... Setting flags for track 9... Setting flags for track 10... Drive reading offset not found in database. Disc offset cannot be calculated. Dump may not be correct. Setting speed to MAX for data reading. Setting speed to 8x for audio reading. Setting index 1 for track 1 to LBA 0. Found new MCN 0602557480726. Found new ISRC FIUM71700068 for track 1. Setting index 1 for track 2 to LBA 16580. Found new ISRC FIUM71601324 for track 2. Setting index 1 for track 3 to LBA 29886. Found new ISRC FIUM71700070 for track 3. Setting index 1 for track 4 to LBA 44800. Found new ISRC FIUM71700069 for track 4. Setting index 1 for track 5 to LBA 61264. Found new ISRC FIUM71700071 for track 5. Setting index 1 for track 6 to LBA 78555. Found new ISRC FIUM71601032 for track 6. Setting index 1 for track 7 to LBA 95325. Found new ISRC FIUM71700072 for track 7. Setting index 1 for track 8 to LBA 110737. Found new ISRC FIUM71700055 for track 8. Setting index 1 for track 9 to LBA 125629. Found new ISRC FIUM71700073 for track 9. Setting index 1 for track 10 to LBA 141725. Found new ISRC FIUM71700074 for track 10. Reading sector 161373 of 161415 (1.426 MiB/sec.) Dump finished in 346.7412661 seconds. Average dump speed 1130.491 KiB/sec. Average write speed 70178.692 KiB/sec. Setting ISRC for track 1 to FIUM71700068 Setting ISRC for track 2 to FIUM71601324 Setting ISRC for track 3 to FIUM71700070 Setting ISRC for track 4 to FIUM71700069 Setting ISRC for track 5 to FIUM71700071 Setting ISRC for track 6 to FIUM71601032 Setting ISRC for track 7 to FIUM71700072 Setting ISRC for track 8 to FIUM71700055 Setting ISRC for track 9 to FIUM71700073 Setting ISRC for track 10 to FIUM71700074 Setting disc Media Catalogue Number to 0602557480726 Closing output file. Closed in 0.7300662 seconds. Hashing image file... Hashing image file byte 379584512 of 379693566 Hashing media tags... Checking filesystems Hashing tracks... Hashing sector 16384 of 16580 Hashing sector 12800 of 13306 Hashing sector 14848 of 14914 Hashing sector 16384 of 16464 Hashing sector 16896 of 17291 Hashing sector 16384 of 16770 Hashing sector 15360 of 15412 Hashing sector 14848 of 14892 Hashing sector 15872 of 16096 Hashing sector 19456 of 19690 Writing metadata sidecar Took a total of 375.328 seconds (341.343 processing commands, 21.513 checksumming, 5.499 writing, 0.730 closing). Average speed: 1.104 MiB/sec. Fastest speed burst: 1.430 MiB/sec. Slowest speed burst: 0.115 MiB/sec. 0 sectors could not be read. 0 subchannels could not be read. ``` </details> <details> <summary><code>aaru image info cd.aaru</code></summary> ``` aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified Copyright © 2011-2021 Natalia Portillo Image format identified by Aaru Format (49360069-1784-4a2f-b723-0c844d610b0a). Image information: Format: Aaru version 1.0 Was created with Aaru version 5.2 Image without headers is 379690706 bytes long Contains a media of 161415 sectors with a maximum sector size of 2352 bytes (if all sectors are of the same size this would be 379648080 bytes) Created on 02/01/2021 06:51:55 Last modified on 02/01/2021 06:57:43 Contains a media of type CDDA and XML type OpticalDisc Has partitions Has sessions Contains 2 readable media tags: CD_FullTOC CD_MCN Contains 2 readable sector tags: CdTrackIsrc CdTrackFlags CompactDisc Table of Contents contained in image: First complete session number: 1 Last complete session number: 1 Session 1 First track number: 1 (Stereo audio track with no pre-emphasis) Disc type: 0 Last track number: 10 (Stereo audio track with no pre-emphasis) Lead-out start position: 35:54:15 Lead-out is audio type Audio track 1 starts at: 00:02:00 (Stereo audio track with no pre-emphasis) Audio track 2 starts at: 03:43:05 (Stereo audio track with no pre-emphasis) Audio track 3 starts at: 06:40:36 (Stereo audio track with no pre-emphasis) Audio track 4 starts at: 09:59:25 (Stereo audio track with no pre-emphasis) Audio track 5 starts at: 13:38:64 (Stereo audio track with no pre-emphasis) Audio track 6 starts at: 17:29:30 (Stereo audio track with no pre-emphasis) Audio track 7 starts at: 21:13:00 (Stereo audio track with no pre-emphasis) Audio track 8 starts at: 24:38:37 (Stereo audio track with no pre-emphasis) Audio track 9 starts at: 27:57:04 (Stereo audio track with no pre-emphasis) Audio track 10 starts at: 31:31:50 (Stereo audio track with no pre-emphasis) CompactDisc Media Catalogue Number contained in image: 0602557480726 Image sessions: Session First track Last track Start End ========================================================= 1 1 10 0 161414 Image tracks: Track Type Bps Raw bps Subchannel Pregap Start End ================================================================================= 1 Audio 2352 2352 None 150 0 16579 2 Audio 2352 2352 None 0 16580 29885 3 Audio 2352 2352 None 0 29886 44799 4 Audio 2352 2352 None 0 44800 61263 5 Audio 2352 2352 None 0 61264 78554 6 Audio 2352 2352 None 0 78555 95324 7 Audio 2352 2352 None 0 95325 110736 8 Audio 2352 2352 None 0 110737 125628 9 Audio 2352 2352 None 0 125629 141724 10 Audio 2352 2352 None 0 141725 161414 Track indexes: Track Index Start ======================= 1 0 -150 1 1 0 2 1 16580 3 1 29886 4 1 44800 5 1 61264 6 1 78555 7 1 95325 8 1 110737 9 1 125629 10 1 141725 Dump hardware information: Manufacturer Model Serial Software Version Operating system Start End ======================================================================================================= hp DVD-RAM GH40L Aaru 5.2.99.3380 Linux 0 161414 ``` </details> <details> <summary><code>aaru image convert -f cd.aaru cd2.cue</code></summary> ``` aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified Copyright © 2011-2021 Natalia Portillo Input image format identified by Aaru Format. Output image format: CDRWin cuesheet. Converting media tag CD_MCN 161415 sectors to convert Converting sectors 161415 to 161415 in track 10 (100.00 % done) Converting tag CdTrackIsrc in track 10 (100.00 % done). Converting tag CdTrackFlags in track 10 (100.00 % done). Written dump hardware list to output image. Closing output image. Conversion done ``` </details> <details> <summary><code>cat cd2.cue</code></summary> ``` REM ORIGINAL MEDIA-TYPE: CD REM METADATA AARU MEDIA-TYPE: CDDA REM Ripping Tool: Aaru REM Ripping Tool Version: 5.2.99.3380 REM METADATA DUMP EXTENT: Aaru | 5.2.99.3380 | Linux | hp | DVD-RAM GH40L | RB12 | | 0:161414 CATALOG 0602557480726 FILE "cd2.bin" BINARY REM SESSION 1 TRACK 01 AUDIO ISRC FIUM71700068 INDEX 00 00:00:00 INDEX 01 00:02:00 TRACK 02 AUDIO ISRC FIUM71601324 INDEX 01 03:41:05 TRACK 03 AUDIO ISRC FIUM71700070 INDEX 01 06:38:36 TRACK 04 AUDIO ISRC FIUM71700069 INDEX 01 09:57:25 TRACK 05 AUDIO ISRC FIUM71700071 INDEX 01 13:36:64 TRACK 06 AUDIO ISRC FIUM71601032 INDEX 01 17:27:30 TRACK 07 AUDIO ISRC FIUM71700072 INDEX 01 21:11:00 TRACK 08 AUDIO ISRC FIUM71700055 INDEX 01 24:36:37 TRACK 09 AUDIO ISRC FIUM71700073 INDEX 01 27:55:04 TRACK 10 AUDIO ISRC FIUM71700074 INDEX 01 31:29:50 ``` </details> However it's clear the the audio is starting earlier than 00:02:00 by opening the raw file in audacity. ![audacity](https://user-images.githubusercontent.com/273509/106425684-1be6c280-6419-11eb-90f1-d22a51969257.png) If I'm using aaru wrong, that's fine, I haven't made a lot of progress, but I'd like to learn that now than later. Is this related to my drive not being in the drive database? --- **Edit**: I get the same issue when I providing the `--first-pregap` option to `aaru media dump`.
claunia added the bug label 2026-01-29 15:25:24 +00:00
Author
Owner

@claunia commented on GitHub (Feb 1, 2021):

Please paste the output of aaru image info cd.aaruf and the output of cat cd2.cue.

Also please indicate the manufacturer, model, and firmware revision, of the drive used to dump.

@claunia commented on GitHub (Feb 1, 2021): Please paste the output of `aaru image info cd.aaruf` and the output of `cat cd2.cue`. Also please indicate the manufacturer, model, and firmware revision, of the drive used to dump.
Author
Owner

@terinjokes commented on GitHub (Feb 1, 2021):

The outputs of those two commands are already included above. As noted in aaru image info, this drive is an HP DVD-RAM GH40L with firmware RB12. I've included the output of aaru device info below.

aaru device info /dev/sr0
aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified
Copyright © 2011-2021 Natalia Portillo

USB device
USB descriptor is 62 bytes
USB Vendor ID: 174C
USB Product ID: 55AA
USB Manufacturer: asmedia
USB Product: ASMT1153e
USB Serial number: [redacted]

Error 1 querying ATA PACKET IDENTIFY
Device vendor: hp
Device name: DVD-RAM GH40L
Device release level: RB12
Device is connected and supported.
CD-ROM/DVD/etc device
Device does not claim to comply with any SCSI ANSI standard
Device does not claim to comply with any SCSI ECMA standard
Device does not claim to comply with any SCSI ISO/IEC standard
Device is removable
Device supports setting Normal ACA
Device supports LUN hierarchical addressing
Device does not support asymmetrical access
Device supports only ST clocking
HP vendor-specific information:

SCSI Mode Sense Header:
	Medium is No disc inserted, tray closed or caddy inserted

SCSI Read error recovery page for MultiMedia Devices:
	Drive will repeat read operations 19 times
Unknown recovery parameter 0x80
	Drive will repeat write operations 3 times

SCSI Flexible disk page:
	Transfer rate: 24581 kbit/s
	8 heads
	0 cylinders
	16 sectors per track
	0 bytes per sector
	Drive steps in 15000 μs
	Target shall wait 0 seconds before attempting to access the medium after motor on is asserted
	Target shall wait 0 seconds before releasing the motor on signal after becoming idle
	Drive needs to do 1 step pulses per cylinder
	Pin 34 is unconnected
	Pin 4 is unconnected
	Pin 2 is unconnected
	Pin 1 is unconnected

SCSI Caching mode page:
	Parameters can be saved
	Write-cache is enabled
	Drive does not distinguish between cached read data
	Drive does not distinguish between cached write data
	Pre-fetch will be done for READ commands of 2048 blocks or less
	A maximum of 128 blocks will be pre-fetched
	A maximum of 128 blocks will be pre-fetched even if it is commanded to pre-fetch more

SCSI CD-ROM parameters page:
	Parameters can be saved
	Drive will remain in track hold state 2 minutes after a seek or read
	Each minute has 60 seconds
	Each second has 75 frames

SCSI CD-ROM audio control parameters page:
	Drive will return from playback command immediately
	Output port 0 has channels 0 at maximum volume
	Output port 1 has channels 1 at maximum volume

Found unknown mode page 18h
SCSI Power condition page:
	Parameters can be saved
	Standby timer Z is set to 120000 ms
	Idle timer A is set to 60000 ms

SCSI Timer & Protect page:
	Parameters can be saved
	Drive will remain in same status 1 second after a seek, read or write operation


Found unknown mode page 20h
SCSI CD-ROM capabilities page:
	Drive can play audio
	Drive can read sectors in Mode 2 Form 1 format
	Drive can read sectors in Mode 2 Form 2 format
	Drive supports multi-session discs and/or Photo-CD
	Drive can read digital audio
	Drive can continue from streaming loss
	Drive supports C2 pointers
	Drive can read Media Catalogue Number
	Drive can read ISRC
	Drive uses a tray
	Drive can lock media
	Drive is not locked, media can be ejected and inserted
	Drive can eject media
	Each channel can be muted independently
	Each channel's volume can be controlled independently
	Drive supports 256 volume levels
	Drive has 2048 Kbyte of buffer
	Drive's maximum reading speed is 7056 Kbyte/sec.
	Drive's current reading speed is 7056 Kbyte/sec.
	Drive can read and write CD-R
	Drive supports reading CD-R packet media
	Drive can read and write CD-RW
	Drive can read DVD-ROM
	Drive can read and write DVD-R
	Drive can read and write DVD-RAM
	Drive's current writing speed is 7057 Kbyte/sec. in CLV mode
	Drive supports writing at 7057 Kbyte/sec. in CLV mode
	Drive supports writing at 7056 Kbyte/sec. in CLV mode
	Drive supports writing at 5646 Kbyte/sec. in CLV mode
	Drive supports writing at 5645 Kbyte/sec. in CLV mode
	Drive supports writing at 4235 Kbyte/sec. in CLV mode
	Drive supports writing at 4234 Kbyte/sec. in CLV mode
	Drive supports writing at 2822 Kbyte/sec. in CLV mode
	Drive supports writing at 1411 Kbyte/sec. in CLV mode
	Drive supports writing at 706 Kbyte/sec. in CLV mode
	Drive supports test writing
	Drive can read both sides of a disc
	Drive an read raw R-W subchannel from the Lead-In
	Drive supports DVD CSS and/or DVD CPPM
	Drive supports buffer under-run free recording

Found unknown mode page 31h
Found unknown mode page 32h
SCSI MMC GET CONFIGURATION Features:
MMC Supported Profiles:
	Drive supports DVD-RAM
	Drive supports DVD-R
	Drive supports sequentially recorded DVD-R DL
	Drive supports layer jump recorded DVD-R DL
	Drive supports sequentially recorded DVD-RW
	Drive supports restricted overwrite DVD-RW
	Drive supports DVD+RW
	Drive supports DVD+R
	Drive supports DVD+R DL
	Drive supports DVD-ROM
	Drive supports CD-R
	Drive supports CD-RW
	Drive supports CD-ROM
	Drive supports rewritable and removable media

MMC Core Feature:
	Drive uses ATAPI interface
	Drive supports Device Busy events

MMC Morphing:
	Drive supports only polling GET EVENT STATUS NOTIFICATION
	Drive supports operational change request / notification class events

MMC Removable Medium:
	Drive uses a tray
	Drive can lock media
	Drive can eject media

MMC Write Protect:
	Drive supports set/release of PWP status

MMC Random Readable:
	Drive shall report Read/Write Error Recovery mode page
	2048 bytes per logical block

Drive claims capability to read all CD formats according to OSTA Multi-Read Specification

MMC CD Read:
	Drive supports C2 Error Pointers
	Drive can return CD-Text from Lead-In

MMC DVD Read:
	Drive can read DVD media

MMC Random Writable::
	Drive shall report Read/Write Error Recovery mode page
	2048 bytes per logical block
	16 logical blocks per media writable unit

MMC Incremental Streaming Writable:
	Drive is capable of zero loss linking

MMC Formattable:
	Drive can format media into logical blocks

MMC Hardware Defect Management:
	Drive shall be able to provide a defect-free contiguous address space
	Drive can return Spare Area Information

Drive shall have the ability to overwrite logical blocks only in fixed sets at a time

Drive can read and write DVD+RW
	Drive supports both forms of background format stopping

Drive can read and write DVD+R

MMC Rigid Restricted Overwrite:
	Drive supports the BLANK command
	Drive supports writing on an intermediate state session and quick formatting
	Drive can read Defect Status data recorded on the medium

Drive can write CDs in Track at Once Mode:
	Drive can overwrite a TAO track with another in CD-RWs
	Drive can do a test writing
	Drive supports zero loss linking
	Drive supports data block types: 0 8 9 10 11 12 13

Drive can write CDs in Session at Once and in Raw Modes:
	Drive can write user provided data in the R-W subchannels
	Drive can write CD-RWs
	Drive can do a test writing
	Drive supports zero loss linking
	Drive supports a maximum of 3072 bytes in a single cue sheet

Drive supports writing DVD-R, DVD-RW and DVD-R DL
	Drive can do a test writing
	Drive supports zero loss linking

MMC Layer Jump Recording:

Drive can write CD-RW
	Drive supports CD-RW subtypes 0 1 2 3

Drive can read and write DVD+R DL

Drive is able to perform host and drive directed power management

Drive supports S.M.A.R.T.
	Drive supports the Informational Exceptions Control mode page 1Ch

Drive has an analogue audio output
	Drive supports the SCAN command
	Drive is able to mute channels separately
	Drive supports separate volume per channel
	Drive has 257 volume levels

Drive supports Microcode Upgrade
Drive supports validating the 5-bit Mode of the READ BUFFER and WRITE BUFFER commands

Drive supports Timeout & Protect mode page 1Dh

Drive supports DVD CSS/CPPM version 1

MMC Real Time Streaming:
	Drive supports the block bit in the READ BUFFER CAPACITY command
	Drive supports the SET CD SPEED command
	Drive supports the Write Speed Performance Descriptor Blocks in the MMC mode page 2Ah
	Drive supports the Write Speed data of GET PERFORMANCE and the WRC field of SET STREAMING
	Drive supports stream recording

Drive serial number: [redacted]

Drive supports DCB 46444300h
Drive supports DCB 53444300h
Drive supports DCB 544F4300h

Drive supports DVD CPRM version 1

Drive firmware is dated 08/30/2009 12:34:56

Found unknown feature code FF33h
No drive region setting.
Drive has 4 vendor resets available.
Drive has 5 user controlled changes available.
Drive has no region set.
The Logical Unit shall adhere to the specification and all requirements of the CSS license agreement concerning RPC.


Device not in database, please create a device report and attach it to a Github issue.
CD reading offset not found in database.

hp_DVD-RAM GH40L_RB12.json.gz

@terinjokes commented on GitHub (Feb 1, 2021): The outputs of those two commands are already included above. As noted in `aaru image info`, this drive is an HP DVD-RAM GH40L with firmware RB12. I've included the output of `aaru device info` below. <details> <summary><code>aaru device info /dev/sr0</code></summary> ``` aaru 5.2.99.3380-alpha+16e043ce built by telegraph in Release, modified Copyright © 2011-2021 Natalia Portillo USB device USB descriptor is 62 bytes USB Vendor ID: 174C USB Product ID: 55AA USB Manufacturer: asmedia USB Product: ASMT1153e USB Serial number: [redacted] Error 1 querying ATA PACKET IDENTIFY Device vendor: hp Device name: DVD-RAM GH40L Device release level: RB12 Device is connected and supported. CD-ROM/DVD/etc device Device does not claim to comply with any SCSI ANSI standard Device does not claim to comply with any SCSI ECMA standard Device does not claim to comply with any SCSI ISO/IEC standard Device is removable Device supports setting Normal ACA Device supports LUN hierarchical addressing Device does not support asymmetrical access Device supports only ST clocking HP vendor-specific information: SCSI Mode Sense Header: Medium is No disc inserted, tray closed or caddy inserted SCSI Read error recovery page for MultiMedia Devices: Drive will repeat read operations 19 times Unknown recovery parameter 0x80 Drive will repeat write operations 3 times SCSI Flexible disk page: Transfer rate: 24581 kbit/s 8 heads 0 cylinders 16 sectors per track 0 bytes per sector Drive steps in 15000 μs Target shall wait 0 seconds before attempting to access the medium after motor on is asserted Target shall wait 0 seconds before releasing the motor on signal after becoming idle Drive needs to do 1 step pulses per cylinder Pin 34 is unconnected Pin 4 is unconnected Pin 2 is unconnected Pin 1 is unconnected SCSI Caching mode page: Parameters can be saved Write-cache is enabled Drive does not distinguish between cached read data Drive does not distinguish between cached write data Pre-fetch will be done for READ commands of 2048 blocks or less A maximum of 128 blocks will be pre-fetched A maximum of 128 blocks will be pre-fetched even if it is commanded to pre-fetch more SCSI CD-ROM parameters page: Parameters can be saved Drive will remain in track hold state 2 minutes after a seek or read Each minute has 60 seconds Each second has 75 frames SCSI CD-ROM audio control parameters page: Drive will return from playback command immediately Output port 0 has channels 0 at maximum volume Output port 1 has channels 1 at maximum volume Found unknown mode page 18h SCSI Power condition page: Parameters can be saved Standby timer Z is set to 120000 ms Idle timer A is set to 60000 ms SCSI Timer & Protect page: Parameters can be saved Drive will remain in same status 1 second after a seek, read or write operation Found unknown mode page 20h SCSI CD-ROM capabilities page: Drive can play audio Drive can read sectors in Mode 2 Form 1 format Drive can read sectors in Mode 2 Form 2 format Drive supports multi-session discs and/or Photo-CD Drive can read digital audio Drive can continue from streaming loss Drive supports C2 pointers Drive can read Media Catalogue Number Drive can read ISRC Drive uses a tray Drive can lock media Drive is not locked, media can be ejected and inserted Drive can eject media Each channel can be muted independently Each channel's volume can be controlled independently Drive supports 256 volume levels Drive has 2048 Kbyte of buffer Drive's maximum reading speed is 7056 Kbyte/sec. Drive's current reading speed is 7056 Kbyte/sec. Drive can read and write CD-R Drive supports reading CD-R packet media Drive can read and write CD-RW Drive can read DVD-ROM Drive can read and write DVD-R Drive can read and write DVD-RAM Drive's current writing speed is 7057 Kbyte/sec. in CLV mode Drive supports writing at 7057 Kbyte/sec. in CLV mode Drive supports writing at 7056 Kbyte/sec. in CLV mode Drive supports writing at 5646 Kbyte/sec. in CLV mode Drive supports writing at 5645 Kbyte/sec. in CLV mode Drive supports writing at 4235 Kbyte/sec. in CLV mode Drive supports writing at 4234 Kbyte/sec. in CLV mode Drive supports writing at 2822 Kbyte/sec. in CLV mode Drive supports writing at 1411 Kbyte/sec. in CLV mode Drive supports writing at 706 Kbyte/sec. in CLV mode Drive supports test writing Drive can read both sides of a disc Drive an read raw R-W subchannel from the Lead-In Drive supports DVD CSS and/or DVD CPPM Drive supports buffer under-run free recording Found unknown mode page 31h Found unknown mode page 32h SCSI MMC GET CONFIGURATION Features: MMC Supported Profiles: Drive supports DVD-RAM Drive supports DVD-R Drive supports sequentially recorded DVD-R DL Drive supports layer jump recorded DVD-R DL Drive supports sequentially recorded DVD-RW Drive supports restricted overwrite DVD-RW Drive supports DVD+RW Drive supports DVD+R Drive supports DVD+R DL Drive supports DVD-ROM Drive supports CD-R Drive supports CD-RW Drive supports CD-ROM Drive supports rewritable and removable media MMC Core Feature: Drive uses ATAPI interface Drive supports Device Busy events MMC Morphing: Drive supports only polling GET EVENT STATUS NOTIFICATION Drive supports operational change request / notification class events MMC Removable Medium: Drive uses a tray Drive can lock media Drive can eject media MMC Write Protect: Drive supports set/release of PWP status MMC Random Readable: Drive shall report Read/Write Error Recovery mode page 2048 bytes per logical block Drive claims capability to read all CD formats according to OSTA Multi-Read Specification MMC CD Read: Drive supports C2 Error Pointers Drive can return CD-Text from Lead-In MMC DVD Read: Drive can read DVD media MMC Random Writable:: Drive shall report Read/Write Error Recovery mode page 2048 bytes per logical block 16 logical blocks per media writable unit MMC Incremental Streaming Writable: Drive is capable of zero loss linking MMC Formattable: Drive can format media into logical blocks MMC Hardware Defect Management: Drive shall be able to provide a defect-free contiguous address space Drive can return Spare Area Information Drive shall have the ability to overwrite logical blocks only in fixed sets at a time Drive can read and write DVD+RW Drive supports both forms of background format stopping Drive can read and write DVD+R MMC Rigid Restricted Overwrite: Drive supports the BLANK command Drive supports writing on an intermediate state session and quick formatting Drive can read Defect Status data recorded on the medium Drive can write CDs in Track at Once Mode: Drive can overwrite a TAO track with another in CD-RWs Drive can do a test writing Drive supports zero loss linking Drive supports data block types: 0 8 9 10 11 12 13 Drive can write CDs in Session at Once and in Raw Modes: Drive can write user provided data in the R-W subchannels Drive can write CD-RWs Drive can do a test writing Drive supports zero loss linking Drive supports a maximum of 3072 bytes in a single cue sheet Drive supports writing DVD-R, DVD-RW and DVD-R DL Drive can do a test writing Drive supports zero loss linking MMC Layer Jump Recording: Drive can write CD-RW Drive supports CD-RW subtypes 0 1 2 3 Drive can read and write DVD+R DL Drive is able to perform host and drive directed power management Drive supports S.M.A.R.T. Drive supports the Informational Exceptions Control mode page 1Ch Drive has an analogue audio output Drive supports the SCAN command Drive is able to mute channels separately Drive supports separate volume per channel Drive has 257 volume levels Drive supports Microcode Upgrade Drive supports validating the 5-bit Mode of the READ BUFFER and WRITE BUFFER commands Drive supports Timeout & Protect mode page 1Dh Drive supports DVD CSS/CPPM version 1 MMC Real Time Streaming: Drive supports the block bit in the READ BUFFER CAPACITY command Drive supports the SET CD SPEED command Drive supports the Write Speed Performance Descriptor Blocks in the MMC mode page 2Ah Drive supports the Write Speed data of GET PERFORMANCE and the WRC field of SET STREAMING Drive supports stream recording Drive serial number: [redacted] Drive supports DCB 46444300h Drive supports DCB 53444300h Drive supports DCB 544F4300h Drive supports DVD CPRM version 1 Drive firmware is dated 08/30/2009 12:34:56 Found unknown feature code FF33h No drive region setting. Drive has 4 vendor resets available. Drive has 5 user controlled changes available. Drive has no region set. The Logical Unit shall adhere to the specification and all requirements of the CSS license agreement concerning RPC. Device not in database, please create a device report and attach it to a Github issue. CD reading offset not found in database. ``` </details> [hp_DVD-RAM GH40L_RB12.json.gz](https://github.com/aaru-dps/Aaru/files/5905874/hp_DVD-RAM.GH40L_RB12.json.gz)
Author
Owner

@claunia commented on GitHub (Feb 1, 2021):

Ok I'll take a look

@claunia commented on GitHub (Feb 1, 2021): Ok I'll take a look
Author
Owner

@terinjokes commented on GitHub (Feb 1, 2021):

Thanks! I've been reading the code, but not familiar with it yet to debug and implement a patch myself. If I can answer any questions, let me know.

@terinjokes commented on GitHub (Feb 1, 2021): Thanks! I've been reading the code, but not familiar with it yet to debug and implement a patch myself. If I can answer any questions, let me know.
Author
Owner

@claunia commented on GitHub (Feb 1, 2021):

The problem is that in 472a1d94d8/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs (L1047) it is not finding your drive in the database.

I have checked and it is in the server's database, you can check in your local database to see if it is there.

@claunia commented on GitHub (Feb 1, 2021): The problem is that in https://github.com/aaru-dps/Aaru/blob/472a1d94d87e94b566fb2b4f6eff72311f1e1e14/Aaru.Core/Devices/Dumping/CompactDisc/Dump.cs#L1047 it is not finding your drive in the database. I have checked and it is in the server's database, you can check in your local database to see if it is there.
Author
Owner

@terinjokes commented on GitHub (Feb 1, 2021):

I ran aaru database update --clear-all and I see that section now reports a drive offset:

Drive reading offset is 2668 bytes (667 samples).
Disc write offset is unknown, dump may not be correct.
Setting speed to MAX for data reading.
Setting speed to 8x for audio reading.
Setting index 1 for track 1 to LBA 0.

However the Cue sheet still reports 00:02:00 as the beginning of track 1, and the audio still starts before this point in the BIN file when viewed in Audacity.

@terinjokes commented on GitHub (Feb 1, 2021): I ran `aaru database update --clear-all` and I see that section now reports a drive offset: ``` Drive reading offset is 2668 bytes (667 samples). Disc write offset is unknown, dump may not be correct. Setting speed to MAX for data reading. Setting speed to 8x for audio reading. Setting index 1 for track 1 to LBA 0. ``` However the Cue sheet still reports `00:02:00` as the beginning of track 1, and the audio still starts before this point in the BIN file when viewed in Audacity.
Author
Owner

@terinjokes commented on GitHub (Feb 1, 2021):

16e043cedd/Aaru.Core/Media/Info/CompactDisc.cs (L150-L152)

Looks like my device reports false here? "CanReadCdScrambled": false,

@terinjokes commented on GitHub (Feb 1, 2021): https://github.com/aaru-dps/Aaru/blob/16e043cedd0dc9cb53f3e974eece520aaee25964/Aaru.Core/Media/Info/CompactDisc.cs#L150-L152 Looks like my device reports false here? `"CanReadCdScrambled": false,`
Author
Owner

@claunia commented on GitHub (Feb 1, 2021):

16e043cedd/Aaru.Core/Media/Info/CompactDisc.cs (L150-L152)

Looks like my device reports false here? "CanReadCdScrambled": false,

nothing to do with the problem.

I ran aaru database update --clear-all and I see that section now reports a drive offset:

Drive reading offset is 2668 bytes (667 samples).
Disc write offset is unknown, dump may not be correct.
Setting speed to MAX for data reading.
Setting speed to 8x for audio reading.
Setting index 1 for track 1 to LBA 0.

However the Cue sheet still reports 00:02:00 as the beginning of track 1, and the audio still starts before this point in the BIN file when viewed in Audacity.

Seems there is a problem with cue generation.

The earliest the index 1 of track 1 can start is 00:02:00 (LBA 0), however CDRWin Cuesheet considers 00:00:00 as the start of the file (this is LBA 0).

So what really, in the disc is:

INDEX 00 00:00:00
INDEX 01 00:02:00

in the cuesheet should be:

INDEX 01 00:00:00

The bug is therefore in this method:
16e043cedd/Aaru.Images/CDRWin/Write.cs (L410)

@claunia commented on GitHub (Feb 1, 2021): > https://github.com/aaru-dps/Aaru/blob/16e043cedd0dc9cb53f3e974eece520aaee25964/Aaru.Core/Media/Info/CompactDisc.cs#L150-L152 > > Looks like my device reports false here? `"CanReadCdScrambled": false,` nothing to do with the problem. > I ran `aaru database update --clear-all` and I see that section now reports a drive offset: > > ``` > Drive reading offset is 2668 bytes (667 samples). > Disc write offset is unknown, dump may not be correct. > Setting speed to MAX for data reading. > Setting speed to 8x for audio reading. > Setting index 1 for track 1 to LBA 0. > ``` > > However the Cue sheet still reports `00:02:00` as the beginning of track 1, and the audio still starts before this point in the BIN file when viewed in Audacity. Seems there is a problem with cue generation. The earliest the index 1 of track 1 can start is 00:02:00 (LBA 0), however CDRWin Cuesheet considers 00:00:00 as the start of the file (this is LBA 0). So what really, in the disc is: ``` INDEX 00 00:00:00 INDEX 01 00:02:00 ``` in the cuesheet should be: ``` INDEX 01 00:00:00 ``` The bug is therefore in this method: https://github.com/aaru-dps/Aaru/blob/16e043cedd0dc9cb53f3e974eece520aaee25964/Aaru.Images/CDRWin/Write.cs#L410
Author
Owner

@terinjokes commented on GitHub (Feb 2, 2021):

The INDEX 00 gets added here, when the track has a pregap.

16e043cedd/Aaru.Images/CDRWin/Write.cs (L520-L529)

150 frames (as we can see in aaru image info) is 2 seconds (assuming 75 frames/second), which is the area for the TOC. So this seems accurate, however, per a user on the hydrogenaudio forums:

INDEX 00 implies that the pregap is included in the rip. PREGAP implies that it is digital silence and not included in the rip. The result produces the same disc if the pregap is indeed digital silence.

It seems like the correct behavior might be to change this to a PREGAP if aaru doesn't include that audio in the data? Or change the condition to only add the INDEX 00 if the pregap is longer than 150? I'll be hesitant to make such a change without understanding what aaru does for gaps between tracks.

Sorry, if I'm barking up the wrong tree.


For sake of comparison, I also ripped with cdrdao to see what it was doing.

cdrdao read-cd --datafile cdrdao-cd.bin cdrdao-cd.toc
Cdrdao version 1.2.3 - (C) Andreas Mueller <andreas@daneb.de>
/dev/sr0: hp DVD-RAM GH40L	Rev: RB12
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

Reading toc and track data...

Track   Mode    Flags  Start                Length
------------------------------------------------------------
 1      AUDIO   0      00:00:00(     0)     03:41:05( 16580)
 2      AUDIO   0      03:41:05( 16580)     02:57:31( 13306)
 3      AUDIO   0      06:38:36( 29886)     03:18:64( 14914)
 4      AUDIO   0      09:57:25( 44800)     03:39:39( 16464)
 5      AUDIO   0      13:36:64( 61264)     03:50:41( 17291)
 6      AUDIO   0      17:27:30( 78555)     03:43:45( 16770)
 7      AUDIO   0      21:11:00( 95325)     03:25:37( 15412)
 8      AUDIO   0      24:36:37(110737)     03:18:42( 14892)
 9      AUDIO   0      27:55:04(125629)     03:34:46( 16096)
10      AUDIO   0      31:29:50(141725)     04:22:40( 19690)
Leadout AUDIO   0      35:52:15(161415)

PQ sub-channel reading (audio track) is supported, data format is BCD.
Raw P-W sub-channel reading (audio track) is supported.
Copying audio tracks 1-10: start 00:00:00, length 35:52:15 to "cdrdao-cd.bin"...
Track 1...
Found ISRC code.
Track 2...
Found ISRC code.
Track 3...
Found ISRC code.
Track 4...
Found ISRC code.
Track 5...
Found ISRC code.
Track 6...
Found ISRC code.
Track 7...
Found ISRC code.
Track 8...
Found ISRC code.
Track 9...
Found ISRC code.
Track 10...
Found ISRC code.
Found 2630 Q sub-channels with CRC errors.
Found disk catalogue number.
Reading of toc and track data finished successfully.
cat cdrdao-cd.toc
CD_DA

CATALOG "0602557480726"

// Track 1
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700068"
FILE "cdrdao-cd.bin" 0 03:41:05


// Track 2
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71601324"
FILE "cdrdao-cd.bin" 03:41:05 02:57:31


// Track 3
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700070"
FILE "cdrdao-cd.bin" 06:38:36 03:18:64


// Track 4
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700070"
FILE "cdrdao-cd.bin" 09:57:25 03:39:39


// Track 5
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700071"
FILE "cdrdao-cd.bin" 13:36:64 03:50:41


// Track 6
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700071"
FILE "cdrdao-cd.bin" 17:27:30 03:43:45


// Track 7
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700072"
FILE "cdrdao-cd.bin" 21:11:00 03:25:37


// Track 8
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700055"
FILE "cdrdao-cd.bin" 24:36:37 03:18:42


// Track 9
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700073"
FILE "cdrdao-cd.bin" 27:55:04 03:34:46


// Track 10
TRACK AUDIO
NO COPY
NO PRE_EMPHASIS
TWO_CHANNEL_AUDIO
ISRC "FIUM71700074"
FILE "cdrdao-cd.bin" 31:29:50 04:22:40
cat cdrdao-cd.cue
FILE "cdrdao-cd.bin" BINARY
  TRACK 01 AUDIO
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 01 03:41:05
  TRACK 03 AUDIO
    INDEX 01 06:38:36
  TRACK 04 AUDIO
    INDEX 01 09:57:25
  TRACK 05 AUDIO
    INDEX 01 13:36:64
  TRACK 06 AUDIO
    INDEX 01 17:27:30
  TRACK 07 AUDIO
    INDEX 01 21:11:00
  TRACK 08 AUDIO
    INDEX 01 24:36:37
  TRACK 09 AUDIO
    INDEX 01 27:55:04
  TRACK 10 AUDIO
    INDEX 01 31:29:50

audacity

The raw file looks the same however, so I agree the Cue sheet generation is the likely culprit here.

@terinjokes commented on GitHub (Feb 2, 2021): The INDEX 00 gets added here, when the track has a pregap. https://github.com/aaru-dps/Aaru/blob/16e043cedd0dc9cb53f3e974eece520aaee25964/Aaru.Images/CDRWin/Write.cs#L520-L529 150 frames (as we can see in `aaru image info`) is 2 seconds (assuming 75 frames/second), which is the area for the TOC. So this seems accurate, however, per a user on the [hydrogenaudio forums](https://hydrogenaud.io/index.php?topic=98357.msg817275#msg817275): > INDEX 00 implies that the pregap is included in the rip. PREGAP implies that it is digital silence and not included in the rip. The result produces the same disc if the pregap is indeed digital silence. It seems like the correct behavior might be to change this to a PREGAP if aaru doesn't include that audio in the data? Or change the condition to only add the INDEX 00 if the pregap is longer than 150? I'll be hesitant to make such a change without understanding what aaru does for gaps between tracks. Sorry, if I'm barking up the wrong tree. --- For sake of comparison, I also ripped with `cdrdao` to see what it was doing. <details> <summary><code>cdrdao read-cd --datafile cdrdao-cd.bin cdrdao-cd.toc</code></summary> ``` Cdrdao version 1.2.3 - (C) Andreas Mueller <andreas@daneb.de> /dev/sr0: hp DVD-RAM GH40L Rev: RB12 Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000) Reading toc and track data... Track Mode Flags Start Length ------------------------------------------------------------ 1 AUDIO 0 00:00:00( 0) 03:41:05( 16580) 2 AUDIO 0 03:41:05( 16580) 02:57:31( 13306) 3 AUDIO 0 06:38:36( 29886) 03:18:64( 14914) 4 AUDIO 0 09:57:25( 44800) 03:39:39( 16464) 5 AUDIO 0 13:36:64( 61264) 03:50:41( 17291) 6 AUDIO 0 17:27:30( 78555) 03:43:45( 16770) 7 AUDIO 0 21:11:00( 95325) 03:25:37( 15412) 8 AUDIO 0 24:36:37(110737) 03:18:42( 14892) 9 AUDIO 0 27:55:04(125629) 03:34:46( 16096) 10 AUDIO 0 31:29:50(141725) 04:22:40( 19690) Leadout AUDIO 0 35:52:15(161415) PQ sub-channel reading (audio track) is supported, data format is BCD. Raw P-W sub-channel reading (audio track) is supported. Copying audio tracks 1-10: start 00:00:00, length 35:52:15 to "cdrdao-cd.bin"... Track 1... Found ISRC code. Track 2... Found ISRC code. Track 3... Found ISRC code. Track 4... Found ISRC code. Track 5... Found ISRC code. Track 6... Found ISRC code. Track 7... Found ISRC code. Track 8... Found ISRC code. Track 9... Found ISRC code. Track 10... Found ISRC code. Found 2630 Q sub-channels with CRC errors. Found disk catalogue number. Reading of toc and track data finished successfully. ``` </details> <details> <summary><code>cat cdrdao-cd.toc</code></summary> ``` CD_DA CATALOG "0602557480726" // Track 1 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700068" FILE "cdrdao-cd.bin" 0 03:41:05 // Track 2 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71601324" FILE "cdrdao-cd.bin" 03:41:05 02:57:31 // Track 3 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700070" FILE "cdrdao-cd.bin" 06:38:36 03:18:64 // Track 4 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700070" FILE "cdrdao-cd.bin" 09:57:25 03:39:39 // Track 5 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700071" FILE "cdrdao-cd.bin" 13:36:64 03:50:41 // Track 6 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700071" FILE "cdrdao-cd.bin" 17:27:30 03:43:45 // Track 7 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700072" FILE "cdrdao-cd.bin" 21:11:00 03:25:37 // Track 8 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700055" FILE "cdrdao-cd.bin" 24:36:37 03:18:42 // Track 9 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700073" FILE "cdrdao-cd.bin" 27:55:04 03:34:46 // Track 10 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "FIUM71700074" FILE "cdrdao-cd.bin" 31:29:50 04:22:40 ``` </details> <details> <summary><code>cat cdrdao-cd.cue</code></summary> ``` FILE "cdrdao-cd.bin" BINARY TRACK 01 AUDIO INDEX 01 00:00:00 TRACK 02 AUDIO INDEX 01 03:41:05 TRACK 03 AUDIO INDEX 01 06:38:36 TRACK 04 AUDIO INDEX 01 09:57:25 TRACK 05 AUDIO INDEX 01 13:36:64 TRACK 06 AUDIO INDEX 01 17:27:30 TRACK 07 AUDIO INDEX 01 21:11:00 TRACK 08 AUDIO INDEX 01 24:36:37 TRACK 09 AUDIO INDEX 01 27:55:04 TRACK 10 AUDIO INDEX 01 31:29:50 ``` </details> ![audacity](https://user-images.githubusercontent.com/273509/106539603-29508b00-64b3-11eb-97fb-bd5d12c6beef.png) The raw file looks the same however, so I agree the Cue sheet generation is the likely culprit here.
Author
Owner

@claunia commented on GitHub (Feb 2, 2021):

150 frames (as we can see in aaru image info) is 2 seconds (assuming 75 frames/second), which is the area for the TOC.
It's not, 150 sectors is the minimum size for the first track of a session.

The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors.

On discs, LBA 0 == MSF 00:02:00, LBA -150 = MSF 00:00:00.
On cuesheet, LBA 0 == MSF 00:00:00, it doesn't store negative LBAs.

@claunia commented on GitHub (Feb 2, 2021): > 150 frames (as we can see in aaru image info) is 2 seconds (assuming 75 frames/second), which is the area for the TOC. It's not, 150 sectors is the minimum size for the first track of a session. The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors. On discs, LBA 0 == MSF 00:02:00, LBA -150 = MSF 00:00:00. On cuesheet, LBA 0 == MSF 00:00:00, it doesn't store negative LBAs.
Author
Owner

@terinjokes commented on GitHub (Feb 2, 2021):

The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors.

This is not the solution because INDEX 00 for track 1 is where HTOA is represented.

@terinjokes commented on GitHub (Feb 2, 2021): > The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors. This is not the solution because INDEX 00 for track 1 is where HTOA is represented.
Author
Owner

@claunia commented on GitHub (Feb 2, 2021):

The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors.

This is not the solution because INDEX 00 for track 1 is where HTOA is represented.

Sorry, what do you mean with HTOA?

@claunia commented on GitHub (Feb 2, 2021): > > The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors. > > This is not the solution because INDEX 00 for track 1 is where HTOA is represented. Sorry, what do you mean with HTOA?
Author
Owner

@FakeShemp commented on GitHub (Feb 2, 2021):

The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors.

This is not the solution because INDEX 00 for track 1 is where HTOA is represented.

Sorry, what do you mean with HTOA?

Hidden track

@FakeShemp commented on GitHub (Feb 2, 2021): > > > The solution for the bug is to not write an index 00 for track 1, and displace the LBA to MSF 150 sectors. > > > > > > This is not the solution because INDEX 00 for track 1 is where HTOA is represented. > > Sorry, what do you mean with HTOA? Hidden track
Author
Owner

@claunia commented on GitHub (Feb 2, 2021):

I have not been able to get CDRWin or IsoBuster to properly dump any disc with a hidden track, tried with a CD-i Ready and an audio one.

@FakeShemp you had one, can you try and see what CDRWin 3/4 generates for INDEX 0, if any?

@claunia commented on GitHub (Feb 2, 2021): I have not been able to get CDRWin or IsoBuster to properly dump any disc with a hidden track, tried with a CD-i Ready and an audio one. @FakeShemp you had one, can you try and see what CDRWin 3/4 generates for INDEX 0, if any?
Author
Owner

@TheRogueArchivist commented on GitHub (Feb 3, 2021):

Cue file generated by Isobuster from a CD with a hidden track (i-trax):

FILE "CD.iso" BINARY

REM ORIGINAL MEDIA-TYPE: CD
CATALOG 0000000000000

  REM SESSION 01        (*)
    TRACK 01 AUDIO
      INDEX 00 00:00:00
         REM LBA: 0
      INDEX 01 08:49:65
         REM LBA: 39740
    TRACK 02 AUDIO
      INDEX 01 16:45:32
         REM LBA: 75407
    TRACK 03 AUDIO
      INDEX 01 18:45:10
         REM LBA: 84385
    TRACK 04 AUDIO
      INDEX 01 27:52:05
         REM LBA: 125405
    TRACK 05 AUDIO
      INDEX 01 35:51:55
         REM LBA: 161380
    TRACK 06 AUDIO
      INDEX 01 44:51:24
         REM LBA: 201849
    TRACK 07 AUDIO
      INDEX 01 51:57:07
         REM LBA: 233782
    TRACK 08 AUDIO
      INDEX 01 65:47:17
         REM LBA: 296042

REM (*) SESSION commands are not supported by all applications

REM Generated by IsoBuster 4.5.0.00 (https://www.isobuster.com)

Media info:

aaru 5.2.99.3380-alpha+a784b554 built by DESKTOP-8B4K7NM in Debug, modified
Copyright c 2011-2021 Natalia Portillo

Media has 351117 blocks of 2048 bytes/each. (for a total of 685.775 MiB)
TOC:
First track number in first complete session: 1
Last track number in last complete session: 8
Track number: 1
Track starts at LBA 39740, or MSF 9B:00:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 2
Track starts at LBA 75407, or MSF 26:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 3
Track starts at LBA 84385, or MSF 49:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 4
Track starts at LBA 125405, or MSF E9:01:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 5
Track starts at LBA 161380, or MSF 76:02:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 6
Track starts at LBA 201849, or MSF 14:03:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 7
Track starts at LBA 233782, or MSF 91:03:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: 8
Track starts at LBA 296042, or MSF 84:04:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited

Track number: Lead-Out
Track starts at LBA 351117, or MSF 5B:05:00
Q subchannel stores track pointer
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited


Standard Disc Information:
Disc type declared as CD-DA or CD-ROM
Disc is finalized
Last session is complete
First track on disc is track 1
Disc has 1 sessions
First track in last session is track 1
Last track in last session is track 8
Last session Lead-In address is 4294967295 (as LBA) or FF:FF:FF
Last possible Lead-Out address is 4294967295 (as LBA) or FF:FF:FF
Disc is defined for restricted use

Session information:
First complete session number: 1
Last complete session number: 1
First track number in last complete session: 1
Track starts at LBA 537409, or MSF 33:08:00
Q subchannel stores current position
Stereo audio track with no pre-emphasis
Digital copy of track is prohibited


Raw TOC:
First complete session number: 1
Last complete session number: 1
Session 1
First track number: 1 (Data track, recorded uninterrupted)
Disc type: 0
Last track number: 8 (Stereo audio track with no pre-emphasis)
Lead-out start position: 78:03:42
Lead-out is audio type
Audio track 1 starts at: 08:51:65 (Stereo audio track with no pre-emphasis)
Audio track 2 starts at: 16:47:32 (Stereo audio track with no pre-emphasis)
Audio track 3 starts at: 18:47:10 (Stereo audio track with no pre-emphasis)
Audio track 4 starts at: 27:54:05 (Stereo audio track with no pre-emphasis)
Audio track 5 starts at: 35:53:55 (Stereo audio track with no pre-emphasis)
Audio track 6 starts at: 44:53:24 (Stereo audio track with no pre-emphasis)
Audio track 7 starts at: 51:59:07 (Stereo audio track with no pre-emphasis)
Audio track 8 starts at: 65:49:17 (Stereo audio track with no pre-emphasis)

Media identified as CDDA

Track calculations:
Track 1 starts at LBA 39740, ends at LBA 75406, has a pregap of 0 sectors and is of type Audio
Track 2 starts at LBA 75407, ends at LBA 84384, has a pregap of 0 sectors and is of type Audio
Track 3 starts at LBA 84385, ends at LBA 125404, has a pregap of 0 sectors and is of type Audio
Track 4 starts at LBA 125405, ends at LBA 161379, has a pregap of 0 sectors and is of type Audio
Track 5 starts at LBA 161380, ends at LBA 201848, has a pregap of 0 sectors and is of type Audio
Track 6 starts at LBA 201849, ends at LBA 233781, has a pregap of 0 sectors and is of type Audio
Track 7 starts at LBA 233782, ends at LBA 296041, has a pregap of 0 sectors and is of type Audio
Track 8 starts at LBA 296042, ends at LBA 351116, has a pregap of 0 sectors and is of type Audio

Offsets:
Drive reading offset is 24 bytes (6 samples).
Disc write offset is unknown.
@TheRogueArchivist commented on GitHub (Feb 3, 2021): Cue file generated by Isobuster from a CD with a hidden track (i-trax): ``` FILE "CD.iso" BINARY REM ORIGINAL MEDIA-TYPE: CD CATALOG 0000000000000 REM SESSION 01 (*) TRACK 01 AUDIO INDEX 00 00:00:00 REM LBA: 0 INDEX 01 08:49:65 REM LBA: 39740 TRACK 02 AUDIO INDEX 01 16:45:32 REM LBA: 75407 TRACK 03 AUDIO INDEX 01 18:45:10 REM LBA: 84385 TRACK 04 AUDIO INDEX 01 27:52:05 REM LBA: 125405 TRACK 05 AUDIO INDEX 01 35:51:55 REM LBA: 161380 TRACK 06 AUDIO INDEX 01 44:51:24 REM LBA: 201849 TRACK 07 AUDIO INDEX 01 51:57:07 REM LBA: 233782 TRACK 08 AUDIO INDEX 01 65:47:17 REM LBA: 296042 REM (*) SESSION commands are not supported by all applications REM Generated by IsoBuster 4.5.0.00 (https://www.isobuster.com) ``` Media info: ``` aaru 5.2.99.3380-alpha+a784b554 built by DESKTOP-8B4K7NM in Debug, modified Copyright c 2011-2021 Natalia Portillo Media has 351117 blocks of 2048 bytes/each. (for a total of 685.775 MiB) TOC: First track number in first complete session: 1 Last track number in last complete session: 8 Track number: 1 Track starts at LBA 39740, or MSF 9B:00:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 2 Track starts at LBA 75407, or MSF 26:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 3 Track starts at LBA 84385, or MSF 49:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 4 Track starts at LBA 125405, or MSF E9:01:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 5 Track starts at LBA 161380, or MSF 76:02:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 6 Track starts at LBA 201849, or MSF 14:03:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 7 Track starts at LBA 233782, or MSF 91:03:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: 8 Track starts at LBA 296042, or MSF 84:04:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Track number: Lead-Out Track starts at LBA 351117, or MSF 5B:05:00 Q subchannel stores track pointer Stereo audio track with no pre-emphasis Digital copy of track is prohibited Standard Disc Information: Disc type declared as CD-DA or CD-ROM Disc is finalized Last session is complete First track on disc is track 1 Disc has 1 sessions First track in last session is track 1 Last track in last session is track 8 Last session Lead-In address is 4294967295 (as LBA) or FF:FF:FF Last possible Lead-Out address is 4294967295 (as LBA) or FF:FF:FF Disc is defined for restricted use Session information: First complete session number: 1 Last complete session number: 1 First track number in last complete session: 1 Track starts at LBA 537409, or MSF 33:08:00 Q subchannel stores current position Stereo audio track with no pre-emphasis Digital copy of track is prohibited Raw TOC: First complete session number: 1 Last complete session number: 1 Session 1 First track number: 1 (Data track, recorded uninterrupted) Disc type: 0 Last track number: 8 (Stereo audio track with no pre-emphasis) Lead-out start position: 78:03:42 Lead-out is audio type Audio track 1 starts at: 08:51:65 (Stereo audio track with no pre-emphasis) Audio track 2 starts at: 16:47:32 (Stereo audio track with no pre-emphasis) Audio track 3 starts at: 18:47:10 (Stereo audio track with no pre-emphasis) Audio track 4 starts at: 27:54:05 (Stereo audio track with no pre-emphasis) Audio track 5 starts at: 35:53:55 (Stereo audio track with no pre-emphasis) Audio track 6 starts at: 44:53:24 (Stereo audio track with no pre-emphasis) Audio track 7 starts at: 51:59:07 (Stereo audio track with no pre-emphasis) Audio track 8 starts at: 65:49:17 (Stereo audio track with no pre-emphasis) Media identified as CDDA Track calculations: Track 1 starts at LBA 39740, ends at LBA 75406, has a pregap of 0 sectors and is of type Audio Track 2 starts at LBA 75407, ends at LBA 84384, has a pregap of 0 sectors and is of type Audio Track 3 starts at LBA 84385, ends at LBA 125404, has a pregap of 0 sectors and is of type Audio Track 4 starts at LBA 125405, ends at LBA 161379, has a pregap of 0 sectors and is of type Audio Track 5 starts at LBA 161380, ends at LBA 201848, has a pregap of 0 sectors and is of type Audio Track 6 starts at LBA 201849, ends at LBA 233781, has a pregap of 0 sectors and is of type Audio Track 7 starts at LBA 233782, ends at LBA 296041, has a pregap of 0 sectors and is of type Audio Track 8 starts at LBA 296042, ends at LBA 351116, has a pregap of 0 sectors and is of type Audio Offsets: Drive reading offset is 24 bytes (6 samples). Disc write offset is unknown. ```
Author
Owner

@claunia commented on GitHub (Feb 3, 2021):

Ok so correct behaviour is to put INDEX 00 in the CUE when the pregap is bigger than 150 sectors and INDEX 01 with 2 seconds less.

So:
Track 1 index 0 => 00:00:00 (LBA -150)
Track 1 Index 1 => 02:35:15 (LBA 6992)

If(track1.Pregap > 150)

Cue:

INDEX 00 00:00:00
INDEX 01 02:33:15

While:
Track 1 index 0 => 00:00:00 (LBA -150)
Track 1 index 1 => 00:02:00 (LBA 0)

If(track1.Pregap <= 150)

Cue:

INDEX 01 00:00:00

That solves the hidden tracks case.

@claunia commented on GitHub (Feb 3, 2021): Ok so correct behaviour is to put INDEX 00 in the CUE when the pregap is bigger than 150 sectors and INDEX 01 with 2 seconds less. So: Track 1 index 0 => 00:00:00 (LBA -150) Track 1 Index 1 => 02:35:15 (LBA 6992) ```csharp If(track1.Pregap > 150) ``` Cue: ``` INDEX 00 00:00:00 INDEX 01 02:33:15 ``` While: Track 1 index 0 => 00:00:00 (LBA -150) Track 1 index 1 => 00:02:00 (LBA 0) ```csharp If(track1.Pregap <= 150) ``` Cue: ``` INDEX 01 00:00:00 ``` That solves the hidden tracks case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#660