Kodi Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU (/showthread.php?tid=86581)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


- tiberian - 2011-01-29

Hey,

after upgrading the kernel to the current ubuntu 10.10 server kernel (2.6.35-25-server) I have no sound over HDMI (was configured using an .asoundrc) and the vaapi playback is stuttering and lacking again.
Do I have to recompile xbmc for every new kernel?? This does not make sense to me?!
Kernel 2.6.35-24-server is working fine!

Any Ideas?


- alanwww1 - 2011-01-29

tiberian Wrote:Hey,

after upgrading the kernel to the current ubuntu 10.10 server kernel (2.6.35-25-server) I have no sound over HDMI (was configured using an .asoundrc) and the vaapi playback is stuttering and lacking again.
Do I have to recompile xbmc for every new kernel?? This does not make sense to me?!
Kernel 2.6.35-24-server is working fine!

Any Ideas?

You might have the fresh kernel modules overwritten with the ones in the stockkernel. Try to run a ppa purge on the xorg.edgers and reupdate the system again reenabling xorg edgers. With ubuntu 11.04 final you won't have this problem.


- tiberian - 2011-01-29

alanwww1 Wrote:You might have the fresh kernel modules overwritten with the ones in the stockkernel. Try to run a ppa purge on the xorg.edgers and reupdate the system again reenabling xorg edgers. With ubuntu 11.04 final you won't have this problem.

Thanks! I'll give it a try!


- tiberian - 2011-01-29

unfortunately purging and reinstalling the xorg-edgers ppa did not solve the problem Sad
So I went back to kernel 2.6.35-24 and locked this version. Never touch a running system Wink


- Krautmaster - 2011-02-01

ok, what i've done is...

10.04 minimal x64
kernel update newest 2.6.38 next intel..
installed Lars XBMC Dharma pvr
build newest 35744 xbmc+pvr and patched it with the first patch
generated a deb file and manually installed it... override all xbmc files in /usr...

seems to be the new version now because vdpau is missing and vaapi is availiable and works

but via VGA on my full HD TFT it stutters a lot like always , damn...

What could be the problem?

Thanks!!


I think i have to try it with 10.10 x64 minimal


- alanwww1 - 2011-02-01

Krautmaster Wrote:ok, what i've done is...
10.04 minimal x64
kernel update newest 2.6.38 next intel..
installed Lars XBMC Dharma pvrl

Not sure if the PVR ppa is not conflicting with the newset libva on the xorg edgers ppa. I suggest using only one ppa (Xorg edgers) and have xbmc installed via manual compile using the patches i made.


- sandos - 2011-02-01

Are the patches up-to-date? I saw something about moved files in Git. Would be awesome if they were kept in a git repo.


- alanwww1 - 2011-02-01

sandos Wrote:Are the patches up-to-date? I saw something about moved files in Git. Would be awesome if they were kept in a git repo.

I can't reach Elupus. Maybe he is on Holiday. If he comes back, the anti-stutter patch will surely be commited to trunk (if he also find it ok)

About the refresh rate patch, it is not 100% safely working as it is always destroying the Videoreference clock thread, even if it is not started before (eg. normal resolution change without video playback). I already talked to Bobo1on1 how to make this working safely and correctly. It might can result a better refresh rate change process. As soon as i get the time to make this new version it will also be commited to trunk.

Once they get into trunk, they will go into the various branches like PVR.


- tiberian - 2011-02-04

alanwww1 Wrote:About the refresh rate patch, it is not 100% safely working as it is always destroying the Videoreference clock thread, even if it is not started before (eg. normal resolution change without video playback). I already talked to Bobo1on1 how to make this working safely and correctly. It might can result a better refresh rate change process. As soon as i get the time to make this new version it will also be commited to trunk.
Is there any way I can help on this? I observed huge lacks on syncing an 1080p movie with the refresh-fix. But I am not sure how to debug/log this. Blush


- GTMoraes - 2011-02-05

Hello there, I'm having an issue.
I own a Acer Aspire 1410-2287 netbook (or subnotebook, as you wish). This pretty much underpowered machine is able to play 1080p movies easily and through HDMI with only 30% CPU usage.
Despite the fact that its processor is a slowpoke Celeron ULV 743 1.2GHz, the GMA 4500MHD does the trick with movies, photoshop and even not-cpu-intensive games for 3+ hours

...But that on Windows.
I'm having some issues to make it work properly to decode H264 movies. I've followed all your instructions and installed the latest video drivers from that intel linux something website (BTW, Without updating the graphic first, installing the i965-va-driver renders a blank screen at Logon. Solved with a full reinstall :/ )

