I need anyone pro on ffmpeg

stefani

Newbie
Joined
Jul 30, 2021
Messages
11
Reaction score
4
i need some code for ffmpeg.
can you share with me?
 

10zen

Power Member
Joined
Feb 26, 2010
Messages
643
Reaction score
270
Haven't used the code for it.
You might want to try this:

It has some explanations. Try changing some values until it works for you.
 

Eben ezer

Newbie
Joined
Jul 28, 2021
Messages
35
Reaction score
2
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
 

10zen

Power Member
Joined
Feb 26, 2010
Messages
643
Reaction score
270
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?
https://www.reddit.com/r/ffmpeg/comments/j320ul
You can just search ffmpeg zoom in zoom out on google and play with codes you find.
 
Top