Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#338 metaflac calculates wrong offsets at cuesheet import

closed-fixed
metaflac (17)
7
2014-08-20
2008-10-20
ZX81
No

It seems that metaflac ignores the sample rate for the calculation of the offset number.

If the sample rate is 44.1kHz the offset is correct but at 48kHz the calculated value is wrong.

Example:
metaflac - Command-line FLAC metadata editor version 1.2.1

Radio1.flac (FLAC file with 48kHz sample rate)
inhalt.cue:
FILE "Radio1.flac" FLAC
TRACK 01 AUDIO
INDEX 01 00:00:00
TRACK 02 AUDIO
-> INDEX 01 01:00:00 <-

metaflac --import-cuesheet-from=inhalt.cue Radio1.flac

the result:
metaflac --list Radio1.flac

METADATA block #0
type: 0 (STREAMINFO)
is last: false
length: 34
minimum blocksize: 4096 samples
maximum blocksize: 4096 samples
minimum framesize: 16 bytes
maximum framesize: 10131 bytes
-> sample_rate: 48000 Hz <-
channels: 2
bits-per-sample: 16
total samples: 291973248
.....
METADATA block #3
type: 5 (CUESHEET)
is last: false
length: 528
media catalog number:
lead-in: 0
is CD: false
number of tracks: 3
track[0]
offset: 0
number: 1
ISRC:
type: AUDIO
pre-emphasis: false
number of index points: 1
index[0]
offset: 0
number: 1
track[1]
-> offset: 2646000 <-
number: 2
ISRC:
type: AUDIO
pre-emphasis: false
number of index points: 1
index[0]
offset: 0
number: 1
track[2]
offset: 291973248
number: 255 (LEAD-OUT)

2646000 is the wrong offset for 48kHz, the value should be 2880000

Discussion

  • ZX81

    ZX81 - 2008-10-20
    • summary: calculates wrong offsets at cuesheet import --> metaflac calculates wrong offsets at cuesheet import
     
  • Josh Coalson

    Josh Coalson - 2009-01-06
    • priority: 5 --> 7
    • status: open --> open-accepted
     
  • Josh Coalson

    Josh Coalson - 2009-01-07

    fixed in cvs

     
  • Josh Coalson

    Josh Coalson - 2009-01-07
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.