Uploaded April 2015 | Updated September 2026, 50 minutes ago
It turns out the Raspberry Pi camera can (in addition to writing out h264 video) provide an alternative data stream which consists of the macroblock data used by the h264 video stream, which is a collection of vector data for the predicted motion of each block, and a sum of the absolute differences in pixel brightness between adjacent frames. Using gnuplot, I superimposed this data on top of the original video. The insight is quite telling: it probably will help me create a motion detection routine with much lower sensitivity to wind noise.
It turns out the Raspberry Pi camera can (in addition to writing out h264 video) provide an alternative data stream which consists of the macroblock data used by the h264 video stream, which is a collection of vector data for the predicted motion of each block, and a sum of the absolute differences in pixel brightness between adjacent frames. Using gnuplot, I superimposed this data on top of the original video. The insight is quite telling: it probably will help me create a motion detection routine with much lower sensitivity to wind noise.










