Creating a Time Displacement - request

I wanted to create a distort effect, that divides video to tiny little stripes. Stripes from consecutive frames are put together in such a way, that bottom of the video is delayed. I made this setup of nodes: white and black mask cuts a strip and adds image to the next.



But I want to have more control. Resolution independence and also number of stripes, checkbox whether to blur the seam between stripes or different shapes not only stripes. Also loading image sequence 30 times is a thing.
If you have some ideas please share them.

I think of a script that could everything, however I don’t have any experience on blender coding yet, but I look forward to learn that after my exams.

I did test that node setup with 24stripes only, creating 1sec delay on bottom, but I didn’t have steady camera.

If someone tells me how to code this I will be very happy :slight_smile: