HEVC vdpau support

Hi all,

I cannot seem to be able to get VDPAU to decode HEVC(h.265) streams.

The relevant VDPAUInfo is right here

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0 65536  4080  4080
MPEG2_SIMPLE                    3 65536  4080  4080
MPEG2_MAIN                      3 65536  4080  4080
H264_BASELINE                  41 65536  4096  4096
H264_MAIN                      41 65536  4096  4096
H264_HIGH                      41 65536  4096  4096
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                  3  8192  2048  2048
MPEG4_PART2_ASP                 5  8192  2048  2048
DIVX4_QMOBILE                   0  8192  2048  2048
DIVX4_MOBILE                    0  8192  2048  2048
DIVX4_HOME_THEATER              0  8192  2048  2048
DIVX4_HD_1080P                  0  8192  2048  2048
DIVX5_QMOBILE                   0  8192  2048  2048
DIVX5_MOBILE                    0  8192  2048  2048
DIVX5_HOME_THEATER              0  8192  2048  2048
DIVX5_HD_1080P                  0  8192  2048  2048
H264_CONSTRAINED_BASELINE      41 65536  4096  4096
H264_EXTENDED                  41 65536  4096  4096
H264_PROGRESSIVE_HIGH          41 65536  4096  4096
H264_CONSTRAINED_HIGH          41 65536  4096  4096
H264_HIGH_444_PREDICTIVE       41 65536  4096  4096
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Specs:
Gentoo Linux Kernel 4.6.3
nVidia card: GeForce GTX 970 4GB
nVidia drivers: 367.27
libvdpau: 1.1.1
ffmpeg: 2.8.7

I cannot find anything on the web that would indicate that the 970 is not able to hw decode h265 nor any way to actually enable HEVC_MAIN support

Any tips are apreciated

Thank you

I’m not an expert but the answer you’re seeking can be found also on wikipedia:

as you can see hardware decoding of HEVC is available since the seventh generation of PureVideo HD and your hardware is of the sixth generation

HEVC is available on the 970/980/980 Ti/Titan X but it’s “hybrid” decoding which is part-software and part-hardware (though still much more efficient than doing it entirely in software) – unfortunately, this doesn’t seem to be exposed through VDPAU, it’s only available on Windows.