diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2025-02-04 20:15:06 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2025-02-04 20:15:06 -0500 |
commit | fa188127ddda2829708858bcf27bd303bf573050 (patch) | |
tree | 5ad0721cce1d0c391e60b91fa9e6c4769cb36d80 | |
parent | 6c5e78ab457ef3bead70474ebf78127d6a8f3a56 (diff) | |
download | website-fa188127ddda2829708858bcf27bd303bf573050.tar.gz |
add ffmpeg page
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/files/ChantLesson1.pdf | bin | 0 -> 252716 bytes | |||
-rw-r--r-- | src/index.md | 4 | ||||
-rw-r--r-- | src/misc/ffmpeg/index.md | 23 |
4 files changed, 28 insertions, 1 deletions
@@ -4,7 +4,7 @@ URL = https://${DOMAIN} RSYNC_TARGET = ${DOMAIN}:/usr/local/www/vhosts/${DOMAIN} FEED_TITLE = Cullum Smith's Blog FEED_DESCRIPTION = Blog of a unix wrangler, Gregorian chant and banjo enjoyer -STATIC_REGEX = .*\.(html|css|jpg|jpeg|png|ico|xml|txt|asc|webmanifest) +STATIC_REGEX = .*\.(html|css|jpg|jpeg|png|ico|xml|txt|asc|webmanifest|pdf) RECENT_POSTS_LIMIT = 5 HIGHLIGHT_STYLE = pygments diff --git a/src/files/ChantLesson1.pdf b/src/files/ChantLesson1.pdf Binary files differnew file mode 100644 index 0000000..7326baf --- /dev/null +++ b/src/files/ChantLesson1.pdf diff --git a/src/index.md b/src/index.md index 235c8e3..674d407 100644 --- a/src/index.md +++ b/src/index.md @@ -39,3 +39,7 @@ I'm a computer person located in South Carolina. Welcome to my humble website. ::: bloglist __BLOG_LIST__ ::: + +## Odds & Ends + +- [FFmpeg Cheat Sheet](/misc/ffmpeg/) diff --git a/src/misc/ffmpeg/index.md b/src/misc/ffmpeg/index.md new file mode 100644 index 0000000..956b0c3 --- /dev/null +++ b/src/misc/ffmpeg/index.md @@ -0,0 +1,23 @@ +--- +title: FFmpeg Cheat Sheet +date: February 3, 2025 +description: Random ffmpeg incantations I find useful +--- + +Apply a gaussian blur: + +```bash +ffmpeg -i in.mp4 -vf 'gblur=sigma=20:steps=5' -c:a copy out.mp4 +``` + +Create a video from an audio file and still image: + +```bash +ffmpeg -loop 1 -i image.jpg -i audio.m4a -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4 +``` + +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 +``` |