Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Wrong CUE created when setting Gaps Appended (Read 2693 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Wrong CUE created when setting Gaps Appended

I am using Cuetool to convert one single cue+flac to  multiple MP3 tracks. I found that if I choose the Gaps handling to "Gap appended + HTOA" or "Gap appended", the cue file generated in MP3 is wrong, the individual MP3 files are generated correctly.

The only way to get the correct cue sheet is to set gap to "Gaps Left Out". I'd prefer to use Gap Appended because this is the setting I set in EAC to rip my CDs to the lossless format.

Here is the sample:

Correct CUE created from EAC for single file:

FILE "abc.flac" FLAC
  TRACK 01 AUDIO
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 00 03:18:29
    INDEX 01 03:20:74
  TRACK 03 AUDIO
    INDEX 00 07:45:34
    INDEX 01 07:48:04
  TRACK 04 AUDIO
    INDEX 00 12:16:37
    INDEX 01 12:19:07
  TRACK 05 AUDIO
    INDEX 00 16:10:20
    INDEX 01 16:11:50
  TRACK 06 AUDIO
    INDEX 00 19:48:16
    INDEX 01 19:50:61
  TRACK 07 AUDIO
    INDEX 00 23:45:72
    INDEX 01 23:48:42
  TRACK 08 AUDIO
    INDEX 00 28:15:39
    INDEX 01 28:18:09
  TRACK 09 AUDIO
    INDEX 00 31:13:38
    INDEX 01 31:16:08
  TRACK 10 AUDIO
    INDEX 00 36:04:21
    INDEX 01 36:06:66

The incorrect CUE created by cuetools when appending gap:

FILE "01.mp3" WAVE
  TRACK 01 AUDIO
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 00 03:18:29
FILE "02.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 03 AUDIO
    INDEX 00 04:24:35
FILE "03.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 04 AUDIO
    INDEX 00 04:28:33
FILE "04.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 05 AUDIO
    INDEX 00 03:51:13
FILE "05.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 06 AUDIO
    INDEX 00 03:36:41
FILE "06.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 07 AUDIO
    INDEX 00 03:55:11
FILE "07.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 08 AUDIO
    INDEX 00 04:26:72
FILE "08.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 09 AUDIO
    INDEX 00 02:55:29
FILE "09.mp3" WAVE
    INDEX 01 00:00:00
  TRACK 10 AUDIO
    INDEX 00 04:48:13
FILE "10.mp3" WAVE
    INDEX 01 00:00:00


Re: Wrong CUE created when setting Gaps Appended

Reply #1
The funny thing is no matter how I choose the gap handling, even the cue sheet is wrong or correct. The individual MP3 files are exactly the same which means the gaps are abandoned during converting.

If I load the cue+flac as virtual CD and use EAC to rip it into MP3 tracks, the gap (silence) got really appended at the end of each MP3 file. It is not a big deal but I hope the MP3 can be as close to the original disc as possible.

Re: Wrong CUE created when setting Gaps Appended

Reply #2
And what's wrong with the 2nd cuesheet that you posted?

Re: Wrong CUE created when setting Gaps Appended

Reply #3
I am using Cuetool to convert one single cue+flac to  multiple MP3 tracks. I found that if I choose the Gaps handling to "Gap appended + HTOA" or "Gap appended", the cue file generated in MP3 is wrong, the individual MP3 files are generated correctly.
Same type of CUE EAC would create to preserve gap information.
http://wiki.hydrogenaud.io/index.php?title=Cue_sheet#Multiple_files_with_gaps_.28Noncompliant.29

The funny thing is no matter how I choose the gap handling, even the cue sheet is wrong or correct. The individual MP3 files are exactly the same which means the gaps are abandoned during converting.
I cannot duplicate this. The files from a "Gaps Left Out" conversion have gaps removed (files cut shorter at Index 00 reference if it existed). The files from a "Gaps appended" conversion are full length.
korth

Re: Wrong CUE created when setting Gaps Appended

Reply #4
I am sorry about the file size. I retested it, Yes, the append file is larger than the gap left out file. I guess I made too many versions to test and got messed up.

But still, the cue generated in Gap append, the title are wrong(I removed the performer and title info which pasted above) because the file and track are not in sync, file 01 covers track 01/02 so the last file covers no track. And if I drag this cue into foobar, it won't recognize any track info. Since it is already in lossy format, the only purpose for me to save a cue sheet is to kinda use it as a auto-generated playlist.

And the title info in each MP3 files under Gap append mode are correct. Just wondering, it is generated by the same process, why when writing to the cue, the title match to the file are not the same as the title written into the file.

Re: Wrong CUE created when setting Gaps Appended

Reply #5
You could simply use a playlist file for a playlist. CUETools can create M3U files.

From the link I referenced above:
Quote
This multiple-file cue sheet, created by EAC, has gaps appended to the previous track, and is a favourite among users who rip to track files but wish to retain gap information. This format allows the user to retain gaps, but in a position in the track file that does not hinder playback. Unfortunately, this format is non-compliant; this type of rip, despite its popularity, was not supported by the original DAO and CDRWIN software for which cue sheets were designed. Applications that adhere to the cue sheet specification, like foobar2000, will not be able to read it. Of course, EAC will read these cue sheets, as will the CD burning application Burrrn.

Note that INDEX 00 of TRACK 02 is set while still referencing the first FILE.
So the FILE command is intentionally moved to a position so INDEX 00 is read while still referencing the previous FILE (the file the gap is appended to).

The TITLE, PERFORMER and SONGWRITER commands are applied to the current TRACK command per specification (not the FILE command) so as long as TRACK 02 AUDIO is read prior to TITLE and PERFORMER then that TITLE and PERFORMER are applied to TRACK 02.
http://web.archive.org/web/20070221154246/http://www.goldenhawk.com/download/cdrwin.pdf
See Appendix A – Cuesheet Commands
or
http://web.archive.org/web/20111004164713/http://digitalx.org/cue-sheet/syntax/

A "Compliant" CUE sheet option is already on the list of requested features for CUETools.
korth