'ffmpeg: zoom image to positions X Y (zoompan)

I'm using ffmpeg to zoom an image to a specific point (x, y).

I want the point to be the final position of the zoom. The command I use now is:

ffmpeg -y -i zoomInimg.jpg -vf "scale=6198:2350:-1,zoompan=z='min(max(zoom,pzoom)+0.06,10)':d=2400:x=4000 :y=1000 :s=6198x2350" -t 5 zoomIn.mp4

I want to have a video of zooming an image to the point (x=4000, y=1000).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source