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-27

I just tested turning off the TV completely and compared xrandr --verbose before and after the switch and after switching it on again.

Full Range is kept.


RE: New Era: VAAPI with EGL interoperation - gurabli - 2015-09-27

(2015-09-27, 18:56)fritsch Wrote: I just tested turning off the TV completely and compared xrandr --verbose before and after the switch and after switching it on again.

Full Range is kept.

Thanks Fritsch. I don't know what can it be then. I also see xrandr --verbose that after turning tv back it is still full range. But the picture in Kodi is bad. Please tell me what steps to do and which and when to get logs that you can see and check what is happening.


RE: New Era: VAAPI with EGL interoperation - gurabli - 2015-09-27

(2015-09-27, 16:54)fritsch Wrote: This is fixed in for example: http://fritsch.fruehberger.net/openelec/linux-headers-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb / http://fritsch.fruehberger.net/openelec/linux-image-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb which I am running on my BSW.

Which linux-headers-all deb file to use with the two kernel files you linked?


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

Upgrade the kernel as said. Then revisit. Then use your iphone and make a picture - so we can see. Furthermore provide DISPLAY=:0 xrandr --verbose | pastebinit

Now continue with the kernel. Reboot, reproduce, come back.


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

mkdir lala
cd lala
wget http://fritsch.fruehberger.net/openelec/linux-headers-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
wget http://fritsch.fruehberger.net/openelec/linux-image-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
sudo dpkg -i *4.2.0*deb

If you end up without network, check /sys/class/net/ if the device name has changed and change it accordingly in /etc/network/interfaces .... as you run a server this should be peanuts for you.


RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-27

(2015-09-27, 19:04)fritsch Wrote: mkdir lala
cd lala
wget http://fritsch.fruehberger.net/openelec/linux-headers-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
wget http://fritsch.fruehberger.net/openelec/linux-image-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
sudo dpkg -i *4.2.0*deb

If you end up without network, check /sys/class/net/ if the device name has changed and change it accordingly in /etc/network/interfaces .... as you run a server this should be peanuts for you.

In my case after upgrading to this kernel my network device changed name from p1p1 to eth0. So probably best thing to do before reboot is to add additional lines to /etc/network/interfaces. And as nothing is wrong with multiple configurations best is to have options for both names. In my configuration it looks like this in /etc/network/interfaces:


auto lo
iface lo inet loopback
auto p1p1
iface p1p1 inet dhcp
auto eth0
iface eth0 inet dhcp


RE: New Era: VAAPI with EGL interoperation - gurabli - 2015-09-27

(2015-09-27, 19:04)fritsch Wrote: mkdir lala
cd lala
wget http://fritsch.fruehberger.net/openelec/linux-headers-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
wget http://fritsch.fruehberger.net/openelec/linux-image-4.2.0-rc8vsyr1+_4.2.0-rc8vsyr1+-10.00.Custom_amd64.deb
sudo dpkg -i *4.2.0*deb

If you end up without network, check /sys/class/net/ if the device name has changed and change it accordingly in /etc/network/interfaces .... as you run a server this should be peanuts for you.

It seams that the kernel you linked solved the problem. xrandr --verbose confirm it is RGB full. Kodi is set to Limited, and Dithering is turned ON (8), picture is excellent. It remains good even after turning off and turning on the tv. I need to compile drivers for the usb tv card again. I have a budget phone now, no sense to make picturesSmile But will get my dslr and make few shots.

I had to change the network interface indeed. I'm running a small home server, but I'm very n00b, learning a lot. Its a very simple one, but makes everything I need.

Edit 2: One n00b question: I need to select this kernel at startup each time in advanced. How can I make this the default kernel?
I solved this.

EDIT: sorry, the log: http://paste.ubuntu.com/12593438/
and dmesg: http://paste.ubuntu.com/12593447/


RE: New Era: VAAPI with EGL interoperation - rome - 2015-09-27

Here is a video of my problem. After the flash cpu usage goes up.
https://www.dropbox.com/s/nhbpad8wjo36pl1/20150927_140716.mp4?dl=0


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

Post your Debug Log ... the video does not help :-)


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

What is this flashing up, btw.? Something your SKIN introduces? It does not happen with Confluence, right?

Ah lol "flashing up" <- the little flash during playback ... yeah provide the Debug Log and also dmesg | pastebinit - I think it's the same issue Gundula had today .. we will see.


RE: New Era: VAAPI with EGL interoperation - rome - 2015-09-27

here you go and yes it happens with confluence.
kodi http://sprunge.us/MEBj
dmesg http://sprunge.us/PiHc
The refresh rate is changing to late.


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

Those logs are _after_ it happened? I see absolutely nothing :-(


RE: New Era: VAAPI with EGL interoperation - rome - 2015-09-27

yes they are after.


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

Happens only with hdhomerun, right? Some errors in video stream:

Quote:14:18:48 T:140005397755648 ERROR: ffmpeg[7F558BFFF700]: [mpeg2video] Invalid frame dimensions 0x0.

If you disable VAAPI - all fine?


RE: New Era: VAAPI with EGL interoperation - rome - 2015-09-27

If I disable vaapi its fine but the refresh rate doesn't switch, it stays at 29.97.
EDIT: yes with hdhomerun, I can also reproduce with tvheadend.