Monday, 5 September 2011

How to rotate video with FFmpeg

Use  video fileter graph option with -vf "transpose=X".

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: Rotate by 90 degrees counterclockwise and vertically flip (default)
1: Rotate by 90 degrees clockwise
2: Rotate by 90 degrees counterclockwise
3. Rotate by 90 degrees clockwise and vertically flip

Example:



ffmpeg -vf "transpose=1" -i input.mp4 output.mp4

No comments:

Post a Comment