[Abcde-users] Problem with 'abcde -d disc.flac'

Matthias König mk at silverserver.at
Wed Nov 14 10:44:15 GMT 2018


On Wed, 14 Nov 2018 08:05:09 +0100
Bjørn Forsman <bjorn.forsman at gmail.com> wrote:

> Hi Matthias,
> 
> On Tue, 13 Nov 2018 at 23:47, Matthias König <mk at silverserver.at>
> wrote:
> > [..]
> > If you use the -k switch, the directory containing the wav files and
> > other files will not be deleted. You can find the disc ids in these
> > files, for example:
> >
> > abcde.a309a30b/cddbdiscid
> > abcde.a309a30b/mbdiscid
> >
> > Before the second run you have to remove or rename the wav output
> > directory.
> 
> Ok, testing. Initial run:
> 
> $ abcde -1 -o flac -a default,cue -k
> [...]
> $ cat abcde.a309a30b/mbdiscid
> yuMJjTbdlu.0Ob4HtyobpewtX8U- 11 182 19082 35557 57645 74005 91327
> 112280 122847 141040 158885 171790 2471
> $ cat abcde.a309a30b/cddbdiscid
> a309a30b 11 182 19082 35557 57645 74005 91327 112280 122847 141040
> 158885 171790 2471
> 
> Moving abcde.a309a30b/ out of the way and running from the newly
> created .flac image:
> 
> $ mv abcde.a309a30b abcde.a309a30b.run-1
> $ abcde -d U2-October/October.flac -o mp3 -k
> $ cat abcde.a109a30b/mbdiscid
> __p6zKKZCgZxD4R6N08IZaCSGeM- 11 150 19050 35525 57613 73973 91295
> 112248 122815 141008 158853 171758 2471
> $ cat abcde.a109a30b/cddbdiscid
> a109a30b 11 150 19050 35525 57613 73973 91295 112248 122815 141008
> 158853 171758 2471
> 
> Ok, so it's clear that the discid, both mbdiscid and cddbdiscid, is
> different from the run with the original CD.
> 
> What's the next debugging step?
> 
> - Bjørn

According to the data for your CD on the Musicbrainz website, the disc
ids and track offsets are correct when you read from the CD.

You now know that the disc ids and also the track offsets are not
correct when you read from the flac file. (Number of tracks and leadout
are correct.)

The offsets differ by 32 sectors. (1 second = 75 sectors, if I remember
correctly) There are CDs with a so-called pregap, which means that the
first track does not start at sector 0 but at sector 32, for example.

With the option -VV you can see if the CD has a pregap. Search for this
line:
makeids: PREGAP 0, LEADIN 150, LEADOUT 309237

You can also see in the cuesheet if the CD has a pregap.

I own a few CDs with a pregap. But with these only the disc ids are
calculated incorrectly when reading from the flac file. The track
offsets are calculated correctly.

In your first email you mentioned a patch. I wrote this patch. With
this patch all my CDs work, even when reading from a flac file and even
if the CD has a pregap.

As far as debugging is concerned, I think the function makeids() is a
good starting point. I can not help you with debugging. I do not own
your CD. And besides, I am an abcde user and not a developer.

Have you already tried other CDs? Maybe this problem only occurs with
this particular CD.

Matthias



More information about the Abcde-users mailing list