Skip to content

Instantly share code, notes, and snippets.

@usametov
Forked from ViktorNova/rotate-video.sh
Created June 13, 2021 01:45
Show Gist options
  • Save usametov/e368819a00c5d03672fcc519c83c2e40 to your computer and use it in GitHub Desktop.
Save usametov/e368819a00c5d03672fcc519c83c2e40 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