Hello ALL,
I have been spending sometime trying to activate HW decompression for playing movies as the default configuration with x11 or gl don't provide good results.
I am using an HTPC server with intel Clarkdale i3 530 proc under lucid kernel 2.6.35-020635-generic using the latest intel drivers available at http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu.
I have followed these requirements:
and installed libdrm and libva with the following commands:
libdrm 2.4.21
wget http://dri.freedesktop.org/libdrm/libdrm-2.4.21.tar.bz2
./configure --enable-i965-driver --prefix=/
make
checkinstall
libva 0.31.1
FYI I was not able to compile the libva package as described in gbeauchesne website with ths following command "dpkg-buildpackage -rfakeroot -uc -us". This is what I have done:
wget http://www.splitted-desktop.com/~gbe...-latest.tar.gz
./configure --enable-i965-driver --prefix=/usr
make
checkinstall
vainfo seems good to me:
Then I compiled mplayer-vaapi-20100713:
wget http://www.splitted-desktop.com/~gbe...latest.tar.bz2
./checkout-patch-build.sh --enable-vaapi --enable-x11 --enable-debug
I also tried with ./configure --enable-vaapi --enable-x11 --enable-debug
Here is the output of mplayer:
Unfortunately I don't know how to debug with gdb etc... but I wanted to first share my experience with you guys in order to see if I missed something.
Also if someone has tested this and can confirm that VaAPI works with i3 proc that would be good too.
Thanks for anyone's help
XabiX
lspci:
Xorg.log:
I have been spending sometime trying to activate HW decompression for playing movies as the default configuration with x11 or gl don't provide good results.
I am using an HTPC server with intel Clarkdale i3 530 proc under lucid kernel 2.6.35-020635-generic using the latest intel drivers available at http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu.
I have followed these requirements:
and installed libdrm and libva with the following commands:
libdrm 2.4.21
wget http://dri.freedesktop.org/libdrm/libdrm-2.4.21.tar.bz2
./configure --enable-i965-driver --prefix=/
make
checkinstall
libva 0.31.1
FYI I was not able to compile the libva package as described in gbeauchesne website with ths following command "dpkg-buildpackage -rfakeroot -uc -us". This is what I have done:
wget http://www.splitted-desktop.com/~gbe...-latest.tar.gz
./configure --enable-i965-driver --prefix=/usr
make
checkinstall
vainfo seems good to me:
Code:
libva: libva version 0.31.1-sds1 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/i965_drv_video.so libva: va_openDriver() returns 0 vainfo: VA API version: 0.31 vainfo: Driver version: i965 Driver 0.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD
wget http://www.splitted-desktop.com/~gbe...latest.tar.bz2
./checkout-patch-build.sh --enable-vaapi --enable-x11 --enable-debug
I also tried with ./configure --enable-vaapi --enable-x11 --enable-debug
Here is the output of mplayer:
Code:
./mplayer -vo vaapi -nosound /media/RAID/Video/Memento\ -\ En\ st\ Fr.avi MPlayer SVN-r31722-4.4.3 (C) 2000-2010 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /media/RAID/Video/Memento - En st Fr.avi. AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 VIDEO: [DIV3] 528x272 24bpp 25.000 fps 744.1 kbps (90.8 kbyte/s) X11 error: BadValue (integer parameter out of range for operation) libva: libva version 0.31.1-sds1 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/va/drivers/i965_drv_video.so libva: va_openDriver() returns 0 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3)) ========================================================================== Audio: no sound Starting playback... Movie-Aspect is undefined - no prescaling applied. VO: [vaapi] 528x272 => 528x272 Planar YV12 MPlayer interrupted by signal 11 in module: filter_video - MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash. - MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and won't help unless you provide this information when reporting a possible bug.
Also if someone has tested this and can confirm that VaAPI works with i3 proc that would be good too.
Thanks for anyone's help
XabiX
lspci:
Code:
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) Subsystem: Giga-byte Technology Device d000 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 46 Region 0: Memory at fb400000 (64-bit, non-prefetchable) [size=4M] Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at ff00 [size=8] Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+ Address: fee0a00c Data: 41a1 Capabilities: [d0] Power Management version 2 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [a4] PCIe advanced features <?> Kernel driver in use: i915 Kernel modules: i915
Code:
X.Org X Server 1.7.6 Release Date: 2010-03-17 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.24-27-server x86_64 Ubuntu Current Operating System: Linux xabix-desktop 2.6.35-020635-generic #020635 SMP Mon Aug 2 09:08:21 UTC 2010 x86_64 Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.35-020635-generic root=UUID=0785fb3c-6674-41e4-a48e-73c3a8c7ed25 ro quiet splash Build Date: 16 June 2010 09:34:29AM xorg-server 2:1.7.6-2ubuntu7.2 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.16.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 16 09:40:51 2010 (==) Using config file: "/etc/X11/xorg.conf" (==) Using config directory: "/usr/lib/X11/xorg.conf.d" (==) ServerLayout "Default Layout" (**) |-->Screen "TV" (0) (**) | |-->Monitor "TSB-TV" (**) | |-->Device "Intel HD Graphics" (==) Automatically adding devices (==) Automatically enabling devices (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. Entry deleted from font path. (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/100dpi/:unscaled, /usr/share/fonts/X11/75dpi/:unscaled, /usr/share/fonts/X11/Type1, /usr/share/fonts/X11/100dpi, /usr/share/fonts/X11/75dpi, /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, built-ins (==) ModulePath set to "/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules" (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. (II) Loader magic: 0x7ca300 (II) Module ABI versions: X.Org ANSI C Emulation: 0.4 X.Org Video Driver: 6.0 X.Org XInput driver : 7.0 X.Org Server Extension : 2.0 (++) using VT number 7 (--) PCI:*(0:0:2:0) 8086:0042:1458:d000 Intel Corporation Core Processor Integrated Graphics Controller rev 18, Mem @ 0xfb400000/4194304, 0xe0000000/268435456, I/O @ 0x0000ff00/8 (--) PCI: (0:4:0:0) 14f1:8852:d470:9022 Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder rev 2, Mem @ 0xfb800000/2097152 (II) Open ACPI successful (/var/run/acpid.socket) (II) LoadModule: "extmod" (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so (II) Module extmod: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.0.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension MIT-SCREEN-SAVER (II) Loading extension XFree86-VidModeExtension (II) Loading extension XFree86-DGA (II) Loading extension DPMS (II) Loading extension XVideo (II) Loading extension XVideo-MotionCompensation (II) Loading extension X-Resource (II) LoadModule: "dbe" (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so (II) Module dbe: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.0.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension DOUBLE-BUFFER (II) LoadModule: "glx" (II) Loading /usr/lib/xorg/modules/extensions/libglx.so (II) Module glx: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.0.0 ABI class: X.Org Server Extension, version 2.0 (==) AIGLX enabled (II) Loading extension GLX (II) LoadModule: "record" (II) Loading /usr/lib/xorg/modules/extensions/librecord.so (II) Module record: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.13.0 Module class: X.Org Server Extension ABI class: X.Org Server Extension, version 2.0 (II) Loading extension RECORD (II) LoadModule: "dri" (II) Loading /usr/lib/xorg/modules/extensions/libdri.so (II) Module dri: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.0.0 ABI class: X.Org Server Extension, version 2.0 (II) Loading extension XFree86-DRI (II) LoadModule: "dri2" (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so (II) Module dri2: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.1.0 ABI class: X.Org Server Extension, version 2.0 (II) Loading extension DRI2 (II) LoadModule: "intel" (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so (II) Module intel: vendor="X.Org Foundation" compiled for 1.7.6, module version = 2.11.0 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 6.0 (II) intel: Driver for Intel Integrated Graphics Chipsets: i810, i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale (II) Primary Device is: PCI 00@00:02:0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 9, (OK) drmOpenByBusid: Searching for BusID pci:0000:00:02.0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 9, (OK) drmOpenByBusid: drmOpenMinor returns 9 drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 (**) intel(0): Depth 24, (--) framebuffer bpp 32 (==) intel(0): RGB weight 888 (==) intel(0): Default visual is TrueColor (II) intel(0): Integrated Graphics Chipset: Intel(R) Clarkdale (--) intel(0): Chipset: "Clarkdale" (==) intel(0): video overlay key set to 0x101fe (II) intel(0): Output VGA1 using monitor section TSB-TV (**) intel(0): Option "PreferredMode" "1280x720_50" (**) intel(0): Option "Enable" "true" (II) intel(0): Output HDMI1 has no monitor section (II) intel(0): Output DP1 has no monitor section (II) intel(0): Output HDMI2 using monitor section TSB-TV (II) intel(0): Output HDMI3 has no monitor section (II) intel(0): Output DP2 has no monitor section (II) intel(0): Output DP3 has no monitor section (II) intel(0): EDID for output VGA1 (II) intel(0): EDID for output HDMI1 (II) intel(0): EDID for output DP1 (II) intel(0): EDID for output HDMI2 (II) intel(0): Manufacturer: TSB Model: 103 Serial#: 0 (II) intel(0): Year: 2006 Week: 0 (II) intel(0): EDID Version: 1.3 (II) intel(0): Digital Display Input (II) intel(0): Max Image Size [cm]: horiz.: 196 vert.: 142 (II) intel(0): Gamma: 1.00 (II) intel(0): No DPMS capabilities specified (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 (II) intel(0): Default color space is primary color space (II) intel(0): First detailed timing is preferred mode (II) intel(0): redX: 0.640 redY: 0.330 greenX: 0.300 greenY: 0.600 (II) intel(0): blueX: 0.150 blueY: 0.060 whiteX: 0.312 whiteY: 0.329 (II) intel(0): Manufacturer's mask: 0 (II) intel(0): Supported detailed timing: (II) intel(0): clock: 74.2 MHz Image Size: 708 x 398 mm (II) intel(0): h_active: 1920 h_sync: 2448 h_sync_end 2492 h_blank_end 2640 h_border: 0 (II) intel(0): v_active: 540 v_sync: 542 v_sync_end 547 v_blanking: 562 v_border: 0 (II) intel(0): Supported detailed timing: (II) intel(0): clock: 74.2 MHz Image Size: 708 x 398 mm (II) intel(0): h_active: 1280 h_sync: 1720 h_sync_end 1760 h_blank_end 1980 h_border: 0 (II) intel(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0 (II) intel(0): Monitor name: TSB-TV (II) intel(0): Ranges: V min: 49 V max: 61 Hz, H min: 15 H max: 46 kHz, PixClock max 80 MHz (II) intel(0): Number of EDID sections to follow: 1 (II) intel(0): EDID (in hex): (II) intel(0): 00ffffffffffff005262030100000000 (II) intel(0): 0010010380c48e000eee91a3544c9926 (II) intel(0): 0f505400000001010101010101010101 (II) intel(0): 010101010101011d80d0721c1620102c (II) intel(0): 2580c48e2100009e011d00bc52d01e20 (II) intel(0): b8285540c48e2100001e000000fc0054 (II) intel(0): 53422d54560a202020202020000000fd (II) intel(0): 00313d0f2e08000a20202020202001b1 (II) intel(0): Not using mode "1920x1080i" (interlace mode not supported) (II) intel(0): Not using mode "1920x1080i_28.00" (interlace mode not supported) (II) intel(0): Printing probed modes for output HDMI2 (II) intel(0): Modeline "1280x720_50.0"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz) (II) intel(0): Modeline "1280x720"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz) (II) intel(0): Modeline "720x576"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz) (II) intel(0): EDID for output HDMI3 (II) intel(0): EDID for output DP2 (II) intel(0): EDID for output DP3 (II) intel(0): Output VGA1 enabled by config file (II) intel(0): Output HDMI1 disconnected (II) intel(0): Output DP1 disconnected (II) intel(0): Output HDMI2 enabled by config file (II) intel(0): Output HDMI3 disconnected (II) intel(0): Output DP2 disconnected (II) intel(0): Output DP3 disconnected (II) intel(0): Using sloppy heuristic for initial modes (EE) intel(0): Output VGA1 enabled but has no modes (II) intel(0): Output HDMI2 using initial mode 1280x720_50.0 (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated. (II) intel(0): Kernel page flipping support detected, enabling (==) intel(0): DPI set to (96, 96) (II) Loading sub module "fb" (II) LoadModule: "fb" (II) Loading /usr/lib/xorg/modules/libfb.so (II) Module fb: vendor="X.Org Foundation" compiled for 1.7.6, module version = 1.0.0 ABI class: X.Org ANSI C Emulation, version 0.4 (==) Depth 24 pixmap format is 32 bpp (II) intel(0): [DRI2] Setup complete (**) intel(0): Tiling enabled (**) intel(0): SwapBuffers wait enabled (==) intel(0): VideoRam: 262144 KB (II) intel(0): Attempting memory allocation with tiled buffers. (II) intel(0): Tiled allocation successful. (II) UXA(0): Driver registered support for the following operations: (II) solid (II) copy (II) composite (RENDER acceleration) (II) put_image (==) intel(0): Backing store disabled (==) intel(0): Silken mouse enabled (II) intel(0): Initializing HW Cursor (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message. (==) intel(0): DPMS enabled (==) intel(0): Intel XvMC decoder enabled (II) intel(0): Set up textured video (II) intel(0): [XvMC] xvmc_vld driver initialized. (II) intel(0): direct rendering: DRI2 Enabled (WW) intel(0): Option "ForceSDVODetect" is not used (WW) intel(0): Option "ConnectedMonitor" is not used (WW) intel(0): Option "CustomEDID" is not used (WW) intel(0): Option "Enable" is not used (WW) intel(0): Option "PreferredMode" is not used (--) RandR disabled (II) Initializing built-in extension Generic Event Extension (II) Initializing built-in extension SHAPE (II) Initializing built-in extension MIT-SHM (II) Initializing built-in extension XInputExtension (II) Initializing built-in extension XTEST (II) Initializing built-in extension BIG-REQUESTS (II) Initializing built-in extension SYNC (II) Initializing built-in extension XKEYBOARD (II) Initializing built-in extension XC-MISC (II) Initializing built-in extension SECURITY (II) Initializing built-in extension XINERAMA (II) Initializing built-in extension XFIXES (II) Initializing built-in extension RENDER (II) Initializing built-in extension RANDR (II) Initializing built-in extension COMPOSITE (II) Initializing built-in extension DAMAGE (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) AIGLX: enabled GLX_SGI_make_current_read (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects (II) AIGLX: Loaded and initialized /usr/lib/dri/i965_dri.so (II) GLX: Initialized DRI2 GL provider for screen 0 (II) intel(0): Setting screen physical size to 338 x 190 (II) XKB: reuse xkmfile /var/lib/xkb/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm (II) config/udev: Adding input device Power Button (/dev/input/event1) (**) Power Button: Applying InputClass "evdev keyboard catchall" (II) LoadModule: "evdev" (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so (II) Module evdev: vendor="X.Org Foundation" compiled for 1.7.6, module version = 2.3.2 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 7.0 (**) Option "xkb_rules" "evdev" (**) Option "xkb_model" "evdev" (**) Option "xkb_layout" "fr" (**) Option "xkb_rules" "evdev" (**) Option "xkb_model" "evdev" (**) Option "xkb_layout" "fr" (II) intel(0): EDID vendor "TSB", prod id 259 (II) intel(0): Using hsync ranges from config file (II) intel(0): Using vrefresh ranges from config file (II) intel(0): Printing DDC gathered Modelines: (II) intel(0): Modeline "1920x540"x0.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz) (II) intel(0): Modeline "1280x720"x0.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz) (II) intel(0): EDID vendor "TSB", prod id 259
Comment