Skip to content

Instantly share code, notes, and snippets.

@gwpl gwpl/
Last active Dec 25, 2018

What would you like to do?
rotate video cli linux commandline

from :

mencoder -ovc lavc -vop rotate=1 -oac copy input.mpg -o output.mpg
  • 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.

on my experience you need to change -vop flag with -vf

Above command leaves low quality of output.

In search of finding better quality I came across this:

mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4 -o output.mp4

So I try:

mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4  -vf rotate=2 -oac copy MVI_2523.AVI -o MVI_2523.rotated.AVI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.