Created
August 8, 2016 21:33
-
-
Save ViktorNova/1dd68a2ec99781fd9adca49507c73ee2 to your computer and use it in GitHub Desktop.
Rotate a video with FFmpeg (100% lossless, and quick)
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
$INPUTVIDEO='input.mp4' | |
$OUTPUTVIDEO='output.mp4' | |
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
This link explains the correct way to do it now (without reencoding), as the -metadata:s:v rotate="-90"
method has been deprecated and removed from the most recent versions of ffmpeg.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had success with this
ffmpeg -i input.mp4 -vf "transpose=1" output.mp4