Blender correctly calculates horizontal angle of view based on the camera solve sensor size provided by the user. The vertical angle of view is calculated based on the default sensor height of 24mm which is not adjusted for aspect ratio and thus results in an incorrect AoV.
Fix:
Calculate sensor height via CAMERA.sensor_width and aspect ratio
Aspect Ratio = D.movieclips[0].size[0] * D.movieclips[0].size[0]
Blender correctly calculates horizontal angle of view based on the camera solve sensor size provided by the user. The vertical angle of view is calculated based on the default sensor height of 24mm which is not adjusted for aspect ratio and thus results in an incorrect AoV.
Fix:
CAMERA.sensor_width
and aspect ratioD.movieclips[0].size[0]
*D.movieclips[0].size[0]