Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Expand Cut Tags

No cut tags
Sunday, July 23rd, 2006 07:04 pm

...that can rotate an AVI file by 90 degrees?  I have a number of video sequences I've shot with my Canon digital camera in portrait mode, but of course the player doesn't know that, and while I have an abundance of tools for losslessly rotating JPEG photos, none of the utilities supplied by Canon, and no other utilities I have, will rotate an AVI movie and save the rotated version.  (I can rotate the movies at playback time with mplayer, but cannot -- to my knowledge -- save them.)

Monday, July 24th, 2006 12:32 am (UTC)
With a little experimentation, I have three flawlessly rotated videos now. The magic:

mencoder mvi_0521.avi -vf rotate=1 -o output.avi -ovc lavc -lavcopts vcodec=mjpeg:mbd=1 -oac copy
Monday, July 24th, 2006 11:57 am (UTC)
mencoder mvi_0521.avi -vf rotate=1 -o output.avi -ovc lavc -lavcopts vcodec=mjpeg:mbd=1 -oac copy

Well, DUH! And people say the UNIX command line is obscure. Tsk.