Video rotated after importing it for motion tracking
Phones typically provide the rotation orientation via a hint in the wrapper metadata. Given it is a hint tag, many pieces of software will ignore it.