Speed of Kirb 1.0 Motion Vectors Only. So happy! I had a ‘gut’ feeling earlier: IF MPEG compression calculates MOTION, shouldn’t the MOTION VECTORS be included? HOW CAN I EXTRACT THE MOTION VECTORS?
Had to be a way. And there is. It’s still 2D BUT it’s a big step closer to…. not sure what but it’s something I’ve been shooting towards. I’ll know it when I see it.
To nerds like me, here’s what ended up doing it. It extracts the vector information and THEN subtracts the video by a fascinating method: Go 1/2 way gray, then split into black and white parts. So simple.
ffmpeg -flags2 +export_mvs -i %1 -vf “split[original],codecview=mv=pf+bf+bb[vectors],[vectors][original]blend=all_mode=difference128,eq=contrast=7:brightness=-1:gamma=1.5″ %1-vector-flow.mp4