Saturday, May 24, 2008

Video Rotation

One line command for rotating a video by 90 degrees :
$ mplayer -vf rotate=<value> filename


Saving as a AVI file :
$ mencoder -vf rotate=<value> -ovc lavc -oac copy filename -o output.avi


Substitute <value> by a number 0-3 for preferred rotation:

* 0 -> 90 Degree Clockwise + Mirrored
* 1-> 90 Degree Clockwise
* 2-> 90 Degree Anticlockwise
* 3-> 90 Degree Anticlockwise + Mirrored

No comments: