[MPlayer-users] OSD problems with DVDs
davidecapod at inwind.it
Thu Feb 23 23:16:28 CET 2006
Alle 23:50, giovedì 19 gennaio 2006, Davide Capodaglio ha scritto:
> Alle 00:02, giovedì 19 gennaio 2006, Nico Sabbi ha scritto:
> > Davide Capodaglio wrote:
> > >Hi everybody, these are the problems I have with DVDs and OSD:
> > >
> > >- sometimes the total time is lower than real time, for all the film
> > > length - sometimes the total time is lower than real time, but at a
> > > certain point of the film it becomes the correct time
> > >- sometimes the current time at a certain point goes back to 0: e.g.
> > >00:00-31:00, then resets to 00:00, then 00:00-28:32, reset to 00:00,
> > > etc. (VOB boundary??).
> > no: crazy authoring techniques seconded by a foolish standard (mpeg)
> > >(For this I produced a patch, and now the current time follow the total
> > > time, but if this is wrong I'm stuck again)
> > where?
> Here's the patch, it's against MPlayer 1.0-pre7try2, but as I said it does
> not work at all; it's based on the idea that the percentage when seeking
> seems correct (at least aligned with the total time).
> So, is this a problem known to developers?
I finally succeded in calculating both the current and total time !!!
It calculates the total time in libmpdemux/open.c,open_stream() using
dvd_playback_time = dvdtime2sec(&d->cur_pgc->playback_time);
and the current time using
pts = dvd_playback_time * (demuxer->filepos - demuxer->movi_start) /
(demuxer->movi_end - demuxer->movi_start);
Here's the patch for 1.0-pre7try2, it works perfectly for me.
Any comment/feedback is appreciated...
More information about the MPlayer-users