You are not logged in.

#1 2006-07-13 06:16:37

davalex
Member
Registered: 2006-07-05
Posts: 10

Mplayer and ati

I have a thinkpad with a ATI Technologies Inc M22 [Radeon Mobility M300] graphicscard. The card works fine, but when I try to play video in mplayer with the xv-driver I get this error:

It seems there is no Xvideo support for your video card available.
Run 'xvinfo' to verify its Xv support and read DOCS/HTML/en/video.html#xv!
See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11
Error opening/initializing the selected video_out (-vo) device.

xvinfo gives me this:
[davalex@tuva Musikk]$ xvinfo
X-Video Extension version 2.2
screen #0
no adaptors present

I use the frglx-drivers from ati.
I hope someone can help me with this wink

EDIT:
fglrxinfo show this:
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.2)

So ill guess the drivers arent working right after all... What can be the problem?
-Alex

Offline

#2 2006-07-13 07:27:57

Chman
Member
Registered: 2006-01-31
Posts: 169
Website

Re: Mplayer and ati

Add those two lines to your xorg.conf in Device section :

Section "Device"
    Driver      "fglrx"
    [...]
    Option      "VideoOverlay" "on"
    Option      "OpenGLOverlay" "off"
EndSection

And restart X. Works great for me wink

edit: sorry, didn't read your edit... I was talking about the XV driver and ATI cards.

About your ati problem, did you generate xorg.conf using aticonfig tool ? Is your user in the "video" group ?

Offline

#3 2006-07-13 07:35:32

davalex
Member
Registered: 2006-07-05
Posts: 10

Re: Mplayer and ati

Hi and thanks for your answer.
I do have thouse lines in xorg.conf, my user is in the video group, and the config is generated with the atitool....

Funny problem tongue

Offline

#4 2006-07-13 08:47:07

davalex
Member
Registered: 2006-07-05
Posts: 10

Re: Mplayer and ati

Anyone?

Offline

#5 2006-07-13 10:21:14

jrepan
Member
From: Estonia
Registered: 2006-01-30
Posts: 22

Re: Mplayer and ati

End of xorg.conf must be:
Section "DRI"
    Mode 0666
EndSection

Offline

#6 2006-07-13 10:54:31

davalex
Member
Registered: 2006-07-05
Posts: 10

Re: Mplayer and ati

Still no luck. Ill post my xorg.conf so you guys can see if there is a problem with that file.

Section "ServerLayout"
    Identifier     "Simple Layout"
    Screen      0  "aticonfig-Screen[0]" 0 0
    InputDevice    "Mouse1" "CorePointer"
    InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/75dpi"
    FontPath     "/usr/share/fonts/100dpi"
    FontPath     "/usr/share/fonts/TTF"
EndSection

Section "Module"

    Load  "dbe"      # Double buffer extension
    SubSection "extmod"
        Option        "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load  "freetype"
#    Load        "xtt"
    Load  "dri"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option        "AutoRepeat" "500 30"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "rapidaccess"
    Option        "XkbLayout" "no"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option        "Protocol" "GlidePointPS/2"    # GlidePoint PS/2
    Option        "Device" "/dev/psaux"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "My Monitor"
    HorizSync    31.0 - 83.0
    VertRefresh  56.0 - 75.0
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    BusID      "PCI:0:10:0"
    VideoRam    256
    Clocks    25.2 28.3
    Identifier  "Standard VGA"
    Driver      "vga"
    VendorName  "Unknown"
    BoardName   "Unknown"
EndSection

Section "Device"
        VideoRam    65536
    Identifier  "My Video Card"
    Driver      "flgrx"
    Option "OpenGLOverlay" "off"
    Option "VideoOverlay" "on"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]"
    Driver      "fglrx"
EndSection

Section "Screen"
    Identifier "Screen 1"
    Device     "My Video Card"
    Monitor    "My Monitor"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     8
        Modes    "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
        Modes    "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1400-1050 1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]"
    Device     "aticonfig-Device[0]"
    Monitor    "aticonfig-Monitor[0]"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "DRI"
    Mode 0666
