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-08-25

Then the impatient need to figure out howto compile btbn's vaapi_hevc ffmpeg branch with the correct compile flags. After that they need to compile fernetmenta's master branch with the top commit of my master branch picked while this kodi compile is told to use the just before compiled ffmpeg which resides in e.g. /opt


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-08-25

Will this new VAAPI code also work with a N3700 processor at 4K@60p or is this different from N3150 ?


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-25

In theory it should work. But Timo uses a N3700 Nuc - and for him 4k HEVC videos just decode into green :-( - it might have to do with the internal GPU memory reservation, which is not changeable on the NUC Pentium.

Which device do you own?


RE: New Era: VAAPI with EGL interoperation - AndreaSpooky - 2015-08-25

To me specs like

- OpenElec support
- Hw Hevc support
- remote control full use (also for switch on/off of the device)
- full usb3 support (unlike android stuff)

are what i'm looking from a mini pc.

Since this nice breaktrough with hevc support happened...

...should I get a BeeBox N3150?

Currently I'm on a celeron chromebox, but can't play properly some hevc stuff...and also that remote control opportunity seems nice, finally.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-25

This is offtopic -> Please ask your question in the hardware forum.


RE: New Era: VAAPI with EGL interoperation - jeey - 2015-08-25

Getting some random HW freeze on NUC5PPYH (brasswell) with the openelec image, seems like the kernel logs are not logged by default, any way to find the source of problem?
System freezez typically after around 48hours since poweron, and needs hard powerdown to recover.


RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-08-25

(2015-08-25, 20:24)fritsch Wrote: In theory it should work. But Timo uses a N3700 Nuc - and for him 4k HEVC videos just decode into green :-( - it might have to do with the internal GPU memory reservation, which is not changeable on the NUC Pentium.

Which device do you own?

none but I wanted to buy an Intel NUC NUC5PPYH but now I think I would rather take a ASRock Beebox N3150 to be sure.


RE: New Era: VAAPI with EGL interoperation - cford1905 - 2015-08-25

Will this also work on the NUC Broadwell 5th generation? I'd be more than happy to help with testing when the time comes.


RE: New Era: VAAPI with EGL interoperation - trsqr - 2015-08-26

Ok, some results testing with a NUC5CPYH, which is a Braswell N3050 based device. N3050, like N3000 and N3150 has 12 EU GPU, whereas N3700 has 16 EU GPU.

2160p24 ( http://trailers.divx.com/hevc/KAZU_(SUBTITLES)_4K23.98p_HEVC_10Mbits.mkv )
This video plays perfectly, no glitches.

2160p30 ( http://demo-uhd3d.com/fiche.php?cat=uhd&id=67 )
This video has purple artifacts during the first 5 seconds, and at times when the scene is changed. Mostly it's good though. Bit rate more than 50 Mbit/s at several times. Debug log: http://paste.ubuntu.com/12195647/

Image

2160p30 ( http://demo-uhd3d.com/fiche.php?cat=uhd&id=101 )
This video has every now and then green or purple artifacts covering almost the whole screen. Debug log: http://paste.ubuntu.com/12195613/

2160p60 ( http://www.libde265.org/hevc-bitstreams/bbb-3840x2160-cfg02.mkv )
The video plays, but there is significant skipping. I didn't get any picture at first with libva-driver-intel 1.6.0, but after updating to latest master it was fine (ie. only stuttering).

CPU usage is below 30% at all times. All in all, really promising results. Looking forward to see all these improvements trickle into the stable products in the coming months. Not sure the N3050 will ever be able to decode 4k@60, but it could not render 4k picture at that frame rate anyway due to HDMI 1.4a. Will be interesting to hear what BtbN will be able to squeeze out of his N3700.

dmesg: http://paste.ubuntu.com/12195682/
vainfo: http://paste.ubuntu.com/12195683/


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-26

(2015-08-25, 22:56)cford1905 Wrote: Will this also work on the NUC Broadwell 5th generation? I'd be more than happy to help with testing when the time comes.

No - Broadwell does not have a HEVC decoder ... it was only released to make money without any value compared to a HSW.


RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-26

(2015-08-26, 00:43)trsqr Wrote: Ok, some results testing with a NUC5CPYH, which is a Braswell N3050 based device. N3050, like N3000 and N3150 has 12 EU GPU, whereas N3700 has 16 EU GPU.

2160p24 ( http://trailers.divx.com/hevc/KAZU_(SUBTITLES)_4K23.98p_HEVC_10Mbits.mkv )
This video plays perfectly, no glitches.

2160p30 ( http://demo-uhd3d.com/fiche.php?cat=uhd&id=67 )
This video has purple artifacts during the first 5 seconds, and at times when the scene is changed. Mostly it's good though. Bit rate more than 50 Mbit/s at several times. Debug log: http://paste.ubuntu.com/12195647/

Image

2160p30 ( http://demo-uhd3d.com/fiche.php?cat=uhd&id=101 )
This video has every now and then green or purple artifacts covering almost the whole screen. Debug log: http://paste.ubuntu.com/12195613/

2160p60 ( http://www.libde265.org/hevc-bitstreams/bbb-3840x2160-cfg02.mkv )
The video plays, but there is significant skipping. I didn't get any picture at first with libva-driver-intel 1.6.0, but after updating to latest master it was fine (ie. only stuttering).

CPU usage is below 30% at all times. All in all, really promising results. Looking forward to see all these improvements trickle into the stable products in the coming months. Not sure the N3050 will ever be able to decode 4k@60, but it could not render 4k picture at that frame rate anyway due to HDMI 1.4a. Will be interesting to hear what BtbN will be able to squeeze out of his N3700.

dmesg: http://paste.ubuntu.com/12195682/
vainfo: http://paste.ubuntu.com/12195683/

Thanks much for tihs feedback. Yes, some files currently still have issues color wise - Timo already got a sample. So in case of the greenish issues I am quite positive that we can work that out.

Edit: please do a git pull - I bumped FFmpeg once again and picked the latest work of Timo (you need to rerun configure so that ffmpeg gets rebuild)


RE: New Era: VAAPI with EGL interoperation - icebaer - 2015-08-26

You guys are really doing a great job!!!
The current state is really looking very promising.

But what is there left to do, to get it to a stable state? Are there any features yet to implement or is there "only" bug fixing left?


RE: New Era: VAAPI with EGL interoperation - BtbN - 2015-08-26

The only issue left i'm aware of is it showing distorted colors on some samples. I can't find any possible reason for this within the ffmpeg code.
Gstreamer refuses to play all affected samples entirely, which makes me suspect it's a bug in libva or at another level in ffmpeg.
What all affected samples have in common is that they make use of delta_luma/chroma_weight/offset. The samples that play fine have those set to zero at all times.
I have nothing to compare against where they play fine, which makes it hard to judge if the values passed are correct and libva is screwing up, or i'm passing the wrong values.

Anyway, the patch is currently in the process of beeing reviewed and i'll try to get it into master this week. As it's time for another release, ffmpeg 2.8 should follow soon, with vdpau and vaapi hevc decoding.


RE: New Era: VAAPI with EGL interoperation - onizuka - 2015-08-26

(2015-08-26, 07:32)fritsch Wrote:
(2015-08-25, 22:56)cford1905 Wrote: Will this also work on the NUC Broadwell 5th generation? I'd be more than happy to help with testing when the time comes.

No - Broadwell does not have a HEVC decoder ... it was only released to make money without any value compared to a HSW.

With that said.....will migrating (begrudgingly) from OPENELEC to Windows at least give us something for 10bit HEVC 4kp60 with Broadwell? (At least us folks who have i3 and above.)

Is it matter of Intel to be willing to provide the essentials for LINUX hybrid HEVC decoding in the Broadwell spec?

Thanks for your efforts!


RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-08-26

error sorry