Wednesday, October 6, 2010

How to rotate a video with Ubuntu linux

Taking vids with our mobile phone is very useful and funny but sometimes it is necessary to rotate our video.
That's how we can do it

first of all we have to install mencoder
sudo apt-get install mencoder
than execute this command
mencoder -vf rotate=1 -o OUTPUT.AVI -oac copy -ovc lavc INPUT.AVI
where
  • -vf is used to select a filter. In this case we are using the rotate filter
  • -o is used to specify the output file
  • -oac specifies the audio codec (or we can use -nosound)
  • -ovc specifies the video codec
that's all

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.