$ ffmpeg -i in.mov -vf "transpose=1" out.movThe
transposeparameter takes the following options:
0 = 90CounterCLockwise and Vertical Flip (default) 1 = 90Clockwise 2 = 90CounterClockwise 3 = 90Clockwise and Vertical Flip
For more information, see: Rotating videos with FFmpeg on stackoverflow.com
The next job is to extract portions (snippets) of the raw video footage and then paste them together.
Linux Gazette has a recent (2010) article by Silas Brown on this very subject, which promises to be useful: Video editing from the command line