If you are dealing with a video file recorded in the MP4 format you can do this using the video rotation function in Video Splitter. To do this you need to study the simple algorithm described on this page.