Latest stable mplayer (1.0.20070321 on x86) sometimes shows wrong length on mpeg2 encoded videos. "Sometimes" means: the shown length is the same for every run on the same file, but it's wrong on some files. To prove it's wrong you can use mplayer-1.0_rc1-r2 or simply play that file.
Try w/ mplayer-1.0.20070427 and report back, please.
Same with 1.0.20070427. I found three files so far that trigger the bug. All files are above 1GB so uploading them would take hours. I reported 1.0.20070321 as it is marked stable which it isn't.
Well, at least run file on them, so that we know what the files format it?
$ file 070427-2000-SRTL\ \ Pocahontas\ \[72min\].mpeg2 070427-2000-SRTL Pocahontas [72min].mpeg2: MPEG sequence, v2, program multiplex $ midentify 070427-2000-SRTL\ \ Pocahontas\ \[72min\].mpeg2 | grep _LENGTH ID_LENGTH=3340.16 3340s is about 55min, the real length is 72min I also have files where real length is smaller than what mplayer shows. I'll try to find smaller files that trigger that bug
Further tests show that length differs on almost all (MPEG2) files I have, in the majority of cases movies seem to be just two or three seconds shorter than with 1.0_rc1-r2. Only on some rare files different mplayer versions differ by minutes, sometimes hours.
All files I talk about are recorded with dvbd (not in portage), demuxed with projectx and muxed again with mplex. I can offer a 24MB 1min testfile.
There are only to ways to get the length of MPEG2 files 1) reading the whole file 2) guessing MPlayer does 2), so wrong numbers are to be expected. If the guesses are consistently worse with newer versions that would be a regression and thus a bug, but if they are only wrong that's just unavoidable.
I understand the need of guessing, but as I said: newer versions do a worse job than version 1.0_rc1-r2. All files I tested so far (i.e. time mplayer file.mpg) are about the length 1.0_rc1-r2 guessed. Nearly all files I checked are 2-3 seconds longer than what newer mplayers guessed, 1.0_rc1-r2 did a better job here. With some files it's even worse: Newer mplayers miss correct file length from several minutes up to 1.5 hours. I have the following samples here: 1.0_rc1-r2 newer difference movie-1 135min 48min -87min movie-2 72min 55min -17min movie-3 82min 138min 56min movie-4 40min 53min 13min
Not too much we can do about it, its an upstream issue. Sorry, man. My suggestion would be to run SVN on your box, and periodically check for updates. Closing as UPSTREAM