r/madeinpython • u/uralozden • 1h ago
I built a local, no-cloud highlight finder for long gameplay recordings and stream VODs (CLI + MCP, MIT)
Cloud clipping tools want you to upload hours of footage and pay per minute. I wanted something that runs on my own box, so I wrote highlight-detector.
What it does
Scans a video (anything FFmpeg reads) and ranks the most intense moments: loud spikes, gunfire/explosion-like hits, fast motion, scene cuts, flashes
Optional: your chat replay (TwitchDownloader JSON, CSV or plain text) and subtitles for hype words
Gives a reason for every pick, outputs JSON / CSV / YouTube chapters / EDL, and can cut the clips to MP4
MCP server included, so a local AI assistant can call it
Self-hosting details
Python 3.10+, NumPy, FFmpeg. No GPU, no API keys, no telemetry, nothing leaves your machine
Streams the decode, so a 10-hour VOD doesn't need 10 hours of RAM
14 min of 1080p: 41 s with video analysis, 1.4 s audio-only (4 vCPU VM)
Easy to cron over a recordings folder: highlight-detector "$f" -f chapters > "${f%.*}.chapters.txt"
Install: pipx install git+https://github.com/uralozden/highlight-detector
Repo: https://github.com/uralozden/highlight-detector
Limits: it measures intensity, not humour or meaning, and loud intro music can rank high. Feedback and per-game weight presets very welcome.