HydrogenAudio

CD-R and Audio Hardware => CUETools => Topic started by: besty on 2020-10-23 11:37:06

Title: Going from APE to FLAC (Exception: Indexes must be in chronological order)
Post by: besty on 2020-10-23 11:37:06
Hi all,

I've seen very old posts on this problem, and I've tried the solutions suggested therein, but to no avail.

I am trying to convert a single large APE file into multiple FLAC files - one per track.  so for this disc i have the APE, the CUE and the EAC log (though I'd note this reports v1.0 of EAC...)

When I try to get CUETools to split the APE up, I get a message: the indexes need to be in chronological order.  The original cue file is attached: Joseph Hayden ... - Copy.cue.

So one suggestion was to drop the Index 00 entries.  Tried that - the first index needs to point to the start of the file.  So the follow up suggestion was to edit the Track 1 index to point at 00:00:00.  Again no joy - same message: First index must start at the beginning of the file.  so I've attached the second cue as well.

Interestingly VLS is cool with any/all of these...

So I'm tired and frustrated right now, and probably missing something extremely obvious.  I hope someone is willing to have a look here and tell me what it is I'm doing wrong!

Other than that, pretty happy at present with the product!

Cheers,

GB


MOD Edit: Modified Topic Title (was: Going from APE to FLAC )
Title: Re: Going from APE to FLAC (Exception: Indexes must be in chronological order)
Post by: korth on 2020-10-23 12:45:52
The original CUE has a TAB character preceding the first INDEX 01 that needs to be replaced with spaces.
Code: [Select]
REM GENRE Classical
REM DATE 1979
REM DISCID 420C0106
REM COMMENT "ExactAudioCopy v1.0b3"
PERFORMER "Joseph Haydn"
TITLE "11 Piano Sonatas - Alfred Brendel (Disc 01)"
FILE "Joseph Haydn - 11 Piano Sonatas - Alfred Brendel (Disc 01).ape" WAVE
  TRACK 01 AUDIO
    TITLE "Piano Sonata in C minor Hob. XVI.20 - 1. Moderato"
    PERFORMER "Joseph Haydn"
    INDEX 00 00:00:00
INDEX 01 00:00:33
  TRACK 02 AUDIO
corrected:
Code: [Select]
REM GENRE Classical
REM DATE 1979
REM DISCID 420C0106
REM COMMENT "ExactAudioCopy v1.0b3"
PERFORMER "Joseph Haydn"
TITLE "11 Piano Sonatas - Alfred Brendel (Disc 01)"
FILE "Joseph Haydn - 11 Piano Sonatas - Alfred Brendel (Disc 01).ape" WAVE
  TRACK 01 AUDIO
    TITLE "Piano Sonata in C minor Hob. XVI.20 - 1. Moderato"
    PERFORMER "Joseph Haydn"
    INDEX 00 00:00:00
    INDEX 01 00:00:33
  TRACK 02 AUDIO

The modified CUE, the TAB character is still present (now in front of INDEX 00) and too much information was removed. INDEX 00 00:00:00 shows where the file begins but INDEX 01 00:00:33 is still needed to show where the track begins. All other Index 00 entries can be removed.
Code: [Select]
REM GENRE Classical
REM DATE 1979
REM DISCID 420C0106
REM COMMENT "ExactAudioCopy v1.0b3"
PERFORMER "Joseph Haydn"
TITLE "11 Piano Sonatas - Alfred Brendel (Disc 01)"
FILE "Joseph Haydn - 11 Piano Sonatas - Alfred Brendel (Disc 01).ape" WAVE
  TRACK 01 AUDIO
    TITLE "Piano Sonata in C minor Hob. XVI.20 - 1. Moderato"
    PERFORMER "Joseph Haydn"
INDEX 00 00:00:00
  TRACK 02 AUDIO
corrected:
Code: [Select]
REM GENRE Classical
REM DATE 1979
REM DISCID 420C0106
REM COMMENT "ExactAudioCopy v1.0b3"
PERFORMER "Joseph Haydn"
TITLE "11 Piano Sonatas - Alfred Brendel (Disc 01)"
FILE "Joseph Haydn - 11 Piano Sonatas - Alfred Brendel (Disc 01).ape" WAVE
  TRACK 01 AUDIO
    TITLE "Piano Sonata in C minor Hob. XVI.20 - 1. Moderato"
    PERFORMER "Joseph Haydn"
    INDEX 00 00:00:00
    INDEX 01 00:00:33
  TRACK 02 AUDIO
Title: Re: Going from APE to FLAC (Exception: Indexes must be in chronological order)
Post by: besty on 2020-10-23 21:37:17
That works - I am so grateful.  That never occurred to me.

I had a very quick browse of the source code - certainly not detailed enough to pick that one up.

I wonder if there is a reason why the code doesn't treat the tab as white space (as is quite often done) or whther this is a change worth exploring!

My thanks

GB
Title: Re: Going from APE to FLAC (Exception: Indexes must be in chronological order)
Post by: korth on 2020-10-24 14:40:11
I took the liberty of adding this Issue
https://github.com/gchudov/cuetools.net/issues/65
Title: Re: Going from APE to FLAC (Exception: Indexes must be in chronological order)
Post by: korth on 2020-12-01 20:22:09
UPDATE: commit bf67b53 (https://github.com/gchudov/cuetools.net/commit/bf67b53ef4c96123e8060c33ed2eac67634d891e) adds support for CUE sheets where a tab is used for indentation.