Reputation: 2715
I am trying to create a 5 second video of an image and pan across the image. I am familiar with the zoompan video filter and I can get the result as desired with zooming in or out. But, I need to be able to just pan across the image without zooming in or out. How can I accomplish this? The current command I have to apply a simple zoomin to the middle right of the image is:
ffmpeg -y -framerate 25 -loop 1 -i img-1.png -filter_complex "[0:v]scale=5120x2880,zoompan=z='min(zoom+0.0005,1.5)':x='5120':y='ih/2-(ih/zoom/2)':d=125,trim=duration=5" -crf 1 -preset ultrafast out.mp4
How can I change the filter to accomplish ONLY the pan from the middle to the right without the zoom in?
Upvotes: 1
Views: 6043
Reputation: 2509
Sounds like a job for crop filter. Something like
crop=iw/2:ih:iw/2*t/5:0
Upvotes: 2