from : https://www.thelinuxblog.com/rotating-videos-in-linux/
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: https://linhost.info/2009/01/convert-videos-with-mencoder-and-keep-the-original-quality/
mencoder filename.mov -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