I\'ve got an ffmpeg command that I often use, I incorporate the yadif argument for content that may or may not be interlaced:
ffmpeg -i input.mkv -c copy -c:v hevc_