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 - 2016-02-15

As he had the issue with 4.3 before I am not so sure, but worth a try.


RE: New Era: VAAPI with EGL interoperation - scf2k - 2016-02-16

fritsch I have a couple of apple pro res videos with very high bitrate (4.5 and 9.2GB for less than 4 minutes files). And they are unwatchable with kodi. I've tried to play from internal ssd and tweaked buffer settings. Wanna take a look? Smile


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

Debug Log or it never happened
mediainfo or I am not interested


RE: New Era: VAAPI with EGL interoperation - noggin - 2016-02-16

(2016-02-16, 00:01)scf2k Wrote: fritsch I have a couple of apple pro res videos with very high bitrate (4.5 and 9.2GB for less than 4 minutes files). And they are unwatchable with kodi. I've tried to play from internal ssd and tweaked buffer settings. Wanna take a look? Smile

Are they 8 or 10 bit? Are they 4:2:2 ? Are they interlaced ?

ProRes will rely entirely on CPU for decoding (there isn't a VAAPI ProRes implementation), though not sure if VAAPI rendering will deinterlace.

Kodi isn't really optimised for intra-frame codecs (though ffmpeg does support them - though often ffmbc does a slightly better job IME) - so ProRes, DNX HD, DVC Pro HD, AVCi 100 and other broadcast intra codecs (and in fact broadcast inter-frame Long(er) GOP codecs like H264 4:2:2 and MPEG2 4:2:2) are CPU decode only and the rendering probably isn't ideal either?

As fritsch said - content information and a log are required to really advise. I usually stick to broadcast software for broadcast codec stuff though. (It would be lovely to be able to watch my ProRes 4:2:2 HQ stuff in Kodi - but I can live without it...)


RE: New Era: VAAPI with EGL interoperation - grantonstar - 2016-02-16

(2016-02-15, 21:03)fritsch Wrote: As he had the issue with 4.3 before I am not so sure, but worth a try.

Should I try to go back to an older pre-4.3 Kernel? I've filed at bug at bugs.freedesktopp.org.

I tried with my old HTPC box, a Gigabyte Brix also using Intel HD graphics (but old, HD2000) using the same HDMI cable and that also works fine.

I rebooted and accessed the BIOS on my old TV then connected it to the new TV. I can see the BIOS but again only if I connect to the old TV first. There is nothing relevant there about video settings anyhow (only to use onboard graphics or PCI but I have no PCI).

I've checked the television manual There aren't specific settings for connecting to a PC. There is a PC mode for each HDMI input but that seems to only adjust a few picture settings and everything else displays fine.

[update] I purchased a DVI to HDMI adaptor and tried through my DVI port on the HTPC. Exactly the same issue as through HDMI.

Next steps:
1. My HDMI cables are 1.4 I guess. Would it be worth trying a HDMI 2.0 cable?
2. Drastic but would purchasing a graphics card such as something from nVidia and trying to connect through it possibly help (even when I can't see the BIOS screen)?

This one has me totally baffled. I keep thinking its at a hardware level somewhere otherwise the BIOS and grub screens should display but then I'm no expert on any of this.


RE: New Era: VAAPI with EGL interoperation - scf2k - 2016-02-16

(2016-02-16, 00:02)fritsch Wrote: mediainfo or I am not interested

(2016-02-16, 00:56)noggin Wrote: Are they 8 or 10 bit? Are they 4:2:2 ? Are they interlaced ?

ProRes will rely entirely on CPU for decoding (there isn't a VAAPI ProRes implementation), though not sure if VAAPI rendering will deinterlace.

one http://pastebin.com/HiUiFi1r
two http://pastebin.com/VwqqzEYi
three http://pastebin.com/zecZ9s6Z

log http://pastebin.com/ssa629c4


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

Apple Quicktime ProRes ...


RE: New Era: VAAPI with EGL interoperation - scf2k - 2016-02-16

(2016-02-16, 09:14)fritsch Wrote: Apple Quicktime ProRes ...

Should I go to the monastery after this sentence? Smile


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

No hw acceleration, it is CPU decoded ...


RE: New Era: VAAPI with EGL interoperation - Jorgensen - 2016-02-16

Hi,

I am having problems with DTS-HD movies. Lots of skipping. I have watched 2 minutes and every time I saw a skip, I pushed the left Ctrl to mark the skip I saw. I am using pass through, by the way. Find logs below.

Code:
kodi@NUC:~/.kodi/temp$ cat kodi.log | pastebinit
http://paste.ubuntu.com/15089614/
cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/15089578/
dmesg | pastebinit
http://paste.ubuntu.com/15089579/
DISPLAY=:0 vainfo | pastebinit
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/15089580/
id | pastebinit
http://paste.ubuntu.com/15089581/
aplay -L | pastebinit
http://paste.ubuntu.com/15089582/



RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

Can you downgrade to a version before the 11th of February? It seems you have the very same issue as I got reported on other platforms.

Edit: If you watch again and check via a terminal with "top" then pressing "H" - do you see which Thread spikes and causes those issues?

Quote:09:01:33 T:139830127376448 DEBUG: OnKey: ctrl-leftctrl (0x1f0d0) pressed, action is

Are you pressing something?

EDIT: LOL, sorry - yes I did not read your message. Yes, I thought that those presses produce it :-) so now it's clear, thx - yes player does "hurry" at these positions.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

What you also can try of course: Change Scaling to Bilinear for that file, I think it's too heavy perhaps to do the lanczos3 downscaling for this 4k file. In your codec screen: you see a lot of skips, right?


RE: New Era: VAAPI with EGL interoperation - scf2k - 2016-02-16

(2016-02-16, 10:05)fritsch Wrote: No hw acceleration, it is CPU decoded ...

If I turn on info overlay it doesn't show high cpu usage. It looks more like a buffering problem.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2016-02-16

No Debug Log no issue ...


RE: New Era: VAAPI with EGL interoperation - scf2k - 2016-02-16

Hey! I posted it several posts ago with media info logs Smile