[Abcde-users] Single flac file with embedded cuesheet is missing the first few sectors

Matthias König mk at silverserver.at
Sat Oct 1 15:24:06 BST 2016


Hi,

I used abcde to encode a whole CD into a single flac file with embedded
cuesheet.

This is the CD that I have used:
https://musicbrainz.org/release/ef8cba95-d745-4b7b-a390-f6e2d5fec94c

I encountered a problem which has already been discussed here:
https://lists.einval.com/pipermail/abcde-users/2013-August/000089.html
https://lists.einval.com/pipermail/abcde-users/2013-August/000090.html
https://lists.einval.com/pipermail/abcde-users/2013-October/000099.html

A patch is mentioned in the messages above.

A snippet from the output:


Grabbing tracks 1 - 5 as one track ...
cdparanoia III release 10.2 (September 11, 2008)

Ripping from sector      32 (track  1 [0:00.00])
          to sector  146986 (track  5 [3:04.11])


As you can see, cdparanoia is not ripping from sector 0. Because of the
missing sectors the flac file has a different disc ID than the CD. This
means that the musicbrainz query will fail when the flac file is used
as a source for creating other formats like mp3 or vorbis.

When playing the flac file with cmus, I noticed that at the end of each
track one can hear approximately half a second of the beginning of the
next track. Obviously the audio does not exactly match the cuesheet
because of the missing 32 sectors.

I made the following change in the abcde bash script:
Line 3270 (abcde v2.7.2)
Line 2958 (abcde v2.6, Debian jessie)

#READTRACKNUMS="$FIRSTTRACK-$LASTTRACK" ;;
READTRACKNUMS="0-" ;;

Now the output looks like this:


Grabbing tracks 1 - 5 as one track ...
cdparanoia III release 10.2 (September 11, 2008)

Ripping from sector       0 (track  0 [0:00.00])
          to sector  146986 (track  5 [3:04.11])


This solved the issue. Now the resulting flac file has the same disc ID
as the CD. The musicbrainz query is successful when creating other
formats from the flac file. And when playing the flac file with cmus,
now the track boundaries exactly match the audio.

Here is the cuesheet:

FILE "Symphonie_Nr._4.flac" FLAC
  TRACK 01 AUDIO
    INDEX 00 00:00:00
    INDEX 01 00:00:32
  TRACK 02 AUDIO
    INDEX 01 09:33:05
  TRACK 03 AUDIO
    INDEX 01 19:02:10
  TRACK 04 AUDIO
    INDEX 01 24:33:02
  TRACK 05 AUDIO
    INDEX 01 29:35:50
REM FLAC__lead-in 88200
REM FLAC__lead-out 170 86428356

It would be great if this problem could be solved, because abcde is
really a great and valuable software.

Matthias König



More information about the Abcde-users mailing list