Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40

Thread: Finally, Intel G45 VA-API Support Is Available

  1. #11
    Join Date
    Dec 2009
    Posts
    3

    Default

    Quote Originally Posted by Sadako View Post
    I had the exact same problem, and though I'm not a programmer I took a quick look at i965_media.c line 348, and it looks like they forgot the one function call to actually have the new code used...

    This little patch got the vaapi_h264 test working for me;
    Code:
    --- i965_drv_video/i965_media.c.orig	2011-05-17 19:59:00.126115745 +0100
    +++ i965_drv_video/i965_media.c	2011-05-17 20:00:51.048731380 +0100
    @@ -341,6 +341,9 @@
         case VAProfileH264Baseline:
         case VAProfileH264Main:
         case VAProfileH264High:
    +        i965_media_h264_dec_context_init(ctx, media_context);
    +        break;
    +
         case VAProfileVC1Simple:
         case VAProfileVC1Main:
         case VAProfileVC1Advanced:
    Now to find an mplayer ebuild with vaapi support...
    It looks like this was updated before I made my install, and I still get the very same error.

  2. #12
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    992

    Default

    Quote Originally Posted by Sadako View Post
    Now to find an mplayer ebuild with vaapi support...
    That's the easy part...
    http://gpo.zugaina.org/media-video/mplayer

  3. #13
    Join Date
    Aug 2007
    Posts
    6,673

    Default

    I added that patch to the q45-h264 branch, but it takes ages to see a decoded frame. It decodes something but it looks like it runs with slowmotion... I tested it with q45 and mplayer vaapi if that matters, not sure if it can decode it or not.

  4. #14
    Join Date
    Oct 2007
    Location
    Under the bridge
    Posts
    2,153

    Default

    Quote Originally Posted by Kano View Post
    I added that patch to the q45-h264 branch, but it takes ages to see a decoded frame. It decodes something but it looks like it runs with slowmotion... I tested it with q45 and mplayer vaapi if that matters, not sure if it can decode it or not.
    Well, it's a start. At least your system didn't hang.

  5. #15
    Join Date
    May 2011
    Posts
    1

    Default

    I got all this running with mplayer-vaapi (using the patch posted on page 1), but it's extremely slow, like maybe 0.5fps. I tried a variety of different H.264 videos in various resolutions, containers, etc and all produced the same results.

    MPEG2 acceleration seems to work a bit better, but higher bitrate videos don't maintain audio sync for even a few seconds.

    Overall, VA-API on my hardware (glxinfo reports a Mobile Intel® GM45 Express Chipset) appears to be a step back in terms of performance for both H.264 and MPEG2. I've yet to find a single file that plays back better with it than without.

    This is on Fedora 15 with the stock kernel (2.6.38.6-27) and Intel driver (2.15.0-3). I wonder if it would work better with a newer driver and/or kernel.

  6. #16

    Default Reason for slowness-- single threaded?

    I notice that the check-in comment says that it is single-threaded, and that there is something called the sw_scoreboard that is disabled.

    It seems that the sw_scoreboard is to coordinate multiple threads (the values seem to be 23 or 64) to work together to decode frames. This sw_scoreboard_vfe is set to 1 instead for this checkin.

    Maybe once they figure out the sw-scoreboard, the patch will be faster, but until then, at least this check-in lets developers test their applications on G45 hardware.

  7. #17
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    176

    Default

    It is just me or this is heavily obfuscated code? 90% of lines are just hex values...

  8. #18
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    992

    Default

    Is there any news?

  9. #19
    Join Date
    Aug 2007
    Posts
    6,673

    Default

    I am sure you can look yourself at

    http://cgit.freedesktop.org/libva/

  10. #20
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    992

    Default



    (character limit)

Tags for this Thread

Posting Permissions

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