Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Forked from sole/gist:1493825
Last active September 4, 2016 14:07
Show Gist options
  • Save gabrielfalcao/11c83cdd688ad364a4e9 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/11c83cdd688ad364a4e9 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