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 - scf2k - 2015-11-18

lusephur thanks!


RE: New Era: VAAPI with EGL interoperation - slag - 2015-11-19

(2015-11-17, 23:43)fritsch Wrote: New build is up.

Fernet is currently rewriting the handling of RAW audio - so if you are a passthrough user - check for regressions :-)

When you say this, if we have an existing setup that is working, do we just have to redo this part or is there more
to it?

sudo apt-add-repository ppa:wsnipex/vaapi
sudo apt-add-repository ppa:wsnipex/xbmc-fernetmenta-master
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install kodi kodi-bin


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-19

I don't know what you consider "working" ...


RE: New Era: VAAPI with EGL interoperation - slag - 2015-11-19

(2015-11-19, 18:28)fritsch Wrote: I don't know what you consider "working" ...

You have created enhancements that might benefit me, the user. What do I need to do in order to incorporate these enhancements into my existing (working) configuration? I typically follow the "if its not broken don't fix it" method, but if you've improved things for people like me who use passthrough, then I'd like to try this out.

I set up an Intel NUC with Braswell chip earlier this month using the first post at that time. I now see you have posted a "new" build. New usually means better or that bugs have been fixed. So without being a Linux guru, my question is how do I incorporate your new build into my existing (working but always room for improvement) configuration?

Thanks in advance.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-19

If you follow the howto a simple:
Code:
sudo apt-get update
sudo apt-get dist-upgrade

is enough :-) When I talk of "new packages" I talk about OpenELEC master builds with fernet's latest code. This code is package by wsnipex for the ppa that you installed. If you are a ppa user -> just use the above commands for update and all is fine.


RE: New Era: VAAPI with EGL interoperation - ggp759 - 2015-11-20

Forgive my ignorance but is VAAPI with EGL interoperation possible on nvidia shield right now? Are there any builds for it? Thanks alot.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-20

No - it is intel / linux only.

For the shield: Use the upcoming v16 nightlies. Koying has implemented zero copy rendering there, too. It is "as fast as it gets" for Android there currently.


RE: New Era: VAAPI with EGL interoperation - sijones2010 - 2015-11-21

Only thing i've noticed with this build (coming from 15.2), when i start live TV it plays for a few seconds then will pause and show the buffering message and buffer to 100% before carrying on. The TV is really smooth and this is only a minor issue. I have tried putting in minbuffer setting in the advancedsettings.xml but that makes no difference.

I also can not see a trigger point for it, sometimes it won't do a full buffer and sometimes it chooses to do it! Am guessing you'll want a log but wanted to see if anyone else has noticed this?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-21

No Debug Log no issue


RE: New Era: VAAPI with EGL interoperation - sijones2010 - 2015-11-21

Hi fritsch,

debug log for you http://pastebin.com/9vTgAf7Y


New Era: VAAPI with EGL interoperation - teki4u - 2015-11-22

Hello! I own an Asus Chromebox (2gb ram/16gb ssd/Haswel) with latest coreboot firmware, fresh installed this a week ago (Ubuntu server version not OE), followed instructions to the letter including the settings and I've been updating since then plus upgraded to kernel 4.3 mainline as advised. Using NFS.

Problem I have ( which reminds me an old annoying bug) is that the box FREEZES while browsing kodi, then Box gets totally unresponsive and is not accessible thru ssh, have to force reboot most of the times.
I've had random FREEZES while browsing kodi menus, while playing back a video in the background then browsing menus and once while being opened without been in use for long time.

No freezes while watching videos though (without touching it), at list not yet. Videos play fine without drops and skips, tested SD and HD.

Also sometimes when the box restart eather manually or automatic after freezing it boots to black screen (I've seen kernel panic error too).
Same happened when trying to install Ubuntu server 15.10 with default 4.2 kernel and the workaround was to boot with acpi=off, install, upgrade to 4.3 and then turn acpi=on? (Not sure about acpi=on or just remove the acpi flag), so it might be related and i don't know how to debug that.

Question how do I know when box is doing software decoding? In some SD videos for example I notice more cpu usage I guess that's one way to tell.

Hope the logs are correct and it shows the issue.

MESA: http://paste.ubuntu.com/13421013/
VAINFO: http://paste.ubuntu.com/13421100/
DEBUG LOG: http://paste.ubuntu.com/13421334/ (from kodi.old.log)
DMESG: http://paste.ubuntu.com/13421375/

I took a small video, will post link once uploaded to YouTube.
Edit: https://youtu.be/nDtqrPLxuP8

T.I.A


RE: New Era: VAAPI with EGL interoperation - noggin - 2015-11-22

If you hit 'o' during playback it should tell you which codec is being used for video replay. From memory if it's VAAPI it's hardware decoding, if it's something else (like an ffmpeg or similar) then I think it's software


RE: New Era: VAAPI with EGL interoperation - teki4u - 2015-11-22

I always use 'o' to check for drops, skips and other info just not sure when is sw/hw decoding in this case.
I've seen ffmpeg VAAPI so what about that one.
Hmmm maybe all that show VAAPI in dc: is hw decoded and there rest is sw?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-22

(2015-11-22, 01:21)Veronica Wrote: Hello! I own an Asus Chromebox (2gb ram/16gb ssd/Haswel) with latest coreboot firmware, fresh installed this a week ago (Ubuntu server version not OE), followed instructions to the letter including the settings and I've been updating since then plus upgraded to kernel 4.3 mainline as advised. Using NFS.

Problem I have ( which reminds me an old annoying bug) is that the box FREEZES while browsing kodi, then Box gets totally unresponsive and is not accessible thru ssh, have to force reboot most of the times.
I've had random FREEZES while browsing kodi menus, while playing back a video in the background then browsing menus and once while being opened without been in use for long time.

No freezes while watching videos though (without touching it), at list not yet. Videos play fine without drops and skips, tested SD and HD.

Also sometimes when the box restart eather manually or automatic after freezing it boots to black screen (I've seen kernel panic error too).
Same happened when trying to install Ubuntu server 15.10 with default 4.2 kernel and the workaround was to boot with acpi=off, install, upgrade to 4.3 and then turn acpi=on? (Not sure about acpi=on or just remove the acpi flag), so it might be related and i don't know how to debug that.

Question how do I know when box is doing software decoding? In some SD videos for example I notice more cpu usage I guess that's one way to tell.

Hope the logs are correct and it shows the issue.

MESA: http://paste.ubuntu.com/13421013/
VAINFO: http://paste.ubuntu.com/13421100/
DEBUG LOG: http://paste.ubuntu.com/13421334/ (from kodi.old.log)
DMESG: http://paste.ubuntu.com/13421375/

I took a small video, will post link once uploaded to YouTube.
Edit: https://youtu.be/nDtqrPLxuP8

T.I.A

In your dmesg there I see a kodi segfault at the end - please also upload the crashlog which is in your home directory. Check temperatures, also do a complete memory test (!) of the box via memtest86+. Concerning sw decoding: If you press "o" - hw decoded always has "-vaapi" in the dc line, e.g. dc: ff-h264-vaapi


RE: New Era: VAAPI with EGL interoperation - a5ian300zx - 2015-11-22

Hi,

I have extractly the same issue as Veronica on my Haswell nuc have tried both javis and isengarde builds but same issue.

I will try and get log file up when I get chance.

Haswell nuc has latest Bios, 16gb ram, 120gb msata drive.

The only thing I noticed was it was reporting the hdd 100% used which is incorrect?

Thanks