Media processing utilities for images, audio, and video using FFmpeg and ImageMagick. Use when working with media conversion, optimization, or batch processing tasks.
Tools and workflows for working with images, audio, and video in a repeatable, scriptable way using standard CLI tools (FFmpeg, ImageMagick) and Python helpers.
Image workflows
Media conversion
web, archive, and mobile use casesVideo optimization
Scripts live in scripts/ and are intended to be run directly from a shell:
batch_resize.py
fit, fill, cover, exact, thumbnail)media_convert.py
web, archive, mobile).mov → .mp4, .wav → .mp3)video_optimize.py
See scripts/requirements.txt for environment expectations (Python 3.10+, FFmpeg, ImageMagick) and system installation hints.
Check dependencies first
ffmpeg and ffprobe are installed and on PATH for video/audio tasks.magick (ImageMagick) is installed and on PATH for image tasks.Prefer dry-runs when exploring
--dry-run and/or --verbose flags on scripts to inspect generated commands before running them.Keep originals
--output ./out/) to avoid accidental overwrites.Document workflows
just, npm scripts, or CI jobs) so they’re repeatable.For deeper tool-specific notes (placeholders for now, extend as needed), see:
references/ffmpeg-encoding.md – FFmpeg encoding patterns and flagsreferences/ffmpeg-filters.md – Common filter graphs (scale, crop, audio filters)references/ffmpeg-streaming.md – Streaming-friendly settings and HLS/DASH tipsreferences/format-compatibility.md – Container/codec compatibility notes (web, mobile, desktop)references/imagemagick-batch.md – Batch image processing patterns with ImageMagickreferences/imagemagick-editing.md – Image editing operations (crop, resize, composite, text, etc.)