[MPlayer-users] Tearing problems - waiting for vsync doesn't work with vo_xv

Haakon Riiser haakon.riiser at fys.uio.no
Sat Jun 14 12:04:25 CEST 2008

I am running the latest svn snapshot of mplayer, and recently
noticed that I get tearing problems when using the XVideo output
driver.  I have verified that vo_xv_enable_vsync() is called, and
that it succeeds, but I still get the annoying tearing artifacts.
I have created a small video clip that demonstrates this:
http://folk.uio.no/hakonrk/tmp/tearing.avi  (1 MB)

I first thought that this had to be a bug in my NVIDIA display
driver, since I have recently upgraded to Fedora 9, and in doing
that, got a new version of X.org and NVIDIA's closed source drivers.

Then I tested a small media player I've developed myself for
experimental purposes -- it also uses XVideo for output, and uses
exactly the same method as MPlayer for syncing frame display to
the monitor's vertical refresh:

    Atom xv_atom = intern_atom_if_exists("XV_SYNC_TO_VBLANK");
    if (xv_atom != None) {
        XvSetPortAttribute(dpy, xv_port, xv_atom, 1);

My media player does _not_ have the tearing problem, so this is not
a problem with my display drivers.

Can anyone else confirm the tearing problem in the above clip?
"mplayer -vo xv tearing.avi" should show it.


More information about the MPlayer-users mailing list