From 7053c6f1beab24d27dc3f9c7445d0856ce4ab03c Mon Sep 17 00:00:00 2001 From: Martin Chrzanowski Date: Sat, 12 Jan 2019 19:24:46 -0500 Subject: Add ffmpeg rotate --- ffmpeg.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ffmpeg.md b/ffmpeg.md index 28a5730..663471e 100644 --- a/ffmpeg.md +++ b/ffmpeg.md @@ -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 -- cgit v1.2.3