[Mplayer-users] subtitles go unsyncronized in about an hour

Arpi arpi at thot.banki.hu
Sat Jul 21 02:11:28 CEST 2001


Hi,

> > A> > Hi, I saw there are some questions/bugs about subtitles and it's my time to
> > A> > speak. I'm having some problems with the syncronization. The problem is
> > A> > that with a lot of filmes, the subtitles works just fine but when it played
> > A> > about and hour, the subtitles starts to go unsyncronized, if I'm not wrong,
> > A> > they appear later (I mean, first is the voice, then the subtitles). I have
> > A> > to put them back in sync with 'x' (or 'z') but the keep going slower and I
> > A> > must keep doing the 'x' press, about once every 5-10 minutes.
> > A> Hmm. Is it ok at the first hour?
> > A> I think it's a math precision problem. I got similar thing with -bps option,
> > A> until i changed float to double. I'll review subtitle code.
> > 
> > I use always -bps (don't remember why I add it to ~/.mplayer/config). If I
> > use -ss 3600 (for start playing at the first hour) the subtitles works
> > well, (for 5-10 minutes as when I play the complete movie) so is not a
> > -subfps problem.
> No, it is time counter problem.
> I saw (for -bps) that x+x+x+x+x differs _a_lot_ from 5*x, if i'm using
> float. (of course not 5, it's summed about 50000 times).
> I got near perfect result (no big difference between multiplied and summed)
> for a long period and at a given point the difference began to increasing.
> Maybe because of using gcc -mfast-math ? With double it's ok.

Ok, it's fixed now in CVS.
I changed incremental (v_pts+=frame_time) v_pts calculation to 
multiplicative (v_pts=frame_no*frame_time). SHould work better now.

Please try it and tell me the results.


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list