Kodi Community Forum
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - 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: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955)



RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-08

That's a lot of a difference isn't it? See the description on the first page - I thought I made it clear.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-08

(2015-09-08, 21:07)rbej Wrote: Yes.

But on Windows this 4096 24 fps files is playing ok. 50 and 60 fps files on Windows is playing like shit.


https://github.com/popcornmix/xbmc/commit/78f90689af3095e3ef8fb334bfecf8772b55d84b#commitcomment-13121809 <- let's find it out after fernet picked it.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-09

As we talked about the "hybrid codecs" yesterdays: http://cgit.freedesktop.org/vaapi/intel-driver/commit/?id=2d42512bd6b7382c5effe21a5f9999742d98db88 - if we are lucky this is exactly what will happen for VP9 which would in theory allow HEVC the same way for < BSW.

Yeah that is how it will work: http://cgit.freedesktop.org/vaapi/intel-driver/commit/?id=3bbaff8b4180d2510c8c77d9e4d19bf84853f31a

When enabled the driver searches for *_drv_video.so" in LIBVA_DRIVER_PATH and will load the relevant binary blob to use its wrapper functionality. Therefore I think intel will start to ship binary modules to support to support additional codecs. I did not yet find where to download those, but that obviously looks like that the intel driver will be extended with additional functionality only available as blobs. We will see what that means.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-09

The answer from Haihao of intel was fast:

https://github.com/01org/intel-hybrid-driver <- VP9 decoding and VP8 encoding support for
Quote:HSW: Haswell
BYT: Bay-Trail-M
BDW: Broadwell
BSW: Braswell

No (!) HEVC decoder planned for older hw, yet.

Edit: Only VP8 encoding. Thanks for -DDD- pointing that out.


RE: New Era: VAAPI with EGL interoperation - -DDD- - 2015-09-09

Encoding only for VP8 i think, not for VP9?!


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-09

Yeah - you are right, thanks. It was too early :-)


RE: New Era: VAAPI with EGL interoperation - sunnyfunny - 2015-09-09

(2015-09-08, 22:15)fritsch Wrote: That's a lot of a difference isn't it? See the description on the first page - I thought I made it clear.

My fault.... doesn't read all Sad


RE: New Era: VAAPI with EGL interoperation - Klojum - 2015-09-09

(2015-09-09, 11:51)sunnyfunny Wrote: Office: NUC5i3RYH, 8GB RAM, Samsung SSD 2400GB, Windows 10 Pro x64
a 2400GB SSD? Big Grin
I want !


RE: New Era: VAAPI with EGL interoperation - onizuka - 2015-09-09

(2015-09-09, 07:28)fritsch Wrote: The answer from Haihao of intel was fast:

https://github.com/01org/intel-hybrid-driver <- VP9 decoding and VP8 encoding support for
Quote:HSW: Haswell
BYT: Bay-Trail-M
BDW: Broadwell
BSW: Braswell

No (!) HEVC decoder planned for older hw, yet.

Edit: Only VP8 encoding. Thanks for -DDD- pointing that out.

For us dim witted folks.....does this mean that VP8 and VP9 hybrid decoding may soon be possible? And thus the concept of "no f'ing way" would Intel support hybrid decoding in Linux is sort of no longer the case? i.e. Maybe they will support it, at least VP9, which is HEVC's ugly cousin?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-09

VP9 support will come - to the driver. That does not mean kodi will be able to use it. Someone needs again stepup and implement the ffmpeg hwaccel ...
History: Chrome OS (I don't need to say more I think ;-)) but if you are intel and want to sell hw for chromeos, you need to support google's primary codec, hehe.


RE: New Era: VAAPI with EGL interoperation - rbej - 2015-09-09

I tested Windows version of Kodi 16 (dxva2). Almost identical results like your Vaapi OpenElec 06/09 version.

Sintel and Tears 4096 24p visual drops in this same places (MPC-HC + Lav Filters playing this file without visual drops.)

30fps,50fps,60fps playing ok, but your vappi version playing more smooth than Windows version.

Vaapi > Dxva2


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-10

Some new images:

http://fritsch.fruehberger.net/openelec/

Changelog:
- ffmpeg 2.8 stable
- libva-driver-intel 1.6.1
- libva 1.6.1
- fernetmenta's current master as of this morning.

There are no changes concerning the 4096 24p samples, but investigation is still running. If the error is also on windows, this might very well be an ffmpeg issue. Though the windows version only has ffmpeg 2.7.2 (I just updated kodi's upstream ffmpeg version), so please retry with next nightly build.

Source: https://github.com/fritsch/OpenELEC.tv/commits/jarvis-egl (now buildable, my provider gave me \infty traffic)


RE: New Era: VAAPI with EGL interoperation - rbej - 2015-09-10

Lav filters used modifed/tuned version of ffmpeg and playing 4096 24p files perfect. Maybe solution is here:

http://git.1f0.de/gitweb?p=ffmpeg.git;a=summary


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-10

I pinged Phillip of ffmpeg, who did the VDPAU-HEVC accel and asked him if he sees this issue, too - then we will see.


RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-10

(2015-09-10, 09:18)fritsch Wrote: Some new images:

http://fritsch.fruehberger.net/openelec/

Changelog:
- ffmpeg 2.8 stable
- libva-driver-intel 1.6.1
- libva 1.6.1
- fernetmenta's current master as of this morning.

There are no changes concerning the 4096 24p samples, but investigation is still running. If the error is also on windows, this might very well be an ffmpeg issue. Though the windows version only has ffmpeg 2.7.2 (I just updated kodi's upstream ffmpeg version), so please retry with next nightly build.

Source: https://github.com/fritsch/OpenELEC.tv/commits/jarvis-egl (now buildable, my provider gave me \infty traffic)

thanks! but doesn't work with genesis on my fully loaded android box.

just kidding, runs smooth as silk on my haswell so far.