Calculate optic flow for a video. Save as HSV. Keep 1:1 frame equivalence to original video

you’ll need pyav. you’ll need to copy the pts of the source frame onto your optical flow frame. take care that the timebase is right.