Fix distorted mp4 files In our university sometimes the recordings of videos are very distorted.

Example frame (please ignore the red bar it's just there for privacy reasons):



I know that basically I would need to move each pixel of each frame horizontally based on its vertical position. Is there a way to do this with FFmpeg?

Thanks in advance!
Thanks to @Gyan, I was able to fix it.

ffmpeg -i input.mp4 -vf "geq=p(mod(X+Y*2\,W)\, Y)" output.mp4