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 - BtbN - 2015-08-26

Color errors should be fixed now, for anyone who is testing my branch.


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

(2015-07-23, 20:13)fritsch Wrote: No. How should that work with a display driver that only does RGB?

Is an Intel fault and maybe in the future it will be implemented or it's a mission impossible ? Blush

EditConfusedpeaking about ycbcr


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

(2015-08-26, 15:57)Roby77 Wrote:
(2015-07-23, 20:13)fritsch Wrote: No. How should that work with a display driver that only does RGB?

Is an Intel fault and maybe in the future it will be implemented or it's a mission impossible ? Blush

EditConfusedpeaking about ycbcr

Computer graphics and in particular OpenGL operate in RGB. This is a given. Converting the output signal to ycbcr makes no sense at all. You would just introduce more non-lossless conversions. Finally the display outputs colors in RGB.


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

(2015-08-26, 14:07)onizuka Wrote:
(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!

No Chance for 4k@60 with hybrid ...


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

(2015-08-26, 15:16)BtbN Wrote: Color errors should be fixed now, for anyone who is testing my branch.

Thumbs up. I hope fernet will pick this work in his local ffmpeg fork together with the kodi stuff so that the ppa gets hevc support. I will have no laptop with me the next 10 days.

Thank very much.


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

(2015-08-26, 15:16)BtbN Wrote: Color errors should be fixed now, for anyone who is testing my branch.

Confirmed. All the color errors I reported earlier are now gone. Thanks again!


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

(2015-08-26, 18:29)fritsch Wrote: I hope fernet will pick this work in his local ffmpeg fork together with the kodi stuff so that the ppa gets hevc support.

done


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

(2015-08-18, 22:29)fritsch Wrote:
(2015-08-18, 21:54)trsqr Wrote: I did a further testing with the OpenELEC build in post #2 and Braswell N3050 hardware with 2 gigs of RAM. I was able to play 20+ videos and when starting a new one, kodi crashed with following in dmesg:

[ 381.202509] Out of memory: Kill process 663 (kodi.bin) score 282 or sacrifice child
[ 381.202513] Killed process 663 (kodi.bin) total-vm:2558768kB, anon-rss:532540kB, file-rss:0kB

I can verify this, but I don't know yet - if that's a leak or normal buffer management. Whenever I seek Memory usage increases, it always goes up and never down - top shows that easily.

With all the VAAPI HEVC goodies in, I made an interesting observation. I cannot see this problem when seeking within a HEVC encoded video. However, enough seeks inside an H.264 encoded video and memory is full -> Kodi is killed. dmesg: http://paste.ubuntu.com/12201737/ Kodi crashlog: http://paste.ubuntu.com/12201766/


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

(2015-08-26, 21:57)trsqr Wrote:
(2015-08-18, 22:29)fritsch Wrote:
(2015-08-18, 21:54)trsqr Wrote: I did a further testing with the OpenELEC build in post #2 and Braswell N3050 hardware with 2 gigs of RAM. I was able to play 20+ videos and when starting a new one, kodi crashed with following in dmesg:

[ 381.202509] Out of memory: Kill process 663 (kodi.bin) score 282 or sacrifice child
[ 381.202513] Killed process 663 (kodi.bin) total-vm:2558768kB, anon-rss:532540kB, file-rss:0kB

I can verify this, but I don't know yet - if that's a leak or normal buffer management. Whenever I seek Memory usage increases, it always goes up and never down - top shows that easily.

With all the VAAPI HEVC goodies in, I made an interesting observation. I cannot see this problem when seeking within a HEVC encoded video. However, enough seeks inside an H.264 encoded video and memory is full -> Kodi is killed. dmesg: http://paste.ubuntu.com/12201737/ Kodi crashlog: http://paste.ubuntu.com/12201766/

Maybe it was mentioned in some footnote of this thread. I can't help much if log starts with
Quote:Starting Kodi (15.2-RC1 Git:2015-08-25-13bd256-dirty)



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

(2015-08-26, 23:27)FernetMenta Wrote: Maybe it was mentioned in some footnote of this thread. I can't help much if log starts with
Quote:Starting Kodi (15.2-RC1 Git:2015-08-25-13bd256-dirty)

I built that according to instructions I got from fritsch yesterday, so he knows what's in there. However, the same issue can also be seen with H.264 clips on the OpenELEC build he has linked to post #2 (and on a system that's set up according to post #1). There are logs attached in an earlier post with that OE build. I just thought that it was an interesting observation that this does not happen when playing a HEVC video.


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

(2015-08-26, 23:50)trsqr Wrote:
(2015-08-26, 23:27)FernetMenta Wrote: Maybe it was mentioned in some footnote of this thread. I can't help much if log starts with
Quote:Starting Kodi (15.2-RC1 Git:2015-08-25-13bd256-dirty)

I built that according to instructions I got from fritsch yesterday, so he knows what's in there. However, the same issue can also be seen with H.264 clips on the OpenELEC build he has linked to post #2 (and on a system that's set up according to post #1). There are logs attached in an earlier post with that OE build. I just thought that it was an interesting observation that this does not happen when playing a HEVC video.

I have written all the EGL code and I did not port it back to 15.x. There is a good chance that errors happened on this task. If you can reproduce with my master, I will look into it but I don't waste time on 15.x. Just an offer.


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

Yes. As mentioned before, bugs are only accepted for the ppa. OE IMG is provided as is to get an easy preview. So please reproduce with v16.


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

(2015-08-26, 23:57)FernetMenta Wrote: I have written all the EGL code and I did not port it back to 15.x. There is a good chance that errors happened on this task. If you can reproduce with my master, I will look into it but I don't waste time on 15.x. Just an offer.

I've tried before using the ppas here and did see the same. Also fritsch confirmed he saw the same decrease in memory after seek in post #326 though obviously I don't know which version he was running at the time. I will reproduce this asap early next week using the ppas in post #1 and link the logs here.


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

VAAPI HEVC hwaccel is now in mainline ffmpeg.


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

Hurray Smile btw did master's libva drivers made 4k work for you on the N3700, too?