You are not logged in.

#1 2008-10-05 18:25:25

danvari
Member
Registered: 2007-08-14
Posts: 44

VSync (mplayer) & Composite

hey!
i have got an old problem since gentoo. i am using archlinux now but the problem still exists: it seems to be that vsync is not activated when i run xcompmgr. i have that horizontal flickering when playing movies. there is no problem when running mplayer without xcompmgr. here is my xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/lib/X11/rgb"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
 Option         "XkbLayout" "de"
 Option         "XkbVariant" "nodeadkeys"
 Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
  Option "NoLogo" "True"
  Option "RenderAccel" "True"
  Option "ConnectedMonitor" "DFP"
  Option "TripleBuffer" "True"
  Option "BackingStore" "True"
  Option "DamageEvents" "True"
  Option         "OnDemandVBlankInterrupts" "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

vsync is activated in nvidia-settings. same behavior when using VLC and opengl output. can somebody confirm that? i hope you can help me smile

Offline

#2 2008-10-16 21:24:11

puzzled
Member
Registered: 2008-10-05
Posts: 9

Re: VSync (mplayer) & Composite

I have the exact same problem. The only diference is that i have been having that bug since Ubuntu, Now i am on arch using xmonad, but still the problem persists even with diferent video cards. Every time xcompmgr is on i get horizontal flickering when playing movies, and there is no problem otherwise.

Here it is my xorg.conf :

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Wed Oct  1 15:09:35 PDT 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules" "xorg"
    Option         "XkbLayout" "pt"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
#    Option         "ConnectedMonitor" "CRT"
#    Option         "AllowGLXWithComposite" "True"
    Option         "RenderAccel" "True"
    Option         "AddARGBGLXVisuals" "True"
    Option        "NoLogo" "True"
    Option         "TripleBuffer" "True"
    Option         "BackingStore" "True"
    Option         "OnDemandVBlankInterrupts" "True"
    Option         "AllowSHMPixmaps" "0"
    Option         "AIGLX" "true"

    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Any ideias are apreciated.

Offline

#3 2008-12-13 18:18:17

simao
Member
Registered: 2008-10-25
Posts: 9

Re: VSync (mplayer) & Composite

I am also having this problem.

Here's my xorg.conf

Section "Module"
    Load    "freetype"
    Load    "synaptics"
EndSection

Section "Files"
#    RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
EndSection


Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "SHMConfig"             "on"
        Option          "HorizScrollDelta"      "0"
    Option        "VertTwoFingerScroll"    "1"
EndSection

Section "Device"
    Identifier    "Intel Corporation G"
    Driver        "intel"                    # xf86-video-i810 Package
    BusID        "PCI:0:2:0"                # Reported by lspci
    Screen        0
    Option        "NoDDC" "true"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Intel Corporation G"
    Monitor        "LCD Monitor"
    
EndSection

Section "Monitor"
    Identifier    "LCD Monitor"
#    DisplaySize    336 201
    Option   "DPI" "96 x 96"
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice   "Synaptics Touchpad"
EndSection

Offline

#4 2010-04-21 22:52:07

Fraterius
Member
Registered: 2008-12-03
Posts: 18

Re: VSync (mplayer) & Composite

Anyone has any solution for this, I have very same problem as described above.

Offline

#5 2010-05-28 20:31:37

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 98

Re: VSync (mplayer) & Composite

sorry mate... X doesn't support vsync yet... You can still try to use gl2 as mplayer -vo and manually set the refresh rate of your monitor to seamlessly solve the problem when playing videos, but you are never going to get a "real" vsync :-(

Offline

#6 2010-05-29 01:10:48

snakebite
Member
From: Norway
Registered: 2009-05-13
Posts: 32

Re: VSync (mplayer) & Composite

I've been having this problem too with nvidia, explicitly disabling composite in xorg.conf along with setting the correct xv sync device via nvidia-settings works for me, or simply using VDPAU (if your card supports it).

Offline

#7 2010-05-29 08:31:28

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,221

Re: VSync (mplayer) & Composite

xcompmgr causes tearing, but i've got rid of them with other composite managers, like compiz or kwin.
If your card supports it (xvinfo to check), then set mplayer to use the overlay adaptor, that should 99% fix any tearing issue.

Offline

Board footer

Powered by FluxBB