bpa wrote: 
> All duration at teh start of playing an MP3 are estimates based on size
> and data rate of the file.  I'm not sure but I think the data rate is
> not accurate  (i.e. 64kbps will not be 64kbps for 100% of the file but
> should be the close to that figure for the whole file) it is really a
> max figure.
> 
> To know exactly the duration of a file without playing it - convert to
> WAV as part of the conversion the real duration is saved in the header
> (e.g.  lame --mp3input --decode --verbose input.mp3 output.wav ) - there
> is no compression so duration is accurate.
> 
> LMS treats MP3 podcasts as streams so some values such as compression
> and (possibly duration ) are calculated "on the fly" as audio is being
> played and whereas applications which process MP3 files can analyse the
> whole file before playing.
> 
> If you look at LMS Web GUI when plyaing the podcast - the
> initialduraiton that appears is the one in the feed and shortly after
> podcast starts playing (i.e. after LMS has been told the number of bytes
> in the podcast) - LMS updates the duration  to the correct longer one.  
> I wonder whether LMS has managed to keep the original feed duration
> somewhere and didn't update it whereas once you "jump" in the podcasts -
> LMS  knows the real duration.
> 
> Needs some more testing but with much shorter podcast (possibly by
> faking a feed) .

CNN seem to have updated this specific mp3 in some form (it's longer now
in LMS and VLC). But to be sure I'd need to have the old feed. I did not
anticipate this move and deleted it yesterday.

Your "jump & update" hypothesis sounds interesting. Maybe LMS just
recalculates the duration, thus skipping at the beginning doesn't help
playing the mp3 to the end while skipping at the end will. (I assume
that the more there is yet to play, the bigger the difference between
"real" and "estimated" duration will be.)



QLMS [email protected] (digimaster) / QNAP 469L QTS 4.3.4
------------------------------------------------------------------------
dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663
View this thread: http://forums.slimdevices.com/showthread.php?t=109017

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to