Bug 13865 - lame transcoding yields incorrect progress/timing information
: lame transcoding yields incorrect progress/timing information
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Transcoding
: 7.3.4
: Macintosh Other
: P3 normal (vote)
: ---
Assigned To: Alan Young
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-05 08:08 UTC by John
Modified: 2011-01-13 22:44 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments
Patch to force lame to use CBR when transcoding (3.80 KB, patch)
2011-01-13 22:43 UTC, Alan Young
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John 2009-09-05 08:08:44 UTC
My player is an older squeezebox v1. I've always used lame with a 320kbps rate limit to handle my AAC files. In recent versions of squeezecenter (incl. 7.3.4) the music plays fine, but the progress bar and time remaining indicator does not update correctly.  10 seconds of progress reported on my squeezebox corresponds to 25 seconds of music, so it is off by ~2.5X.

Since encountering this problem I have now disabled lame on 7.3.4 and don't see this problem, but I believe this means I've lost the ability to rate limit AAC streams from my server.
Comment 1 James Richardson 2009-09-08 08:52:29 UTC
Alan: your thoughts on this one?
Comment 2 Alan Young 2009-09-08 09:16:27 UTC
I'll look at it.
Comment 3 Alan Young 2009-09-29 03:07:35 UTC
Update hours
Comment 4 Alan Young 2011-01-13 08:44:27 UTC
The problem is that the server does not know the bitrate of the lame-encoded stream and the player does not report time played. The server guesses at the bitrate based on any bit-rate limit but lame may actually use a lower bitrate resulting in the problem that you see.

One solution would be to add "-b 320" to the lame command line in convert.conf. This would force lame to use 320kb/s
Comment 5 Alan Young 2011-01-13 22:41:59 UTC
That would, of course, have the effect of defeating lame's VBR (variable bit-rate) capability and would also require that you specify the desired bitrate for the player under Settings / Player/ Audio / Bitrate Limiting, rather than leaving it at "No Limit". 

Because of these issues I do not propose to apply an actual patch to the product. I will attach a patch to this bug that users could apply themselves if they so wish.

I would note that, in a previous release of SqueezeboxServer, lame was configured to use CBR (constant bit-rate) and so the server did know the actual bitrate to use in time-played calculations. But VBR has so many advantages over CBR that I do not propose to revert that change.
Comment 6 Alan Young 2011-01-13 22:43:09 UTC
Created attachment 7080 [details]
Patch to force lame to use CBR when transcoding