I need anyone pro on ffmpeg

Haven't used the code for it.
You might want to try this:
https://stackoverflow.com/questions/54547061/ffmpeg-animation-zoom-in-and-zoom-out
It has some explanations. Try changing some values until it works for you.
I've tried it, but it only zooms in once

now i use below code, i like it very much, but this code make video and audio out of sync, can you help fix it

ffmpeg -i VIDEO.mp4 -vf "zoompan=z='if(lte(mod(time,5),3),2,1)':d=1:x=iw/2-(iw/zoom/2 ):y=ih/2-(ih/zoom/2):fps=29.97" OUT.mp4
 
I've tried it, but it only zooms in once

now i use below code, i like it very much, but this code make video and audio out of sync, can you help fix it

ffmpeg -i VIDEO.mp4 -vf "zoompan=z='if(lte(mod(time,5),3),2,1)':d=1:x=iw/2-(iw/zoom/2 ):y=ih/2-(ih/zoom/2):fps=29.97" OUT.mp4
I haven't played with these codes.
Is your fps 29.97 same as your input video fps?

Your code should come from here, may be try asking there?

You can just search ffmpeg zoom in zoom out on google and play with codes you find.
 
Back
Top