Bug 1482 - WAV CUE files start playing on first track always
: WAV CUE files start playing on first track always
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.1.0
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: michael
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-02 10:15 UTC by andy
Modified: 2008-08-18 10:54 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Example cue file (2.65 KB, text/plain)
2005-05-27 08:55 UTC, andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2005-05-02 10:15:00 UTC
It doesnt matter what track you select in an EAC CUE file, it always starts 
playing the start of the WAV file which is of course Track 1. Same happens if 
you try and use the Next/Previous controls.

I have had to revert back to 5.4.1 to get proper CUE file support back which 
means I am unable to use my new SB2's.

Also, if you browse a CUE file using Browse Music, you get a list of 'CD image' 
rather than the track listing.

Lastly, I am not convinced that searches see the CUE file contents either.
Comment 1 KDF 2005-05-03 17:06:12 UTC
Michael, is this possibly related to bug1360?
Comment 2 michael 2005-05-03 19:11:24 UTC
The "cd image" when browsing music folder is the "sort by filename" version of
bug 1360.  (the behaviour kevin described in 1360 is the "sort by song
information" version.)  Browsing by "Music Folder" has known problems with
cuesheets, but everything else should be working.  

Andy, can you attach one of the cuesheets you're having problems with?
Comment 3 andy 2005-05-27 08:55:20 UTC
Created attachment 527 [details]
Example cue file

The attached is an example CUE file, this CUE file works fine on V5.
Comment 4 Blackketter Dean 2005-06-07 16:28:26 UTC
Michael:  what's your assessment of this?
Comment 5 Blackketter Dean 2005-06-13 16:57:10 UTC
Michael is AWOL.  Hopefully vidur can look at this.
Comment 6 michael 2005-06-14 03:10:29 UTC
sorry, my internet connection will be spotty at best, until I return to the US
after the 17th.  I'll take another look at this then, if it hasn't already been
taken care of.
Comment 7 Dan Sully 2005-06-28 15:44:17 UTC
Michael - what are your thoughts on this?
Comment 8 michael 2005-06-29 13:11:51 UTC
I took a quick peek at this, and it does indeed always start playing at the
beginning of the file.  The cuesheet seems to be getting parsed correctly, and
the entries in the db include the offset anchors, but they seem to be ignored
during playback.
I haven't dredged up a 5.x install to compare against yet.
Comment 9 KDF 2005-06-29 14:01:18 UTC
I dont have any valid cue sheets in my setup so I canot really test.  How does
this look in the d_source logs?  Are the anchors showing up in the constructed
playback command?
Comment 10 michael 2005-06-29 15:32:21 UTC
> Are the anchors showing up in the constructed playback command?

no, but nothing in convert.conf suggests that they should.

so just for kicks I tweaked convert.conf for wav -> flc  so that it pipes
through sox with "trim" set to the $START$ anchor.  Then frobbed Source.pm so it
would interpolate the anchor values for non-flac files (not sure why it has that
restriction to begin with), and sure enough the playback starts with the
expected song.

A bit more tweaking of Source.pm and convert.conf could produce a semi-usable
workaround hack, but I think what we really want to do is fix seeking to the
proper offset when reading the wav file to begin with.
Comment 11 Vidur Apparao 2005-06-29 17:46:27 UTC
Seeking in PCM files sounds right to me. We're already doing it in time2offset
and  when doing a FFWD or REW. 
Comment 12 Vidur Apparao 2005-06-30 15:09:06 UTC
Michael, any chance you'd be willing to own this for 6.1?
Comment 13 michael 2005-06-30 21:37:53 UTC
Digging a bit deeper, it seems this really is just a convert.conf issue. sb2
converts wav to flac, and the conversion line didn't account for offset anchors.
 Changing the convert.conf (didn't need sox after all) and the aforementioned
tweak to Source.pm and it seems to be working as expected.  This worked in 5.x
because we didn't try to transcode the wav file (or we converted it to mp3).
Revision 3588 fixes this for wav files, but trying to make this work for
anything other than wav, flac, and mp3 is going to be tricky.
Comment 14 Dan Sully 2005-07-01 00:13:33 UTC
Do we care about anything other than wav, flac and mp3?

Those are the common cue sheet source files, yes?

What else, if anything uses them?
Comment 15 michael 2005-07-01 01:46:49 UTC
I haven't stumbled across anything else yet, but theoretically you could use any
format you wanted.

I vote for leaving it at these three, and if someone wants a particular format
added they just have to figure out how to make that formats decoder do the
equivelent of the skip/until options.

I would've marked this as "fixed" after the above changes, but it doesn't give
me that option when it's not assigned to me. :)
Comment 16 KDF 2005-07-01 02:22:12 UTC
mark as you see fit :)
Comment 17 michael 2005-07-01 02:33:13 UTC
marking as "fixed" as the issue described in the summary is, well, fixed.
Comment 18 Chris Owens 2008-03-11 11:28:13 UTC
This bug was marked resolved in Slimserver 6.1, which is several versions ago.  If you're still seeing this bug, please re-open it.  Thanks!