ffmpeg -i input.mp4 -i mjj.png -filter_complex "[1:v]scale=100:50[img1];[0:v][img1]overlay='if(ld(0), if(lte(mod(t/30,1),0.05),st(0,0);NAN,ld(1)), st(0,1);ld(1);st(1,random(time(0))*(W-w));NAN)':'if(ld(0), if(lte(mod(t/30,1),0.05),st(0,0);NAN,ld(1)), st(0,1);ld(1);st(1,random(time(0))*(H-h));NAN)'" -y output.mp4 |