HOWTO: Rotate a video in Linux

I videoed something at the weekend on my iphone, but must’ve had the phone upside-down so the video came out that way.

Fortunately there is a little program that will rotate a video for you.

> sudo apt-get install mencoder

Then, to rotate my video clockwise by 90 degrees:

> mencoder -ovc lavc -vf rotate=1 -oac pcm inputfile.ext -o outputfile.ext

I had to do this twice, obviously changing the input filename for the second rotation for the output filename on the first…

Job done. That were easy.

There is more help here:

One comment on “HOWTO: Rotate a video in Linux

  1. Rod June 12, 2013 12:43 pm


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.