Smart Video Rotate and Flip