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 - fab67 - 2015-09-13

fritsch,

I found some time to do more testing. I remux some mkv at differents framerates for all resolutions.

all are good except :

3840x2160@50p is played at 2560x1440@60p ( I don't have 2560x1440@50p mode ) same for 4096x2160@50p
4096x2160@25p is played at 4096x2160@24p

Image

Image


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

Please enable full debug logging - We should see what is happening.

The problem here is, that the 4096 resolution is probed first and as it perfectly matches "resolution wise" - it is chosen. After that, we don't switch down anymore, as 1080 is not considered at all anymore. Same happens in the other case.

Possible solution: Presort resolutions - but let's see if the log is right


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

@fab67: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150913122219-r21281-gb78c676.tar

What happens now?

Edit: I am sorry - i pulled the wrong branch :-(


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

@fab67: Now, here we go: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150913131328-r21281-gb78c676.tar


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-13

fritsch,

3840x2160@50p is now played at 1080p50
but 4096x2160@25p is now played at 1080p50 and not 2160p25
and 3840x2160@30p is also played at 1440p60 and not 2160p30

log : http://pastebin.com/zwWrwH3S
I have a 502 Bad Gateway with http://www.xbmclogs.com/ this morning


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

@fab67: The rest is fine?

3840x2160@50p is now played at 1080p50 <- that's fine isn't it?

but 4096x2160@25p is now played at 1080p50 and not 2160p25 <- need to think about that
and 3840x2160@30p is also played at 1440p60 and not 2160p30 <- will look

But all videos are playing now correctly, right?


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-13

Yes all videos are at the correct framerate ( or double framerate ) but not at the max resolution available for 3840x2160@30p and 4096x2160@25p


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

Okay - I have it. One moment :-)


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

@fab67: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150913141910-r21282-g1b05557.tar


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-13

@fritsh nope Sad

To be clear I summerized :

available mode :
4096x2160p 24
3840x2160p 24,25,30
2560x1440 60
1920x1080 24,25,30,50,60

now samples I played:
3840x2160p50 best mode is 1080p50 kodi played 1080p50 : ok
3840x2160p30 best mode is 3840x2160p30 kodi played 1440p60 : not ok ( double framerate )
3840x2160p25 best mode is 3840x2160p25 kodi played 1080p50 : not ok ( double framerate )
3840x2160p60 best mode is 2560x1440p60 kodi played 1440p60 : ok
4096x2160p24 best mode is 4096x2160p24 kodi played 4096x2160p24 : ok
4096x2160p25 best mode is 3840x2160p25 kodi played 1080p50 : not ok ( double framerate )

log : http://pastebin.com/pL8XW6zX


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

Man :-) - it's getting a long night this time :-)

here is another build with additional logging: http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150913151025-r21282-g65305aa.tar


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-13

http://pastebin.com/x6AKrJET

3840x2160p30 -> 1080p60
...


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

It's: 0x31637668), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 46361 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)


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

http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150913160315-r21282-g65305aa.tar

Even more logging. I need some hw to test - I think I am called with changing weight from somewhere ... or I need to get some hw for reproducing ...


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-13

log : http://pastebin.com/wfk09LA6

fritsch, you don't need to hurry, 4K usage is minimal and we can watch all this videos without problems.
Watching at best conditions can wait a little .