m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.md14
-rw-r--r--find.md4
2 files changed, 18 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
diff --git a/find.md b/find.md
index a8b840a..f69f25c 100644
--- a/find.md
+++ b/find.md
@@ -3,3 +3,7 @@
## Ignoring directories
find . -not -ipath "dir/*"
+
+## Regex match
+
+ find . -regex pattern # matches whole path