m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.md
diff options
context:
space:
mode:
authorMartin Chrzanowski <martin@celo.org>2019-01-12 19:24:46 -0500
committerMartin Chrzanowski <martin@celo.org>2019-01-12 19:24:46 -0500
commit7053c6f1beab24d27dc3f9c7445d0856ce4ab03c (patch)
tree916bed207cf559524f30e118d2b22e7fb66daf2a /ffmpeg.md
parent8feeb19278b475c1743d05a890b769d2e16b0336 (diff)
Add ffmpeg rotate
Diffstat (limited to 'ffmpeg.md')
-rw-r--r--ffmpeg.md14
1 files changed, 14 insertions, 0 deletions
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