-
-
Save gabrielfalcao/11c83cdd688ad364a4e9 to your computer and use it in GitHub Desktop.
Rotate video counterclockwise with ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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