4dots Software
CODE HELP BLOG
To make a zoom in video with ffmpeg, use the following code.
ffmpeg.exe -r 25 -i firstImage -filter_complex
"[0:v]pad=w=1/0.1*iw:h=1/0.1*ih:x=(ow-iw/2):y=(oh-ih)/2,zoompan=z='on*(1/0.1)/(3*effectDurationInSeconds)'
:d=(3*effectDurationInSeconds):x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=imageWidthximageHeight[vo]"
-map "[vo]" -y zoomin.mp4
effectDurationInSeconds : duration of the effect in seconds
imageWidth, imageHeight : image width and height.