HEVC in OBS with Maxwell GPU

How can I enable HEVC support for Maxwell in OBS? I’m using latest Nvidia driver and i have Cuda installed.

Everytime I try to stream or record I will get this error.

Which error?

Simply looks like your GPU does not support HEVC encoding.

This one.

It work fine in Windows though, also 980 TI support HEVC encoding but only at 4K YUV 4:2:0 max.

Windows and Linux drivers for nvidia can differ in what they support.