Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How can I rotate a video?

I am using Ubuntu 12.10. I have some videos that I want to rotate 90 degrees. What software do I use?

share|improve this question

marked as duplicate by hhlp, belacqua, Mik, Ringtail, Mitch Oct 27 '12 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I think vlc can do it –  Tachyons Oct 26 '12 at 16:16
    
please answer the question . what software do I use to rotate a video in Ubuntu 12.10. ? –  Bennett Oct 26 '12 at 16:31

1 Answer 1

up vote 3 down vote accepted

Do you mean rotation on playback or converting it to a rotated version?

As a commandline-user I normally use mplayer:

Playback: mplayer -vf rotate=1 videofile.mp4 (rotate can have values from 0 to 7, 1 rotates 90deg clockwise)

Convert (requires transcoding): mencoder -vf rotate=1 videofile.mp4 -oac copy -of lavf -lavfopts format=mp4 -ovc lavc -lavcopts vcodec=mpeg4 -o newfilename.mp4 (you can use other video codecs as well, this is just an example)

And here is a graphical tool to do the latter: kdenlive (a kde application from the universe)

  • import your video as a clip
  • draw the clip into the timeline
  • rightclick onto the video chunk in timeline
  • select "Add Effect" -> "Crop and Transform" -> "Rotate (Keyframable)"
  • The effect can be configured in the upper central section of the window, set X to 900 (thats 90 deg clockwise)
  • Render your project (Project -> Render in the main menu)
  • Be careful to choose a video resolution for the resulting portrait format
  • select any video codec you like, i recommend x264 or vp8 (webm)
share|improve this answer
    
convert to a rotated form. –  Bennett Oct 26 '12 at 16:46
    
Out of curiosity: did you use mencoder in the end or kdenlive? There is a lot of documentation available online for tweaking mencoder options btw. Also some recommendations for "the perfect mencoder command line"(TM), most of them good. –  Paul Hänsch Oct 27 '12 at 13:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.