How to: Rotate a video in linux

For the life of me I can’t figure out how to flip/rotate a video in linux using any GUI apps

Here’s the commandline way to do it

mencoder -ovc lavc -vf rotate=2 -oac copy INPUT.AVI -o OUTPUT.AVI

The rotate=2 can be replaced with whatever option best suits your needs. Rotating video options are below:

  • 0 Rotate by 90 degrees clockwise and flip (default)
  • 1 Rotate by 90 degrees clockwise
  • 2 Rotate by 90 degrees counterclockwise
  • 3 Rotate by 90 degrees counterclockwise and flip.

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me justin@kelly.org.au or _justin_kelly