Skip to content

Instantly share code, notes, and snippets.

@wlerin
Forked from ViktorNova/rotate-video.sh
Created March 6, 2019 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlerin/7c94d48caa4da81fc18119f42f53ae7e to your computer and use it in GitHub Desktop.
Save wlerin/7c94d48caa4da81fc18119f42f53ae7e to your computer and use it in GitHub Desktop.
Rotate a video with FFmpeg (100% lossless, and quick)
$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