FFmpeg — calculate zoompan filter duration

Viewed 1786

I want to make 30 seconds video with smooth small zooming effect of an image. What i do:

ffmpeg -y -loop 1 -i 1.png -vf "zoompan=z='min(max(zoom,pzoom)+0.0015,1.1)':d=1:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s='1000x1000'" -c:v libx264 -t 30 1.mp4

How to modify my ffmpeg zoompan params for zoom effect during 30 seconds (all video time)? Now it produce 3 seconds effect at all. Docs says:

d — Set the duration expression in number of frames. This sets for how many number of frames effect will last for single input image.

But my experiments with d falied. Thanks!

1 Answers
Related