aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2025-04-08 08:12:57 -0400
committerCullum Smith <cullum@sacredheartsc.com>2025-04-08 08:12:57 -0400
commit5e7d6b55719757b8eb168caf200b91ef3fe4ebd2 (patch)
treeca2f75fc0659c2d88d17191523c6d35ce90cd9bc
parenta2660240339841215dfd22387be9fa1b79070f09 (diff)
parentea1b37f715e1d1cd597afcf853ae629b9a28e759 (diff)
downloadwebsite-master.tar.gz
Merge remote-tracking branch 'refs/remotes/origin/master'HEADmaster
-rw-r--r--src/misc/ffmpeg/index.md18
1 files changed, 18 insertions, 0 deletions
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
+```