Help with video code: distortion input videos

Halo sableRaph,

Thank you for your response. I will work on it, and give you a clear question.

I’m starting from 0.