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 - Roby77 - 2015-09-11

Just tried with sd content no vaapi deinterlace option.
anyone can confirm ?

will post log and mediainfo later

Edit:Now i have it for 1080p film and not for sd Big Grin


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

here an example
https://www.dropbox.com/sh/ctkzpqiwpuup5zc/AAA4-SJnXzbqqYMRbLu1P6x6a?dl=0

could not post log cause log uploader get in error

Edit:Restart chrome box, play a video> try to launch kodi log uploader =error

tried 3 times after a restart

if i don't play any files kodi log upl works correctly

edit2: tried also a soft reset


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

What should I see on this picture? All fine, as it should.


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

Another build for today:

http://fritsch.fruehberger.net/openelec

Changelog:
- Reverted the Adjustrefreshrate Change (we need to go back to the scratchboard for this and the other usecases)
- Fernet has rebased on current kodi git
- No changes concerning the 2 4k files (Tears of Steel, Sintel)

have fun.


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

(2015-09-11, 22:39)fritsch Wrote: What should I see on this picture? All fine, as it should.


leave it...i'm only getting too old for technology Big Grin


RE: New Era: VAAPI with EGL interoperation - cscoppa - 2015-09-12

Fritsch, latest build running GREAT on an ECS Liva. The UI feels a lot snappier than my previous 14.04 stock ubuntu setup (with direct booting straight into Kodi instead of the desktop via kodi.desktop)

Also should mention I'm running kodi-pvr-mythtv plugin which is also working great. Noticed one small bug where deleting a recording via the UI actually deleted the file on the backend, but didn't update in the Kodi UI. (file was still there, but couldn't be played since it was really gone on the backend.)


RE: New Era: VAAPI with EGL interoperation - furii - 2015-09-12

(2015-09-11, 07:33)fritsch Wrote: - Fixup Adjust Refreshrate to match video. We now also can change resolutions, use case: Gui @ 1080p60 -> switch to 4k@24 when a matching movie, e.g. refreshrate is 24 is to be played. This is especially a use case for Intel Boxes that can only output 4k@30 max and therefore LiveTV content (1080i50) should be played at 1080p50. Note: if you have such a setup, we recommend to run the GUI in 1080 mode as kodi's GUI scaler is just low quality. It will automatically switch up when content is played which fps <= max refreshrate at 4k.

apologies for responding to an old post, i've been away for a bit and just now caught up on the work done in the last week or so. regarding the kodi gui scaler shouldn't things be better now that this pr has been added? list of scaling options here.

cheers on all the progress being made.


RE: New Era: VAAPI with EGL interoperation - wsnipex - 2015-09-12

no, this is only for pictures


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

After reading the code: It is only for caching textures, e.g. the thumbnails and posters for the internal db. And the default is from my code reading still FAST_BILINEAR.

Edit: The default was changed later on to BICUBIC by Martijn https://github.com/xbmc/xbmc/commit/dd92043faca07d6ba695712491316ecc0e14cfb9


RE: New Era: VAAPI with EGL interoperation - psysfaction - 2015-09-12

(2015-09-11, 19:42)fritsch Wrote: If you have good idea on howto build a concept so that users easily understand it, now would be the time! How would such a setting look like?

I think it is very cool if we can switch the video resolution automatically since it will make all devices with HDMI 1.4 actually usable for 4K content and I am very thankful for the people implementing this since I can not code.

For the settings maybe in the video system settings you set the resolution and then you have a a separate section where people can switch between a option like:
  • Optimised resolution switching (gui is set to 1080p and resolution is switched for videos with higher resolution)
  • Force resolution (every thing including gui is set to 4k)
  • Use native resolution (resolution is changed according to every video played)

Similar as how the Audio settings are at Output Configuration

Any thoughts?


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

Thanks for your input,

(2015-09-12, 11:13)psysfaction Wrote: For the settings maybe in the video system settings you set the resolution and then you have a a separate section where people can switch between a option like:
[*]Optimised resolution switching (gui is set to 1080p and resolution is switched for videos with higher resolution)
We still think, that our Lanczos3 Optimized scaler is better than what the TV can accomplish. So we could scale >= 1080 to 4k ourselves.

Quote:[*]Force resolution (every thing including gui is set to 4k)
That would basically be like it is now, when user selects the 4k mode byself and just wants us to switch the refreshrate

Quote:[*]Use native resolution (resolution is changed according to every video played)
Currently the method we use only has fps as parameter, so that needs changing. That would also mean we switch to 1280 or even 800x600.

Another suggestion is a more simple one, what about:

Allow to switch to 4k resolution
That would mean: If we run the gui in 1080p50 / p60 and wanted to play video that is 3840x2160@24p that we then switch to this resolution. That should be rather easy to implement and only the following things need to be done:
- Incorporate the dimensions of the movie into the method (already there afaik)
- Try to distinguish between 4096 and 3840 modes and find the best matching mode (euclidian distance or minkowski distance between video_width - screenwidth)
- (workaround the 3840x2160@25p mode), cause we prefer higher refreshrates by default.

That simple setting would resolve the concerns raised by fab67, though it would not switch 1080p24 to 3840p24.

What do you think, is that a good start?


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

Okay, I implemented the above: https://github.com/fritsch/xbmc/commit/445caa88d588fe437641c04aed59c126f9ee7e80

Only thing, that we need to think about: Do we trust the 4k TV to do the 1080p to 3840 upscaling better than us? Cause in current code 1080 is handled by the TV, we only switch up if source material is larger.

Advantages:
- Low gpu load (TV is upscaling)

Disadvantage:
- if TV upscaling quality sucks, the 1080p movie sucks, workaround: Buy a new TV - cause with 1080i50 LiveTV being standard, a bad TV scaler would really sucks for all usecases.


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

@noggin, psysfaction, fab67

here is a testbuild with just that change. Please test your 4k content, starting from a 1080p GUI. If the gui is at 3840 already, it should yield the old behaviour (besides you have 4096 mode and the sample is > 3840).

http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912130948-r21278-gbe69d8e.tar

Also I would be thankful for debuglogs. You find 3840 and 4096 samples within this thread.


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

fritsch,

now all is ok for videos up to1080p. they are displayed at 1080p.

But 3840*2160@24p are displayed at 4096x2160 and not at 3840*2160.
And with sintel 4096x1744 I have the known problem but one other thing I see : sintel 4096x1744 is displayed at 4096x2160 so original size ( no need of rescaling ) but it seems that the video scaling is enabled. Should it be enabled in this case ? because with lanczos method -> lots of skips and drops.

Here the log when I try that : http://www.xbmclogs.com/poawuz43k


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

Do you use component logging? I cannot see my strings :-(