Handbrake is a great Windows tool to encode videos. Not long ago I had to work with mobile phone videos. As so often, people hold their phone vertically while filming. this results normally in vertical videos. Or worse, videos are shown horizontally and therefore everything is flipped sideways.
Firstly, I did not find any free tools that rotated videos without re-encoding. Handbrake also does not do rotation without re-encoding but at least it has a great encoder and normally does not create visibly worse quality than the original.
Handbrake does not offer rotation option in its GUI, but there is an “Extra Options:” text field in the video section that can be used. Hence, using the CLI is not necessary.
The following line enabled rotation:
, --rotate=N
“N” is a number that defines the rotation, which is as follows:
- 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
Resources: