2017-11-22, 05:45
I'm trying to get HEVC running with VAAPI on my Arch box, but according to the debug log, Kodi doesn't even think of trying to open HEVC encoded video with a VAAPI decoder. It only does so for H.264 videos. I have verified this with various files.
This leads to high bandwidth and/or high resolution HEVC playing very choppy and stuttery.
I have enabled all VAAPI options in the settings menu:
Relevant packages I have installed:
vainfo says:
So there are definitely two HEVC decoding entrypoints. It's a Pentium J4205 with it's default graphics unit, that is supposed to decode HEVC.
Decoding HEVC videos with VAAPI with ffmpeg on the commandline seems to work.
A debug log of a HEVC file not being tried with VAAPI is here: https://pastebin.com/nNdSTANT (I hope I'm not leaking any passwords)
In fact, there isn't a single mention of VAAPI anywhere in that log, which leads me to believe that Kodi is entirely unaware that VAAPI decoded HEVC is a thing.
What am I doing wrong?
This leads to high bandwidth and/or high resolution HEVC playing very choppy and stuttery.
I have enabled all VAAPI options in the settings menu:
Code:
userdata/guisettings.xml: <prefervaapirender default="true">true</prefervaapirender>
userdata/guisettings.xml: <usevaapi default="true">true</usevaapi>
userdata/guisettings.xml: <usevaapimpeg2 default="true">true</usevaapimpeg2>
userdata/guisettings.xml: <usevaapimpeg4 default="true">true</usevaapimpeg4>
userdata/guisettings.xml: <usevaapivc1 default="true">true</usevaapivc1>
Relevant packages I have installed:
Code:
community/kodi 17.5-6 [installed]
community/kodi-dev 17.5-6 [installed]
community/kodi-platform 20170306.36fb493-1 [installed]
community/p8-platform 2.1.0.1-1 [installed]
aur/kodi-addon-pvr-hts 3.4.28-1 (14, 0.98) [installed]
aur/kodi-standalone-service 1.93-1 (51, 0.53) [installed]
aur/kodi-addon-hts-pvrmanager 1.0.7-1 (2, 0.07) [installed]
aur/kodi-addon-repo-installer 1.0.5-5 (4, 0.00) [installed]
extra/glu 9.0.0-4 [installed]
extra/libtxc_dxtn 1.0.1-6 [installed]
extra/mesa 17.2.5-1 [installed]
extra/mesa-demos 8.3.0-4 [installed]
extra/mesa-vdpau 17.2.5-1 [installed]
extra/libva 2.0.0-2 [installed]
extra/libva-intel-driver 2.0.0-2 [installed]
extra/libva-mesa-driver 17.2.5-1 [installed]
extra/libva-vdpau-driver 0.7.4-3 [installed]
community/libva-utils 2.0.0-1 [installed]
vainfo says:
Code:
libva info: VA-API version 1.0.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.0 (libva 2.0.0)
vainfo: Driver version: Intel i965 driver for Intel® Broxton - 2.0.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
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
So there are definitely two HEVC decoding entrypoints. It's a Pentium J4205 with it's default graphics unit, that is supposed to decode HEVC.
Decoding HEVC videos with VAAPI with ffmpeg on the commandline seems to work.
A debug log of a HEVC file not being tried with VAAPI is here: https://pastebin.com/nNdSTANT (I hope I'm not leaking any passwords)
In fact, there isn't a single mention of VAAPI anywhere in that log, which leads me to believe that Kodi is entirely unaware that VAAPI decoded HEVC is a thing.
What am I doing wrong?