Add functionality to detect rotation from the video file and fix the rotation.