nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Video tearing on second monitor using TwinView (http://www.nvnews.net/vbulletin/showthread.php?t=147933)

swagger01 02-17-10 12:06 AM

Video tearing on second monitor using TwinView
 
Hi,

Video tearing is occurring on my second monitor when I am using TwinView, which is very distracting.

Driver Version: 195.30
Distribution: Ubuntu 9.10

Please fix this NVIDIA as fast as possible since its very distracting for me.

drhirsch 02-17-10 02:42 AM

Re: Video tearing on second monitor using TwinView
 
I doubt that this is technically possible. The GL can only sync to one monitor.

AaronP 02-17-10 03:00 AM

Re: Video tearing on second monitor using TwinView
 
Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.

rtcm 02-17-10 08:14 AM

Re: Video tearing on second monitor using TwinView
 
Quote:

Originally Posted by AaronP (Post 2190295)
Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.

I wonder, couldn't you implement this so that the video display surface would automatically sync to the monitor where it is contained? If it is contained on more than one monitor then ditch it and don't sync at all.

I think that would be easy enough to implement and it would Just Work without the user having to know about environment variables (which can only be set before the media player app starts...).

Regarding VDPAU, why doesn't it just use the XVideoSyncToDisplay driver setting in the first place? Ofcourse, VDPAU isn't XV thus that setting should probably be renamed but...

swagger01 02-17-10 09:14 AM

Re: Video tearing on second monitor using TwinView
 
Quote:

Originally Posted by AaronP (Post 2190295)
Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.

I am not a hacker, can you please explain what you mean by "try the environment variable"

I have also noticed that I am getting tearing when I playback video on my main monitor. I have set the XVideo Settings to "Sync to Vblank" and selected my main monitor to sync and also selected "Xv output" in Mplayer and still get tearing.

Stephen Warren 02-17-10 10:11 AM

Re: Video tearing on second monitor using TwinView
 
If you use the overlay-based presentation queue, you will not have tearing on any display, and no need to configure anything. See the VDPAU section in the README for details on when the overlay- vs. blit-based presentation queue is used.

If you use the blit-based presentation queue, you may need to set an environment variable before you run your video player application, to tell VDPAU which display device to sync to:

export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=DFP-0

(replace "DFP-0" with the correct display name).

If you start your video player from a shell/command-line/terminal, simply execute that command first. If you start your video player from a script, you'll need that command in the script before starting your video player. If you start your video player using a GUI menu etc., things are more complicated; perhaps you can set that environment variable in your "x session" file.

rtcm 02-17-10 10:11 AM

Re: Video tearing on second monitor using TwinView
 
Quote:

Originally Posted by swagger01 (Post 2190376)
I am not a hacker, can you please explain what you mean by "try the environment variable"

Try
Code:

VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=CRT-1 mplayer media_file
changing CRT-1 to whatever is the connector where you want to sync.

Quote:

I have also noticed that I am getting tearing when I playback video on my main monitor. I have set the XVideo Settings to "Sync to Vblank" and selected my main monitor to sync and also selected "Xv output" in Mplayer and still get tearing.
You must set the connector where you want XV to sync on nvidia-settings and the make sure your mplayer is using the XV output like
Code:

mplayer -vo xv media_file

mocharhw 02-17-10 05:42 PM

Re: Video tearing on second monitor using TwinView
 
Does it matter if you put double quotes around the device in the env statement, like ="CRT-1" instead of =CRT-1? I've seen this both ways in various documents and forum posts.

AaronP 02-17-10 07:28 PM

Re: Video tearing on second monitor using TwinView
 
No. The quotes just prevent the shell from evaluating things like * and ~ as special characters but for something simple like DFP-1, it doesn't matter.

swagger01 02-18-10 01:10 PM

Re: Video tearing on second monitor using TwinView
 
Let me reiterate that I am NOT a hacker but Ive tried my best to do all the solutions here and they STILL do not work !!

Every video player I have tried STILL the same thing, lots of tearing !!

I have set Xv to be my output in Smplayer, I have set my main monitor "DFP-0" to sync in "X Server Xvideo settings" I have also checked "Sync to Vblank" ... everything does NOT work !!

Please provide a meaningful solution, I have even reverted back to the stable 190.53 drivers and it still exhibits the same problem.

AaronP 02-18-10 02:55 PM

Re: Video tearing on second monitor using TwinView
 
Are you running a composite manager such as Compiz?

swagger01 02-18-10 10:03 PM

Re: Video tearing on second monitor using TwinView
 
Yes I am running Compiz, there is a large majority of Linux users who use Compiz.

I never got any tearing when I ran a single monitor, this only happened when I activated TwinView.


All times are GMT -5. The time now is 02:13 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.