Bug 498 - FLAC CUESHEET index points past one hour seem to wrap
: FLAC CUESHEET index points past one hour seem to wrap
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Formats
: 5.x or older
: PC Linux (other)
: P2 major (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-12 14:26 UTC by Stuart Hickinbottom
Modified: 2011-03-16 04:39 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
CUESHEET illustrating the 1 hour wrapping problem (2.03 KB, text/plain)
2004-08-12 14:28 UTC, Stuart Hickinbottom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Hickinbottom 2004-08-12 14:26:55 UTC
I'm using a nightly of around 10th August 2004, on a Gentoo Linux server.

I've taken the plunge of converting my collection to FLAC+CUESHEETs and have 
noticed an oddity that I believe is due to a bug in cuesheet parsing.

Using the cuesheet attached, together with its associated FLAC file, I try to 
play track 12 ("Adventures [Unaltered]"), I see the following in the log when I 
have d_formats turned on (tracks earlier than this play fine):

....
2004-08-12 22:22:36.6420 Using command for conversion: "/usr/bin/flac" -dcs --
force-raw-format --endian=little --sign=signed --skip=58:10.93 --until=9:08.76 
"/home/media/Music/FLAC-CUE/Various Artists/2001 - A Space Odyssey/Various 
Artists - 2001 - A Space Odyssey.flac" & |
2004-08-12 22:22:36.6640 Streaming with format: wav
Various Artists - 2001 - A Space Odyssey.flac: ERROR, --until value is before --
skip point
....

SlimServer then skips to some odd part of the album (you may think it's all odd, 
but that's just personal opinion!).

Notice the error, and the --skip and --until values. These seem odd, but when 
you look at the appropriate part of the cuesheet I think the problem can be 
seen:
...
  TRACK 12 AUDIO
    TITLE "Adventures [Unaltered]"
    PERFORMER "Gyorgy Ligeti"
    INDEX 00 02:51:52
    INDEX 01 58:10:70
  TRACK 13 AUDIO
    TITLE "Dialogue Montage"
    PERFORMER "HAL 9000"
    INDEX 00 02:51:54
    INDEX 01 69:08:57
...

Here the 58:10.93 used for --skip seems to correspond with the start of track 12 
OK, but the --until of 9:08.76 is wrong. Suspiciously, it seems like its the 
correct value modulo 1hour.

I've tried this on another longer-than-one-hour-album and I get similar 
problems, so I don't believe it's this cuesheet in particular.

I'm not using a cuesheet embedded in the FLAC file, as I had a couple of 
different problems when I tried that - I suspect that feature may be too 
experimental currently.

If you need any further information then just ask; keep up the good work - 
FLAC+CUESHEETs seem to be very nearly there now you are bundling a working FLAC 
binary.
Comment 1 Stuart Hickinbottom 2004-08-12 14:28:38 UTC
Created attachment 98 [details]
CUESHEET illustrating the 1 hour wrapping problem

This is the full cuesheet for the album, if that helps. I get similar problems
on other albums longer than an hour, so I don't think it's anything peculiar to
this cuesheet.
Comment 2 Stuart Hickinbottom 2004-08-12 14:29:10 UTC
PS the cuesheet is created with EAC, if that's relevant.
Comment 3 Stuart Hickinbottom 2004-08-12 16:13:00 UTC
Just noticed a checkin that seems to be for the same problem. I'll try this
tomorrow and see whether that clears up my problem - I'm confident it will,
having eyeballed the patch. Cheers.
Comment 4 Stuart Hickinbottom 2004-08-13 02:17:46 UTC
Have now checked new new nightly and this seems to have fixed my problem; thanks
for fixing it before I reported it!. Stuart.
Comment 5 James Richardson 2008-12-15 11:57:05 UTC
This bug has been fixed in the latest release of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 6 Chris Owens 2008-12-18 11:55:05 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.