Skip to content

Instantly share code, notes, and snippets.

@gringoh
Last active September 21, 2021 08:50
Show Gist options
  • Save gringoh/6f6e4b110ca8ae50cc03b2285bdefe36 to your computer and use it in GitHub Desktop.
Save gringoh/6f6e4b110ca8ae50cc03b2285bdefe36 to your computer and use it in GitHub Desktop.
[ffmpeg: rotate video] #ffmpeg

ffmpeg: Rotate video

ffmpeg -i in.mov -vf "transpose=1" out.mov

For the transpose parameter you can pass:

  • 0 = 90 Counter Clockwise and Vertical Flip (default)
  • 1 = 90 Clockwise
  • 2 = 90 Counter Clockwise
  • 3 = 90 Clockwise and Vertical Flip

Use -vf "transpose=2,transpose=2" for 180 degrees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment