4dots Software
CODE HELP BLOG
To make a zoom out video with ffmpeg, use the following code.
ffmpeg.exe -loop 1 -t effectDurationInSeconds -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='(effectDurationInSeconds*25-on)*(1/0.1)
/(effectDurationInSeconds*25)':d=effectDurationInSeconds*25:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'
:s=imageWidthximageHeight[vo]" -map "[vo]" -y zoomout.mp4
effectDurationInSeconds : duration of the effect in seconds
imageWidth, imageHeight : image width and height.