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

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Jun 14 18:38:05 CEST 2008


On Saturday, 14 June 2008 at 12:04, Haakon Riiser wrote:
> 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.

If you use a real video overlay (NV05 Video Blitter) instead of
emulated one (NV17 Video Texture) then there's no tearing.
Check xvinfo to find out which port to use.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-users mailing list