(2017-03-08, 11:25)Axman Wrote: For anyone interested, I've put in some effort lately to get proper hw decoding of HEVC content working in Kodi, both 1080p and 2160p, 8 bit and 10 bit.
I've tried this on a Braswell NUC (Celeron CPU), a Kaby Lake i3 NUC and a Kaby Lake i5 desktop.
I followed fritsch' guide on p1 to the point, but had to:
1. install newer mesa drivers from Padoka PPA
2. build latest Kodi-agile from source - see docs for instructions. Use build commands `cmake .. -DENABLE_VAAPI=1 -DENABLE_CEC=0 -DCMAKE_BUILD_TYPE=Release` and then `cmake --build . -- VERBOSE=1 -j4`. Use `j2` if you're on a dualcore system, like the Celeron or i3.
3. update the autostart script to use `/usr/bin/local/kodi` rather than `/usr/bin/kodi`
Then I was able to get flawless playback and HW decoding on both Kaby Lake platforms, of both 8 and 10 bit content.
I got 1080p HEVC hw decoding working well for the Braswell NUC, but not 4K (h265 nor h264).
Very happy to have this bleeding edge system working flawlessly, with true HD passthrough of 7.2 channel audio!
Indeed, very informative tutorial.
I followed similar steps to achieve playback of HEVC 10-bit (incl. 4K!) on Apollo Lake (ASRock J3455-ITX), with (almost) success.
I'm experiencing an issue though and wanted to check if anyone encounters the same.
The issue is that if I play samples on my TV at 3840x2160@60Hz (TV native setting), my screen flickers from time to time (screen goes completely black for a second or two, then plays fine for next few seconds and this process continuously reoccurs). In fact, that flickering also happens to me in Kodi UI, not only while playing the samples.
The problem disappears as soon as I enable "Adjust display refresh rate to match video" option - my TV switches then to 24Hz and flickering is gone. So I guess it is somehow related to 4k resolution at 60Hz only.
My software setup is as follows:
X server, mesa, graphics drivers - Mesa 17.1, libva 1.8.0.pre1, i965 driver 1.8.1.pre1 (freshly updated and aligned with
Padoka PPA)
Kernel - tried 4.8.0(-41) line as provided by Ubuntu, 4.9.13 (most recent from 4.9 line), 4.10.0-997 (Ubuntu's drm-intel-next)
Hardware - ASRock J3455-ITX with BIOS 1.20
Is anyone experiencing similar problem? Maybe you have any suggestions about possible root cause? If not, where do you think I should seek help?