Check this out:
Code:
gtmoraes@GTM-Aspire1410:~/xf86-video-intel-2.11.0/mplayer-vaapi-20110127/mplayer-vaapi$ mplayer -vo vaapi -va vaapi /home/gtmoraes/Downloads/bird.mkv
MPlayer SVN-r32819-4.4.5 (C) 2000-2011 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 /home/gtmoraes/Downloads/bird.mkv.
libavformat file format detected.
[matroska,webm @ 0xa885070] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
VIDEO:  [H264]  1920x1072  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in /home/gtmoraes/Downloads/
libva: libva version 0.31.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is 1.79:1 - prescaling to correct movie aspect.
VO: [vaapi] 1920x1072 => 1920x1072 H.264 VA-API Acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
mplayer: i965_avc_ildb.c:621: i965_avc_ildb_decode_init: Assertion `avc_ildb_context->urb.cs_start + avc_ildb_context->urb.num_cs_entries * avc_ildb_context->urb.size_cs_entry <= (((&i965->intel)->device_id == 0x0102 || (&i965->intel)->device_id == 0x0112 || (&i965->intel)->device_id == 0x0122 || (&i965->intel)->device_id == 0x0106 || (&i965->intel)->device_id == 0x0116 || (&i965->intel)->device_id == 0x0126 || (&i965->intel)->device_id == 0x010A) ? 1024 : (((&i965->intel)->device_id == 0x0042) || ((&i965->intel)->device_id == 0x0046)) ? 1024 : (((&i965->intel)->device_id == 0x2E02 || (&i965->intel)->device_id == 0x2E12 || (&i965->intel)->device_id == 0x2E22 || (&i965->intel)->device_id == 0x2E32) || ((&i965->intel)->device_id == 0x2A42)) ? 384 : 256)' failed.


MPlayer interrupted by signal 6 in module: decode video
- 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.

"bird.mkv" is small test sample. You can get it from here:
Code:
http://www.megaupload.com/?d=2PWGGE7M
Runs well on Windows 7's Media Player Classic Home Cinema. DXVA Enabled.

Also, my vainfo:
Code:
gtmoraes@GTM-Aspire1410:~/xf86-video-intel-2.11.0/mplayer-vaapi-20110127/mplayer-vaapi$ vainfo
libva: libva version 0.31.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/local/lib/dri/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
      VAProfileH264Baseline           :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
Looks OK from here.

I really really want to get rid of Windows, but I watch alot of hd movies with people on their HDTVs, and windows is the only that can render HD ATM. I don't use this netbook for games anymore and all my working tools have a Linux counterpart. Also, the battery on this netbook lasts forever on Ubuntu (5 hours on battery by now, 20% left, and on Windows I've only managed to get 3,5 hours.)

Oh, I'm using Ubuntu 10.10 with 2.6.35-25-generic Kernel. Latest Intel graphic drivers. Hope you guys can help me. I'm really looking forward fixing this

P.S.: I'm a linux newb and a windows pro. take it easy on me, I want to learn it Sad
I'm brazillian by the way, sorry for the crappy english


- alanwww1 - 2011-02-05

@GTMorares

and all of you guys having G45 hardware.

t turns out that G45 has not yet got h264 and vc1 support yet. Vainfo just wrongly detects that. With a changeset for vaapi 0.32 now vainfo properly detects the existence of support:

http://cgit.freedesktop.org/libva/commit/?id=daa6c5671af3d76087da3d30f5d8197a6669210d

So G45 has only got mpeg2 at the moment, but as i read from the code it is under work:

" XXX: drop IS_IRONLAKE(ctx) check once G4X support is available "

The good news is that on SandyBridge from this commit we do have VC1 decoding support for progressive content:

http://cgit.freedesktop.org/libva/commit/?id=b9c7e24fd79979d7226b0c864c189658dc5c8b8f

So the current standing is:
G45: MPEG2 only
Ironlake (first gen Intel HD graphics) MPEG2, H264
Sandy Bridge (2nd gen Intel HD graphics 2000 3000) MPEG2, H264, VC1 (progressive)


- GTMoraes - 2011-02-06

Oh man, this does suck..
Having a rather good hardware and not being able to use it at its best.. feels like I'm losing something.
Anyway, I still have Win7 here and it is able to use DXVA, I'm not in a rush.

Is there any site that I can check the current progress of the G45 under ubuntu?

Thanks Smile


- alanwww1 - 2011-02-07

GTMoraes Wrote:Is there any site that I can check the current progress of the G45 under ubuntu?

Here: http://intellinuxgraphics.org/


- GTMoraes - 2011-02-07

Meh, now I don't put much faith on this, they've got their eyes on the Sandy Bridge..

BTW, Is that site actually related to Intel?


- alanwww1 - 2011-02-07

GTMoraes Wrote:Meh, now I don't put much faith on this, they've got their eyes on the Sandy Bridge..

BTW, Is that site actually related to Intel?

Not sure. Surely some relation exists.