user27354: 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!

user27354: Thanks to @Gyan, I was able to fix it.
ffmpeg -i input.mp4 -vf "geq=p(mod(X+Y*2\,W)\, Y)" output.mp4


27354: <p>In our university sometimes the recordings of videos are very distorted.</p>

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

<p><a href="https://i.imgur.com/7AYxBEZ.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/7AYxBEZ.png" alt="Example Frame"></a></p>

<p>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?</p>

<p>Thanks in advance!</p>
 27354: <p>Thanks to @Gyan, I was able to fix it.</p>

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