-
-
Save guerrerocarlos/c856a31595512e93583b92caa807c92b 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ffmpeg -i $INPUTVIDEO -movflags use_metadata_tags -metadata:s:v rotate="0" -map_metadata 0 -codec copy $OUTPUTVIDEO