One-line ffmpeg tblend trick visualizes motion in video — and can even estimate speed
johnowhitaker · x · 2026-09-29
johnowhitaker shared a one-line ffmpeg command that visualizes motion via frame differencing — the demo makes buzzing bees in a video pop out, and you can even estimate speed from it:
ffmpeg -i input.mp4 -vf "tblend=allmode=difference128,eq=contrast=2.0:saturation=0,format=yuv420p" -c:v libx264 -crf 18 -preset fast motionmap.mp4
- The core is tblend=allmode=difference128 frame differencing, then boosted contrast and desaturation so moving regions stand out
- No AI or special tools needed — runs anywhere ffmpeg is installed
More from coding & agent
- Dagger founder: the Great CI Bottleneck of 2026 is a software problem, not hardware — msharmas · 2026-09-29
- Sonnet 5.5 lands in Factory: early tests show 'High' is the strong default — matanSF · 2026-09-29
- Full Browser Fallout Game Built With Claude Opus 5.5, Zero Texture or Sound Files — chrisfirst · 2026-09-29
- Clixad Bets on Ad-Funded AI Coding Credits Instead of $20/Month Subscriptions — Glass-Interaction972 · 2026-09-29
- Databricks: Opus 5.5 cuts coding costs 20%, GPT-6 Luna is 20x cheaper per task — pwendell · 2026-09-29
- Hindsight: Letting Your Agent Learn Without Breaking Policy — nishithreddy · 2026-09-29