From ea1b37f715e1d1cd597afcf853ae629b9a28e759 Mon Sep 17 00:00:00 2001
From: Cullum Smith <cullum@sacredheartsc.com>
Date: Sun, 9 Feb 2025 21:28:54 -0500
Subject: more ffmpeg magic

---
 src/misc/ffmpeg/index.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

(limited to 'src')

diff --git a/src/misc/ffmpeg/index.md b/src/misc/ffmpeg/index.md
index 956b0c3..a1b8fd3 100644
--- a/src/misc/ffmpeg/index.md
+++ b/src/misc/ffmpeg/index.md
@@ -21,3 +21,21 @@ Crop 200px from the bottom of a video, maintaining aspect ratio:
 ```bash
 ffmpeg -i in.mp4 -filter:v 'crop=iw-200:ih-200:(iw-ow)/2:0' -c:a copy out.mp4
 ```
+
+Convert a landscape video to portrait (crop to center):
+
+```bash
+ffmpeg -i in.mp4 -filter:v 'crop=ih*9/16:ih:(iw-ow/2):0' -c:a copy out.mp4
+```
+
+Trim video using start and end timestamps:
+
+```bash
+ffmpeg -i in.mp4 -ss 00:01:00 -to 00:02:00 -c copy out.mp4
+```
+
+Scale a video down to 720p (keep aspect ratio):
+
+```bash
+ffmpeg -i in.mp4 -vf "scale=-2:720" out.mp4
+```
-- 
cgit v1.2.3