h2non / videoshow

Simple node.js utility to create video slideshows from images with optional audio and visual effects using ffmpeg
MIT License
865 stars 160 forks source link

Add zoom effect #21

Open h2non opened 9 years ago

h2non commented 9 years ago

CLI:

ffmpeg -i small.mp4 -vf "zoompan=z='min(zoom+0.0015,1.5)':d=125:s=640x360" -c:v libx264 -c:a libfdk_aac -y smallzoom.mp4
ffmpeg -loop 1 -i image_1.jpg -vf "zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=125" -c:v libx264 -t 5 -s "800x450" zoomout.mp4

https://www.youtube.com/watch?v=Fn-IkKbPWhc

SagiMedina commented 6 years ago

I would love to be able to do this with videoshow!