Results 1 to 10 of 48

Thread: mplayer vaapi, upto date howto?

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Beans
    36

    mplayer vaapi, upto date howto?

    Hi,

    im looking for a howto that helps me compiling or installing mplayer-vaapi.
    ive found some sites so far:

    http://www.splitted-desktop.com/~gbe...mplayer-vaapi/
    build script is outdated, needs update

    http://art.ubuntuforums.org/showthread.php?p=6630583
    post #224, dates back to january (poulsbo-driver-2d and 3d didnt seem to exist back then)

    https://launchpad.net/~fitpc2/+archive/ppa
    you cant even post bugs there, very nice.
    ive mailed the maintainer of the mplayer-vaapi package with my mplayer start error (compilation worked)
    apparently they tried to build mplayer-vaapi for lpia which didnt work and no other arch. if i read the arch information corretly.


    the best part of it is that today after all my mplayer experiments (dont worry, only used aptitude to install things) started to say that -vo blaxyz is not supported. it starts with -vo x11 now, but without fullscreen support. and i dont have a clue why

    so whats the latest in mplayer-vaapi, how did you get it working?


    greets

  2. #2
    Join Date
    Mar 2009
    Beans
    36

    Re: mplayer vaapi, upto date howto?

    compiling the mplayer-svn shapshot from 2009-08-08 with this patch http://www.splitted-desktop.com/~gbe...latest.tar.bz2
    results in:

    Code:
    cc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb -I/usr/include/  -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT    -I/usr/include/freetype2 -I/usr/include     -c -o allcodecs.o allcodecs.c
    allcodecs.c: In function 'avcodec_register_all':
    allcodecs.c:57: error: 'CONFIG_H263_VAAPI_HWACCEL' undeclared (first use in this function)
    allcodecs.c:57: error: (Each undeclared identifier is reported only once
    allcodecs.c:57: error: for each function it appears in.)
    allcodecs.c:58: error: 'CONFIG_H264_VAAPI_HWACCEL' undeclared (first use in this function)
    allcodecs.c:59: error: 'CONFIG_MPEG2_VAAPI_HWACCEL' undeclared (first use in this function)
    allcodecs.c:60: error: 'CONFIG_MPEG4_VAAPI_HWACCEL' undeclared (first use in this function)
    allcodecs.c:61: error: 'CONFIG_VC1_VAAPI_HWACCEL' undeclared (first use in this function)
    allcodecs.c:62: error: 'CONFIG_WMV3_VAAPI_HWACCEL' undeclared (first use in this function)
    make[1]: *** [allcodecs.o] Error 1
    make[1]: Leaving directory `/home/julius/mplayer-vaapi-20090616/mplayer-checkout-2009-08-08/libavcodec'
    make: *** [libavcodec/libavcodec.a] Fehler 2

  3. #3
    Join Date
    Mar 2009
    Beans
    36

    Re: mplayer vaapi, upto date howto?

    Found an uptodate patch in the minimyth repository, the mplayer svn version they use copiles fine with it but starting it with:

    mplayer -vo vaapi -va vaapi somefile.mkv

    results in:

    Code:
    [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
    [mkv] Track ID 2: audio (A_DTS) "German DTS 754kbps", -aid 0, -alang ger
    [mkv] Track ID 3: audio (A_DTS) "English DTS 1509kbps", -aid 1, -alang eng
    [mkv] Track ID 4: subtitles (S_TEXT/UTF8) "German", -sid 0, -slang ger
    [mkv] Will play video track 1.
    Matroska file format detected.
    VIDEO:  [avc1]  1920x816  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
    libva: libva version 0.30.4-sds2
    mplayer: dri1_util.c:110: isDRI1Connected: Assertion `dri_state->fd >= 0' failed.
    
    
    MPlayer interrupted by signal 6 in module: preinit_libvo
    - MPlayer crashed. This shouldn't happen.

  4. #4
    Join Date
    Nov 2007
    Beans
    46
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: mplayer vaapi, upto date howto?

    metalfan_
    Did you ever get this working? I am very close but have some video corruption on playback. I get a black bar about 1/5 from the bottom of the screen that goes about half way across the screen. This happens with VC-1 and h264 video (haven't tried others) Here is what I am using:

    I have a Kohjinsha SC3 with Atom z520 Proc and Poulsbo (GMA500) Graphics
    Code:
    dothedog@Kohji-SC3:~$ uname -a
    Linux Kohji-SC3 2.6.28-14-lpia #47-Ubuntu SMP Fri Jul 24 22:10:52 UTC 2009 i686 GNU/Linux
    Using ubuntu-mobile ppa for:
    Code:
    xserver-xorg-video-psb - X.Org X server -- Intel Poulsbo (2D)
    psb-modules - Kernel module built for -generic or -lpia kernel
    psb-firmware - Binary firmware for the Poulsbo (psb) 3D X11 driver
    psb-kernel-source - Kernel module for the Poulsbo (psb) 2D X11 driver
    psb-kernel-headers - Kernel module headers for the Poulsbo (psb) 2D X11 driver
    xpsb-glx - X11 drivers for Poulsbo (psb) 3D acceleration
    poulsbo-driver-3d - Metapackage for the 3D Poulsbo (psb) X11 driver.
    poulsbo-driver-2d - Metapackage for the 2D Poulsbo (psb) X11 driver.
    Libva is from http://www.splitted-desktop.com/~gbeauchesne/libva/
    I am using version
    libva1_0.29-2+sds12_lpia.deb
    libva-dev_0.29-2+sds12_lpia.deb

    libva1_0.29-2+sds12_lpia.deb loaded just fine. However the -dev package needed to get the libdrm dependency fixed (Changed depends line in Control file from libdrm-dev to libdrm-poulsbo-dev) Also, the 0.30 versions had dependency conflicts with libdrm so I had to fall back to the 0.29 version.

    I also needed to do a
    Code:
    sudo ln -s /usr/X11R6/lib/modules/dri/psb_drv_video.so /usr/lib/va/drivers/psb_drv_video.so
    to get libva working.

    here is the output from vainfo:
    Code:
    dothedog@Kohji-SC3:~$ vainfo
    libva: va_DRI_GetDriverName: 0.1.0 psb (screen 0)
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/va/drivers/psb_drv_video.so
    libva: va_DRI_GetDriverName: 0.1.0 psb (screen 0)
    libva: va_openDriver() returns 0
    vainfo: VA API version: 0.29
    vainfo: Driver version: Intel GMA500 - 5.0.1.0046
    for mplayer-vaapi I used the latest from here: http://www.splitted-desktop.com/~gbe...090804.tar.bz2

    Make sure you have all the dependencies (e.g. svn) then do a
    Code:
    ./checkout-patch-build.sh
    It takes a while but mplayer-vaapi should build. Then play with
    ./mplayer -vo vaapi -va vaapi filename

    Let me know if you get the black bar or if this is something that is peculiar to my setup.

    DoTheDog

  5. #5
    Join Date
    Jun 2006
    Location
    Parma, Italy
    Beans
    679
    Distro
    Kubuntu

    Re: mplayer vaapi, upto date howto?

    I used libva 0.31.0-1+sds4, following the instructions at http://www.splitted-desktop.com/~gbeauchesne/libva/, ignoring the depends from the karmic libva1 and libva-dev, only installing the depends the dpkg-buildpackage asked for. I also had to build mplayer with "--extra-cflags=-fno-strict-aliasing" passed to configure, to work around gcc 4.4.1 problems. Anyway, I see no acceleration at all, trying to play the 720p trailer for "The usual suspects" on my Asus 1101HA running karmic. Dragon player or kaffeine do a better job of playing this file.

  6. #6
    Join Date
    Nov 2007
    Beans
    46
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: mplayer vaapi, upto date howto?

    jbernardo,
    I had libva libva-dev and mplayer-vaapi all configured/compiled on Karmic, acceleration was working but mplayer would crash randomly after a minute or two of playback (different places e.g. decode audio, decode video, etc.) I used the .debs from splitted-desktop for libva (used latest) and compiled mplayer-vaapi with the script there. Even tried the latest sds8 I believe and it didn't help. I am now dropping back to Jaunty as it did work there. If you have any success please post here.

    Dothedog
    Last edited by dothedog; November 21st, 2009 at 06:41 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •