Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178307 - media-video/mplayer-1.0.20070321 sometimes missdetects movie length
Summary: media-video/mplayer-1.0.20070321 sometimes missdetects movie length
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-13 09:58 UTC by tsattler
Modified: 2007-08-15 06:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tsattler 2007-05-13 09:58:41 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 10:30:00 UTC
Try w/ mplayer-1.0.20070427 and report back, please.
Comment 2 tsattler 2007-05-13 11:55:05 UTC
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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 11:57:45 UTC
Well, at least run file on them, so that we know what the files format it?
Comment 4 tsattler 2007-05-13 15:30:55 UTC
$ 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
Comment 5 tsattler 2007-05-13 16:45:39 UTC
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.
Comment 6 tsattler 2007-05-13 17:07:40 UTC
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.
Comment 7 Reimar Döffinger 2007-05-16 14:15:25 UTC
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.
Comment 8 tsattler 2007-05-17 15:59:47 UTC
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
Comment 9 Steve Dibb (RETIRED) gentoo-dev 2007-08-15 06:57:46 UTC
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