diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2025-02-09 21:28:54 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2025-02-09 21:28:54 -0500 |
commit | ea1b37f715e1d1cd597afcf853ae629b9a28e759 (patch) | |
tree | f5001297ed2ed88e737c52b8586f3347503a425c /src/misc | |
parent | fa188127ddda2829708858bcf27bd303bf573050 (diff) | |
download | website-ea1b37f715e1d1cd597afcf853ae629b9a28e759.tar.gz |
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/ffmpeg/index.md | 18 |
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 +``` |