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

I am just testing the patches on my TVs, there is still a bug. On first boot I have a totally "bright" picture. I need to switch to full range first and then switch to Video Range - after that all is fine.


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-30

Tested:
Kodi logo is more bright
Aeon Nox seems to be little bit bright BUT after playing 1080p it's correct

i can't test avshd pattern cause files stays on buffering 100%, i'm trying to see if is nas problem

edit:ok see fritsch post about brightness

edit2:also auto works correctly


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

(2015-09-30, 23:22)Roby77 Wrote: Tested:
Kodi logo is more bright
Aeon Nox seems to be little bit bright BUT after playing 1080p it's correct

i can't test avshd pattern cause files stays on buffering 100%, i'm trying to see if is nas problem

edit:ok see fritsch post about brightness

edit2:also auto works correctly

Currently videos without Audio don't play.


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

(2015-09-30, 22:07)fritsch Wrote: Yeah - it was Lauri. I only had to fix the hunks for kernel 4.1.x.

So what do we want to do? :-) Introduce a custom kernel patch / setting that will nowhere work besides on OpenELEC? and Force the Gui Setting "Use Limited Range" to on?

That would be an awesome default?
Could you provide custom kernel to install on Ubuntu along with new packages from ppa? If so more people could test (at least me and as i understand my TV was root reason ;-) )


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

(2015-09-30, 22:43)fritsch Wrote: I am just testing the patches on my TVs, there is still a bug. On first boot I have a totally "bright" picture. I need to switch to full range first and then switch to Video Range - after that all is fine.
If you think it's a bug and it can be corrected on kernel level maybe it's worth to check. If not maybe simplest solution is to switch internally in OE to Full and then to Limited at startup And for ppa instuctions add second xrandr line to autostart file.


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

(2015-09-30, 22:43)fritsch Wrote: I am just testing the patches on my TVs, there is still a bug. On first boot I have a totally "bright" picture. I need to switch to full range first and then switch to Video Range - after that all is fine.

Strange that it just worked for me?


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

(2015-10-01, 00:03)Hufvudet Wrote:
(2015-09-30, 22:43)fritsch Wrote: I am just testing the patches on my TVs, there is still a bug. On first boot I have a totally "bright" picture. I need to switch to full range first and then switch to Video Range - after that all is fine.

Strange that it just worked for me?

Depends on TV of course.


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-10-01

You don't have ?:

Stark Kodi > Logo and Skin are bright than usual> start a film (you notice that black screen of the film is too bright and i notice it really with sd content)> stop film and now all is ok ?

This with my tv that can do auto, full and limited (the problem occurs with auto and limited)


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

No I didn't have that problem. But nevermind, as long as 2 out of 3 so far have that problem I guess there is a bug. I'm just a guy with a lucky TV.


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

For Ubuntu when you fully followed my howto, do:

Code:
mkdir lauri
cd lauri
wget http://fritsch.fruehberger.net/openelec/linux-headers-4.1.9-lauri3+_4.1.9-lauri3+-10.00.Custom_amd64.deb
wget http://fritsch.fruehberger.net/openelec/linux-image-4.1.9-lauri3+_4.1.9-lauri3+-10.00.Custom_amd64.deb
sudo dpkg -i *lauri3*.deb

Afterwards change the script you are using from post 1 to:

Code:
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
/usr/bin/kodi --standalone

If you have a fully bright image, this might be your workaround:

Code:
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through"
/usr/bin/kodi --standalone

Kodi Settings: Use Limited
TV Settings: Limited / Auto

Note: Provide without enduser warranty. This is _again_ a development thread and not something for handholding beginners. If you are a beginner use OpenELEC.


RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01

I'm guessing this Passthrough change cannot be applied to OE Isengard? The system I'd need this for is my primary family system, and I'm not sure I trust Jarvis for that yet.


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

It's a no brainer ... would only cost my time :-)


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

I have uploaded new Jarvis Builds. Those use passthrough by default and also set kodi to Use Limited Range by default (the setting).
As a workaround I implemented what I scatched up for Ubuntu above: On start shortly set to Full and then to Passthrough ... as this workarounds the kernel bug we still have for me.


Will upload Isengard after they are build. If someone can convince Kabelbw to get me more upload without Horizon shit - I'd be thankful.


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

@Sunflux: Uploaded in the isengard folder. Please give it a test. On my system it works as expected.


RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01

That's weird. I don't get the passthrough option.

http://pastebin.com/z42RRbDE

KodiFamily:~ # xrandr --output HDMI1 --set "Broadcast RGB" "Video 16:235 pass-through"
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 13 (RRChangeOutputProperty)
Value in failed request: 0x44
Serial number of failed request: 39
Current serial number in output stream: 40