I created this effect by writing a simple video-processing program. At each pixel, the darker the pixel is, the more it gets delayed.
So, if the video shows a moving object, the light parts of the object move before the dark parts move.
For smooth video, set the quality to at least 2K.