[mythtv-users] XvMC and opengl problems

Mike stuff at dustsmoke.com
Tue Feb 7 09:02:34 UTC 2006


I seem to be having a problem enabling XvMC... It works, but at really 
high cpu load where as normal CPU load is low when it is off. I compiled 
with the latest nvidia drivers and tried with or without the use of 
twinview.
./configure --enable-xvmc --enable-opengl-vsync --enable-dvb

Something about this doesn't seem quite right. vsync seems to be dying 
for some reason and I think that is the reason XvMC takes up so much 
CPU. Also, why does it try XvMC 3 times? Is that normal? Anybody have 
any idea's as to what I'm doing wrong?

-Mike

===================================================================================
Using XvMC version: 1.0
2006-02-07 01:50:02.019 XvMCSurfaceTypes::find(w 480, h 480, chroma 1, 
vld 1, idct 0, mpeg2, sub-width 0, sub-height 0, disp, p<= 222, 2220 
<=p, port, surfNum)
2006-02-07 01:50:02.019 Trying XvMC port 222
2006-02-07 01:50:02.019 XvMCSurfaceTypes::find(w 480, h 480, chroma 1, 
vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 222, 2220 
<=p, port, surfNum)
2006-02-07 01:50:02.020 Trying XvMC port 222
2006-02-07 01:50:02.020 XvMCSurfaceTypes::find(w 480, h 480, chroma 1, 
vld 0, idct 0, mpeg2, sub-width 0, sub-height 0, disp, p<= 222, 2220 
<=p, port, surfNum)
2006-02-07 01:50:02.020 Trying XvMC port 222
2006-02-07 01:50:02.020 Found a suitable XvMC surface 0
XvMC found and using MC surface
2006-02-07 01:50:02.020 Using XV port 222
2006-02-07 01:50:02.063 Image size. dispxoff 0, dispyoff: 0, dispwoff: 
728, disphoff: 548
2006-02-07 01:50:02.063 Image size. imgx 10, imgy: 10, imgw: 461, imgh: 461
2006-02-07 01:50:02.582 The realtime priority setting is not enabled.
2006-02-07 01:50:02.586 XvMC will use bob deinterlacing
2006-02-07 01:50:02.586 Using deinterlace method bobdeint
2006-02-07 01:50:02.617 Changing from None to WatchingLiveTV
2006-02-07 01:50:02.689 nVidiaVideoSync: VBlank ioctl did not work, 
unimplemented in this driver?
2006-02-07 01:50:02.689 DRMVideoSync: Could not open device 
/dev/dri/card0, No such file or directory
2006-02-07 01:50:02.689 RTCVideoSync: Could not set RTC frequency, 
Permission denied.
2006-02-07 01:50:02.690 Set video sync frame interval to 33366
2006-02-07 01:50:02.690 Using audio as timebase
2006-02-07 01:50:02.690 Video timing method: USleep with busy wait
2006-02-07 01:50:02.690 Refresh rate: 16579, frame interval: 33366
===================================================================================

XF86Config-4
===================================================================================
Section "ServerLayout"
    Identifier     "Default Layout"
    #Screen         "Default Screen" 0 0
    Screen         "TV Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Files"
                        # local font server
        # if the local font server has problems, we can fall back on these
    FontPath        "unix/:7100"
    FontPath        "/usr/lib/X11/fonts/misc"
    FontPath        "/usr/lib/X11/fonts/cyrillic"
    FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/Type1"
    FontPath        "/usr/lib/X11/fonts/CID"
    FontPath        "/usr/lib/X11/fonts/Speedo"
    FontPath        "/usr/lib/X11/fonts/100dpi"
    FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
    Load           "bitmap"
    Load           "dbe"
    Load           "ddc"
    #Load          "dri"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "int10"
    Load           "record"
    Load           "speedo"
    Load           "type1"
    Load           "vbe"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xfree86"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "Emulate3Buttons" "true"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
    HorizSync       28.0 - 38.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "TV Monitor"
    HorizSync      30-50
    VertRefresh    60
    Option         "DPMS"
    Option         "TVStandard" "NTSC-M"
    Option         "TVOutFormat" "SVIDEO"
    Option         "TVOverScan" "0.1"
EndSection

Section "Device"
    Identifier     "Generic Video Card"
    Driver         "nvidia"
    #Option         "TwinView"
    #Option         "SecondMonitorHorizSync" "30-50"
    #Option         "SecondMonitorVertRefresh" "60"
    #Option         "MetaModes" "800x600, 800x600; 640x480, 640x480;"
    #Option         "TVOutFormat" "SVIDEO"
    #Option         "TVStandard" "NTSC-M"
    #Option         "ConnectedMonitor" "TV,CRT-1"
    #Option         "TwinViewOrientation" "Clone"
    #Option         "XvMCUseTextures" "False"
    #Option         "TVOverScan" "0.1"
    #Option         "AllowGLXWithComposite" "True"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Generic Video Card"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    Option         "TwinView"
    Option         "SecondMonitorHorizSync" "30-50"
    Option         "SecondMonitorVertRefresh" "60"
    Option         "MetaModes" "800x600, 800x600; 640x480, 640x480;"
    Option         "TVOutFormat" "SVIDEO"
    Option         "TVStandard" "NTSC-M"
    Option         "ConnectedMonitor" "TV,CRT-1"
    Option         "TwinViewOrientation" "Clone"
    #Option         "XvMCUseTextures" "False"
    Option         "TVOverScan" "0.1"
    SubSection     "Display"
        Depth       1
        Modes      "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier    "TV Screen"
    Device        "Generic Video Card"
    Monitor       "TV Monitor"
    DefaultDepth  24
    SubSection    "Display"
        Depth     24
        Modes     "800x600" "640x480"
    EndSubSection
EndSection
===================================================================================




More information about the mythtv-users mailing list