Skip to content

Instantly share code, notes, and snippets.

@sole
Created December 18, 2011 16:27
Show Gist options
  • Save sole/1493825 to your computer and use it in GitHub Desktop.
Save sole/1493825 to your computer and use it in GitHub Desktop.
Rotate video counterclockwise with ffmpeg
ffmpeg -i inputfile -vf "rotate=-2" outputfile
This uses mplayer's rotate filter, so the options are the same:
rotate[=<0−7>]
Rotates the image by 90 degrees and optionally flips it. For values between 4−7 rotation is only done if the movie geometry is portrait and not landscape.
0
Rotate by 90 degrees clockwise and flip (default).
1
Rotate by 90 degrees clockwise.
2
Rotate by 90 degrees counterclockwise.
3
Rotate by 90 degrees counterclockwise and flip.
From http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment