FFmpeg 1.2.12
Since* 0.7
#

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

The filter accepts parameters as a list of key=value pairs, separated by ’:’. If the key of the first options is omitted, the arguments are interpreted according to the syntax dir:passthrough.

dir

Specify the transposition direction. Can assume the following 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, the transposition is only done if the input video geometry is portrait and not landscape. These values are deprecated, the passthrough option should be used instead.

passthrough

Do not apply the transposition if the input geometry matches the one specified by the specified value. It accepts the following values:

none

Always apply transposition.

portrait

Preserve portrait geometry (when height >= width).

landscape

Preserve landscape geometry (when width >= height).

Default value is none.

For example to rotate by 90 degrees clockwise and preserve portrait layout:

transpose=dir=1:passthrough=portrait

The command above can also be specified as:

transpose=1:portrait