Best software for MKV to H.265?

Would like to start saving my MKVs as even smaller high-quality h.265 files on my PC. The new DIVX claimed to be able to make this conversion but it crashes endlessly.

'Super' coverter has a HEVC/H.265 option but that doesn't let you output a file of the same resolution.

VLC claims it can play it these files, but I don't know what software can do the conversion.

Anyone had success with this?