Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Matrox G400 avi/mpeg playback = 100% CPU usage ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Fri Sep 22, 2006 2:32 am    Post subject: [SOLVED] Matrox G400 avi/mpeg playback = 100% CPU usage ? Reply with quote

I'm missing something realy big here.

I've installed gnome 2.14.2 on Athlon Thunderbird 950Mhz, VIA KT-133 board, 256MB SDRAM and Matrox G400.

When I boot Knoppix and play some full-screen video everything works fine, so hardware is OK.

If I try to do that in Gentoo using Totem, I'm getting slide-show and 100% CPU usage.
Even if I play some video in small screen, CPU usage is very very high.

tvtime won't start, too.
Code:
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/tnt/.tvtime/tvtime.xml
Xlib:  extension "XVideo" missing on display ":0.0".
xvoutput: XVIDEO extension not found: X too old? didn't load extmod?


mplayer gives me
"Error opening/initializing the selected video_out (-vo) device."
no matter which video out device I select (xv, x11, mga, xmga)

What USE flag, kernel option, xorg.conf option or driver do I miss?

I've followed instructions here:
http://www.gentoo.org/doc/en/dri-howto.xml
I'm using x11 provided mga driver and not the one in kernel (although I've tried kernel one, too).

Code:
lsmod
Module                  Size  Used by
mga                    58432  2
drm                    61144  3 mga
via_agp                 7360  1
agpgart                22448  2 drm,via_agp


Code:
emerge -pv x11-drm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-base/x11-drm-20060608  VIDEO_CARDS="mga -i810 -mach64 -nv -r128 -radeon -savage -sis (-sunffb) -tdfx -via" 0 kB

Total size of downloads: 0 kB


Code:
emerge -pv xine-lib totem mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/xine-lib-1.1.2-r2  USE="X a52 aac aalib alsa asf dvd gnome imagemagick mad nls opengl oss samba sdl vorbis win32codecs xv xvmc (-altivec) -arts -debug -directfb -dts -dxr3 -esd -fbcon -flac -ipv6 -libcaca -mng -modplug -speex -theora -v4l -vcd -vidix -xinerama" VIDEO_CARDS="-i810 -nvidia -via" 0 kB

[ebuild   R   ] media-video/totem-1.4.2-r1  USE="a52 dbus dvd firefox gnome mad mpeg nsplugin ogg vorbis xine xv -debug -flac -lirc -nvtv -theora" 0 kB

[ebuild   R   ] media-video/mplayer-1.0_pre8-r1  USE="3dnow 3dnowext X aac aalib alsa amr dga dv dvd encode gif gtk jpeg mad matrox mmx mmxext opengl oss png real rtc samba sdl truetype unicode vorbis win32codecs xv xvid xvmc -3dfx (-altivec) -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -directfb -doc -dts -dvb -dvdread -enca -esd -fbcon -ggi -iconv -ipv6 -jack -joystick -libcaca -lirc -live -livecd -lzo -musepack -nas -openal -speex -sse -sse2 -svga -tga -theora -v4l -v4l2 -x264 -xanim -xinerama -xmms" 800 kB

Total size of downloads: 800 kB


kernel configuration:
Code:
  │ │                                     [ ] Non-standard serial port support                                                                        │ │
  │ │                                         Serial drivers  --->                                                                                    │ │
  │ │                                     [*] Legacy (BSD) PTY support                                                                                │ │
  │ │                                     (256) Maximum number of legacy PTY in use                                                                   │ │
  │ │                                         IPMI  --->                                                                                              │ │
  │ │                                         Watchdog Cards  --->                                                                                    │ │
  │ │                                     < > Intel/AMD/VIA HW Random Number Generator support                                                        │ │
  │ │                                     <*> /dev/nvram support                                                                                      │ │
  │ │                                     <*> Enhanced Real Time Clock Support                                                                        │ │
  │ │                                     < > Double Talk PC internal speech card support                                                             │ │
  │ │                                     < > Siemens R3964 line discipline                                                                           │ │
  │ │                                     < > Applicom intelligent fieldbus card support                                                              │ │
  │ │                                     < > Sony Vaio Programmable I/O Control Device support (EXPERIMENTAL)                                        │ │
  │ │                                         Ftape, the floppy tape device driver  --->                                                              │ │
  │ │                                     <M> /dev/agpgart (AGP Support)                                                                              │ │
  │ │                                     < >   ALI chipset support                                                                                   │ │
  │ │                                     < >   ATI chipset support                                                                                   │ │
  │ │                                     < >   AMD Irongate, 761, and 762 chipset support                                                            │ │
  │ │                                     < >   AMD Opteron/Athlon64 on-CPU GART support                                                              │ │
  │ │                                     < >   Intel 440LX/BX/GX, I8xx and E7x05 chipset support                                                     │ │
  │ │                                     < >   NVIDIA nForce/nForce2 chipset support                                                                 │ │
  │ │                                     < >   SiS chipset support                                                                                   │ │
  │ │                                     < >   Serverworks LE/HE chipset support                                                                     │ │
  │ │                                     <M>   VIA chipset support                                                                                   │ │
  │ │                                     < >   Transmeta Efficeon support                                                                            │ │
  │ │                                     < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)                                         │ │
  │ │                                     < > ACP Modem (Mwave) support                                                                               │ │
  │ │                                     < > AMD CS5535/CS5536 GPIO (Geode Companion Device)                                                         │ │
  │ │                                     < > RAW driver (/dev/raw/rawN) (OBSOLETE)                                                                   │ │
  │ │                                     [ ] HPET - High Precision Event Timer                                                                       │ │
  │ │                                     < > Hangcheck timer                                                                                         │ │
  │ │                                         TPM devices  --->                                                                                       │ │
  │ │                                     < > Telecom clock driver for MPBL0010 ATCA SBC


xorg.conf:
Code:
Section "Module"
    Load        "dbe"
    Load        "freetype"
    Load       "glx"
    Load       "dri"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/75dpi"
    FontPath   "/usr/share/fonts/100dpi"
    FontPath   "/usr/share/fonts/Type1"
EndSection

Section "ServerFlags"
EndSection

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

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"   "4 5 6 7"
EndSection

Section "Monitor"
    Identifier  "Flatron"
    HorizSync   31.5 - 64.3
    VertRefresh 50-75
EndSection

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "Matrox"
    Driver      "mga"
    Option      "AGPMode" "4"
    Option      "AGPFastWrite" "True"
    VideoRam    32768
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Matrox"
    Monitor     "Flatron"
    DefaultDepth 24

    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

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

Section "dri"
    Mode 0666
EndSection



Does anyone see what do I miss for normal video playback? :roll:
_________________
gentoo user


Last edited by tnt on Mon Sep 25, 2006 11:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Mon Sep 25, 2006 11:48 pm    Post subject: Reply with quote

in my /etc/X11/xorg.conf

Code:
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection


was commented (as by default).
uncommenting did the magic.

now I have playable videos although in windowed view (not full screen view) I have some artifacts in the right part of the screen...
_________________
gentoo user
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum