Why does handBrake rotate my original videos? tl;dr stop hanbrake from rotating my original videos once it compresses them.

I know that similar questions about rotating have been asked, but they are more in the lines of "how do I rotate a video". Mine is a little different.

I could use some of the solutions other question provide to rotate my video, however, my  original video was on the right orientation to start with!

When I compress it with handBrake, it rotates it to the wrong orientation automatically. Why is it doing that? I have a lot of videos, Its so annoying that I have to rotate them back after compressing them. Can I just compress them one with handbrake not have to deal with rotating them back?

Here is a picture of how my handBrake setting are set:



One thing that kind of "fixes" this is that in quickTime, there is an option to edit the video and it can rotate it but it takes 21 minutes to rotate the newly compressed video! Jesus! The video is not even 1 GB in its compressed form... isn't there a different way of doing this? This actually doesn't work because when I re-saved my video, it increased size dramatically. Its original size was under 1GB and rotating it in quicktime and then saving it increased the size to 5GB. This is ridiculous.
Why:
Some programs like quick time, automatic rotate the video when they display, but the original file is still not ok. Please try to see your videos using vlc or other apps. handBrake only rotate your videos if you set that option.

How:
You can rotate the video if you fill the Additional options in the bottom. If you like to rotate 90 clockwise with "Custom --rotate=4" or 90 counter-clockwise with "Custom --rotate=7".

the full parameter list is:


1 : x flip 
2 : y flip 
3 : 180 degrees rotate (also the DEFAULT) 
4 :90 degrees rotate (clockwise) 
5 : 90 degrees rotate + y flip 
6 : 270 degrees rotate + y flip 
7 : 270 degrees rotate


See similar question on https://superuser.com/questions/418985/can-handbrake-flip-rotate-a-video