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.
I strongly recommend seting the video quality to at least 2K.