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?
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 .. .
the one I've tested is mp4 but I believe that VLC can support 3gp too. hope this helps. :)
From the command-line, with ffmpeg:
I solved a similar problem — I had a .MOV that was taken upside-down (i.e., rotated 180 degrees) which I wanted to set right.
On my Ubuntu 14.04 system, I ran
When I tried minimal options, I got a message to the effect that:
and the output file was zero length, so I added the
Command lines that worked were:
The result was satisfactory, with unexplained side-effects:
Not that I'm complaining: these are desirable; I just don't understand why they came about...
Avidemux should be able to do this.