FFmpeg By Example is a documentation website to showcase all the unique and different ways to use FFmpeg. Got a cool idea to share with the community? Send your contribution here! ffmpeg -f lavfi -i testsrc=duration=30:size=1280x720:rate=30 -vf 'crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(t*1.25):(in_h-out_h)/2 +((in_h-out_h)/2)*sin(t*1.625)' -c:v libx264 -q:v 1 output.mp4