H.265 is the preference if available. If H.265 is not suitable for this video, it will automatically switch to H.264 format.