EndSection

Offline

#7 2006-07-13 19:12:14

mille
Member
From: Sweden - Scandinavia
Registered: 2006-07-12
Posts: 11

Re: Mplayer and ati

Driver      "flgrx"

Change that to:
Driver      "fglrx"

Offline

#8 2006-07-14 07:00:47

davalex
Member
Registered: 2006-07-05
Posts: 10

Re: Mplayer and ati

bah, PEBCAK!
But xv is still not working...

Offline

#9 2006-07-18 13:14:58

mille
Member
From: Sweden - Scandinavia
Registered: 2006-07-12
Posts: 11

Re: Mplayer and ati

How is it going davalex, got it working?

Offline

#10 2006-07-18 13:25:43

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Mplayer and ati

Man, your xorg.conf has a few problems - most importantly, the video card section that's being used by the layout does NOT have OpenGLOverlay and VideoOverlay set - notice how there are two video card sections?  The one without all the options is the one being used.

Here's your fixed xorg.conf:

Section "ServerLayout" 
   Identifier     "Simple Layout" 
   Screen      0  "Screen 1" 0 0 
   InputDevice    "Mouse1" "CorePointer" 
   InputDevice    "Keyboard1" "CoreKeyboard" 
EndSection 

Section "Files" 
   RgbPath      "/usr/share/X11/rgb" 
   FontPath     "/usr/share/fonts/misc" 
   FontPath     "/usr/share/fonts/75dpi" 
   FontPath     "/usr/share/fonts/100dpi" 
   FontPath     "/usr/share/fonts/TTF" 
EndSection 

Section "Module" 

   Load  "dbe"     # Double buffer extension 
   SubSection "extmod" 
      Option       "omit xfree86-dga"   # don't initialise the DGA extension 
   EndSubSection 
   Load  "freetype" 
#    Load        "xtt" 
   Load  "dri" 
   Load  "glx" 
EndSection 

Section "InputDevice" 
   Identifier  "Keyboard1" 
   Driver      "kbd" 
   Option       "AutoRepeat" "500 30" 
   Option       "XkbRules" "xorg" 
   Option       "XkbModel" "rapidaccess" 
   Option       "XkbLayout" "no" 
EndSection 

Section "InputDevice" 
   Identifier  "Mouse1" 
   Driver      "mouse" 
   Option       "Protocol" "GlidePointPS/2"   # GlidePoint PS/2 
   Option       "Device" "/dev/psaux" 
   Option       "ZAxisMapping" "4 5 6 7" 
EndSection 

Section "Monitor" 
   Identifier   "My Monitor" 
   HorizSync    31.0 - 83.0 
   VertRefresh  56.0 - 75.0 
   Option       "DPMS" "true" 
EndSection 

Section "Device" 
    BusID      "PCI:0:10:0" 
    VideoRam   256 
    Clocks   25.2 28.3 
    Identifier  "Standard VGA" 
    Driver      "vga" 
    VendorName  "Unknown" 
    BoardName   "Unknown" 
EndSection 

Section "Device" 
        VideoRam    65536 
   Identifier  "My Video Card" 
   Driver      "fglrx" 
   Option "OpenGLOverlay" "off" 
   Option "VideoOverlay" "on" 
EndSection 

Section "Screen" 
   Identifier "Screen 1" 
   Device     "My Video Card" 
   Monitor    "My Monitor" 
   DefaultDepth     24 
   SubSection "Display" 
      Viewport   0 0 
      Depth     8 
      Modes    "1280x1024" "1024x768" "800x600" "640x480" 
   EndSubSection 
   SubSection "Display" 
      Viewport   0 0 
      Depth     16 
      Modes    "1280x1024" "1024x768" "800x600" "640x480" 
   EndSubSection 
   SubSection "Display" 
      Viewport   0 0 
      Depth     24 
      Modes    "1400x1050 1280x1024" "1024x768" "800x600" "640x480" 
   EndSubSection 
EndSection 

Section "DRI" 
   Mode 0666 
EndSection

Offline

Board footer

Powered by FluxBB