diff options
author | Martin Chrzanowski <martin@celo.org> | 2019-01-12 19:24:46 -0500 |
---|---|---|
committer | Martin Chrzanowski <martin@celo.org> | 2019-01-12 19:24:46 -0500 |
commit | 7053c6f1beab24d27dc3f9c7445d0856ce4ab03c (patch) | |
tree | 916bed207cf559524f30e118d2b22e7fb66daf2a | |
parent | 8feeb19278b475c1743d05a890b769d2e16b0336 (diff) |
Add ffmpeg rotate
-rw-r--r-- | ffmpeg.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -11,6 +11,20 @@ # -1 means to automatically preserve aspect ratio ffmpeg -i in.mp4 -filter:v scale=720:-1 out.mp4 +## Rotate + + # 90 degrees clockwise + ffmpeg -i in.mov -vf "transpose=1" out.mov + # 180 degrees + ffmpeg -vf "transpose=2,transpose=2" + +For the transpose parameter you can pass: + + 0 = 90CounterCLockwise and Vertical Flip (default) + 1 = 90Clockwise + 2 = 90CounterClockwise + 3 = 90Clockwise and Vertical Flip + ## Record screen ffmpeg -f x11grab -s 1920x1080 -i :0.0 out.mkv |