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: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-13

Don't forget that one ontop: https://github.com/xbmc/xbmc/pull/10289 (which I just pushed).

Perhaps someone also realized on his / her Braswell. For me it seems, that after some time I get high skips with Lanczos3, because the GPU seems to downclock to a lower frequency, I fixed that by:
Code:
echo 500 > /sys/class/drm/card0/gt_min_freq_mhz

This increases the 320 Mhz (default) to a minimum of 500, while the highest value is 640 Mhz. Handle with care and check your temperatures.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - tutu - 2016-08-14

On a new clean install do I need "standard system utilities" on 16.04? I don't remember seeing that option in 14.04

I imagine it was there, as I used parted before in 14.04?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-14

Can't remember - tell us afterwards, please.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - cabal2k - 2016-08-14

Works fine for me. I applied this http://sprunge.us/PQMf already and did not notice any visible stuttering with my testfile even with Lanczos3 enabled.

Code:
...
19:09:34  24.944197 T:140142562453568   DEBUG: GL: Vertex Shader compiled successfully
19:09:34  24.950930 T:140142562453568   DEBUG: GL: Pixel Shader compilation log:
19:09:34  24.951014 T:140142562453568   DEBUG: GL: Fragment Shader compiled successfully
19:09:34  24.980471 T:140142562453568  NOTICE: GL: NPOT texture support detected
19:09:34  24.980526 T:140142562453568  NOTICE: GL: Using GL_ARB_pixel_buffer_object
19:09:34  25.003645 T:140141192525568  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000
19:09:35  25.908712 T:140141184132864   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-31576.104434, adjusted:-40000.000000
19:09:38  29.606146 T:140141192525568   DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
19:10:02  53.454247 T:140142543517440   DEBUG: Thread JobWorker 140142543517440 terminating (autodelete)
19:10:02  53.454700 T:140141351921408   DEBUG: Thread JobWorker 140141351921408 terminating (autodelete)
19:10:02  53.466846 T:140141821683456   DEBUG: Thread JobWorker 140141821683456 terminating (autodelete)
19:11:49 160.371033 T:140141192525568   DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, lateframes: 1, Bufferlevel: 3, dropped: 1
19:11:54 165.428513 T:140141192525568   DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
19:21:59 770.032532 T:140141184132864   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-27253.155648, adjusted:-40000.000000
19:32:47 1418.192383 T:140141192525568   DEBUG: CPullupCorrection: pattern lost on diff 80000.000000, number of losses 1
19:32:52 1422.750610 T:140141192525568   DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, lateframes: 1, Bufferlevel: 3, dropped: 1
19:32:52 1423.270020 T:140141192525568   DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, lateframes: 2, Bufferlevel: 3, dropped: 1
19:32:52 1423.271362 T:140141192525568   DEBUG: CVideoPlayerVideo::CalcDropRequirement - dropped in decoder, lateframes: 2, Bufferlevel: 3, dropped: 1
19:32:57 1428.332397 T:140141192525568   DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
19:42:56 2027.050171 T:140141184132864   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-27820.667601, adjusted:-40000.000000
...

There are framedrops of course but I didn't notice when watching. Way better than before. I think Millhouse's build tonight will be a very solid one for Braswell users.
Thanx for all the time you all spent to make Kodi the best HTPC experience you can have.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - BigL-New - 2016-08-18

@fritsch @wsnipex - Something wrong with the PPA? No new builds in last 2 weeks :-(


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-18

wsnipex on holidays.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - zuneofwar - 2016-08-22

Hey new member here. Just want to say great job, this thread rocks!!!!!!!!!!! Exactly what I was looking for. I hope to contribute soon.
Hooked up 2 Intel J1800 Celeron boxes per instructions replacing OpenElec. Installed debugging software and will have logs to report back
with after analyzing the data.

Great Job fritsch & crew

vive la Kodi


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - rome - 2016-08-26

yadif freezes kodi. I notice process info keeps switching from deinterlace to none and the screen strarts flickering.
http://paste.ubuntu.com/23094502/


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-26

Deinterlacing is currently WIP - we change some fundamentals. Will hopefully be fixed next week.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - rome - 2016-08-26

ok


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Markus_23 - 2016-08-27

Hi there,

after a long absent , i have some free time and tested 16.04.1 and kodi 17.
Installed everything as stated on post#1 and it kind of works. But it seems the Deinterlace Option is missing in newest build ? Can't find the option.

Switched the ppa to unstable -> beta1 ( Shouldn't the egl stuff in there too lately ?).
Now the Deinterlace Option is back and i configured it as stated in Post#1.

But when checking "Player Process info" whiling playing video, it states "Vaapi (HW) , but "Deinterlace-MethodÖ none" . Checking Video Options states "Vaapi - Motion compensated".

Any hints ?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-27

Read the post - right before you.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Markus_23 - 2016-08-27

Ah, sorry . bit late yesterday ;-)

Nevertheless It should be possible to use the unstable branch till Krypton Official Release, isn't it ?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-27

Yes, of course. All that we wanted to get (feature wise) is in.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-08-31

Kabilake:
Quote:vainfo: VA-API version: 0.39 (libva 1.7.3.pre1)
vainfo: Driver version: Intel i965 driver for Intel® Kabylake - 1.7.3.pre1 (1.7.0-95-g1817bee)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD