[MPlayer-dev-eng] N fps and N Hz screen refresh rate (the vblank problem)

Uoti Urpala uoti.urpala at pp1.inet.fi
Tue Dec 30 20:07:03 CET 2008


On Tue, 2008-12-30 at 19:38 +0100, Reimar Döffinger wrote:
> On Tue, Dec 30, 2008 at 07:23:41PM +0100, Pallai Roland wrote:
> > This patch is just a demonstration. It worksforme, my problem has
> > gone, but it's an ugly hack. Is there another solution for this
> > problem? Is a workaround?
> 
> What video card doe you have? Can it do OpenGL?
> Have you tried -vo gl (or if supported better -vo gl:yuv=2)?

The gl swapinterval alone can not solve this well. If the monitor
framerate is a multiple of the video framerate then the default does not
help at all. You'll need to set a higher swapinterval that matches the
ratio of video and screen updates. But then with such a setting A/V sync
adjustments break because it becomes impossible to speed up the video at
all. You'd need either a mode that adjusts audio length instead or a
mode that drops frames instead of showing them faster (or with
swapinterval > 1 preferably allows showing them with a smaller
interval).




More information about the MPlayer-dev-eng mailing list