FFmpeg 1.0.10
Since* 0.7
#

Transpose rows with columns in the input video and optionally flip it.

It accepts a parameter representing an integer, which can assume the values:

0, 4

Rotate by 90 degrees counterclockwise and vertically flip (default), that is:

L.R     L.l
. . ->  . .
l.r     R.r
1, 5

Rotate by 90 degrees clockwise, that is:

L.R     l.L
. . ->  . .
l.r     r.R
2, 6

Rotate by 90 degrees counterclockwise, that is:

L.R     R.r
. . ->  . .
l.r     L.l
3, 7

Rotate by 90 degrees clockwise and vertically flip, that is:

L.R     r.R
. . ->  . .
l.r     l.L

For values between 4-7 transposition is only done if the input video geometry is portrait and not landscape.