Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to use Ubuntu and preferably standard packages such as ffmpeg to rotate a .3gp video file by 90 degrees in any direction. Preferably a command line or Python script.

How can I do that?

share|improve this question
I found that ffmpeg was able to do this. See, e.g. Ubuntu forums: rotate video 90 degrees –  Simon Dec 15 '11 at 12:26

3 Answers 3

up vote 3 down vote accepted

by using VLC, you may rotate the video by going to Tools >> Preferences...

And select "All" for show settings. Then go to: Video >> Filters >> Rotate

After setting the degree you want, you can rotate by going to Tools > Effects and Filters > Video Effects > Geometry .. .

alt text

the one I've tested is mp4 but I believe that VLC can support 3gp too. hope this helps. :)

share|improve this answer
i can view the video rotated, but how do you make the change persist –  justinhj Jun 6 '10 at 9:14

From the command-line, with ffmpeg:

ffmpeg -i input.3gp -filter:v 'transpose=1' \
-c:a copy -c:v libx264 -preset veryfast -crf 22 \
-c:a aac -strict experimental \

'transpose=1' will rotate the video 90 degrees clockwise; to rotate anti-clockwise, use 'transpose=2'. See the documentation for a bit more information. For information on the video encoding settings here, see this x264 guide and the AAC encoding guide.

share|improve this answer

Avidemux should be able to do this.

Do Video->Filters->Rotate(x degrees)->Close then File->Save->Save Video

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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