From fa188127ddda2829708858bcf27bd303bf573050 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Tue, 4 Feb 2025 20:15:06 -0500 Subject: add ffmpeg page --- src/misc/ffmpeg/index.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/misc/ffmpeg/index.md (limited to 'src/misc') 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 +``` -- cgit v1.2.3