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

Category: Media & Conversion

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

Rotate video 90 degrees clockwise

Rotates the video 90 degrees clockwise using the transpose filter, where transpose=1 is the clockwise setting. Codes 0-3 cover the four 90-degree orientations. A re-encode is required, so this takes longer than a stream copy.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.