From what I understand It’s not a great idea to convert x264 to HEVC as it’s going to impact quality of the video. It’s essentially encoding a file that’s already been encoded. There are probably people that are pretty skilled and can do this effectively but the ones I’ve seen don’t look great. In either case you’d want to use something that specializes in encoding HEVC like handbrake.