PDA

View Full Version : XBMC show incorrect total duration/length/playtime


mknight
2004-02-07, 22:44
no biggie, but when ff an mp3 file that is encoded in vbr the time is way off. xbmc appears to know the correct length of a song, say 4 minutes, but if you ff it, you can go right on past 4 minutes, usually up to around 15 or so. doesn't happen on files that are encoded with cbr.

Frodo
2004-02-08, 14:27
nothing we can do about it:-(
seems mplayer reports wrong pts values for vbr files
frodo

hifidigital
2004-03-23, 04:40
anyone know why my mp3's that were ripped with a vbr show up with incorrect times in xbmc?

Hullebulle
2004-03-23, 10:23
well i think the reason is vbr.i guess xbmc calculates the playtime by bitrate and filesize. since the bitrate varis in vbr this method don't work very well. dunno if it would be possible to get the playtime elsewhere (id3 tag?).

Bobbin007
2004-03-23, 13:47
i have added duration for vbri files. xbmc now supports duration calculation for xing/lame and fhg vbr files.

also found a bug in cbr duration calculation where duration was sometimes misscalculated.

hope this fixes it.

greets

bobbin007

hifidigital
2004-03-24, 04:48
great. i'll check it out on the next release.

jaga
2004-04-14, 23:26
if the duration of a vbr mp3 can't be determined than perhaps xbmc could say unknown or vbr instead of guessing.

jmarshall
2004-04-15, 01:41
which version xbmc are you using? the current cvs is quite accurate according to my music collection (though i admit i haven't done a thorough check of all 2000+ tracks).

try removing the music database files and rescanning.

Gamester17
2004-04-15, 12:46
i think jaga means vbr mp3 in video (like in avi or ogm), right?, it that's it then that has been a known mplayer bug/issue a long time

jaga
2004-04-15, 15:11
nope, i mean audio. and i thought xmbc usually did a good job with this but i recently ripped a cd to mp3 w/ nero ( with mp3pro disabled ) on the high-quality vbr settings, and it says a 2 minute track is upwards of 18 minutes, a 6 minute track can be 38 minutes, etc. so i asked around in #xbmc and i was told that's because xbmc guesses. i guess i should upload the file somewhere.
(and yes, i've deleted mymusic.db and rescanned just to be sure).

Gamester17
2004-04-15, 15:58
actualy, i just did a quick search (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=search&code=02&sid=407e86bb7d207f9f) of the forum and quess what i found? http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif ...retorical, problem is with both audio and audio for video in mplayer

edit: merged the three topics dealing with vbr standalone audio files into one, please rememeber to search forum before posting

Bobbin007
2004-04-15, 23:24
i guess i should upload the file somewhere.
yes, please upload to .it (http://www.xboxmediaplayer.it/upload/index.asp). then i could look at it.

edit: no need to upload anymore, i know why. :) nero saves vbr files without a xing or vbri header. so these files are calculated incorrect. to calculate the right duration, the whole file must be seeked and this is not implemented right now.

greets

bobbin007

The_Dogg
2004-05-21, 19:03
i have'nt made any test with this to pin-point the problem (not enough free time yet) but i notice that when i play a 22 minutes vcd (mpg) file the osd says the file has 26:xx minutes long but the file is actually 22:xx minutes long. *i don't know if anybody else noticed that.

i'm using the cvs build of 05-14 and i saw that in earlier version too.

i'm watching those file via samba sharing if it's of any help.

i'll try to run some test this week-end to see if i can find more specific details about this problems, but i just wanted to let you guys know. if i find anything else i'll edit this post

spiff
2004-05-21, 19:49
mplayer's fault. has been like that for years. afaik it only affect mpeg1 and mpeg2, and possibly .ogm and .mkv containers...

Gamester17
2004-05-24, 11:49
mplayer = http://www.mplayerhq.hu. note! you should all really address this bug directly to the mplayer dev mailing list (http://www.mplayerhq.hu/homepage/design6/info.html#mailing_lists) if want this fixed http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif
ps! mplayer team (http://www.mplayerhq.hu) uses mailing_lists (http://www.mplayerhq.hu/homepage/design6/info.html#mailing_lists) instead of a forum or trackers like us, note you must suscribing to the list first before sending mail to it.