Currently playing with something like this, however it just repeats the initial frame for 90 seconds and zooms out on that. I want the zoom to occur as the video plays. I changed to d=1 and then it plays the animation but each frame is zoomed in to the starting amount.
Code:ffmpeg -i input.mp4 -vf "zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=90" -c:v libx264 -t 5 -s "800x450" output.mp4
+ Reply to Thread
Results 1 to 5 of 5
-
-
-
I believe ffmpeg's zoompan is only meant for still images. Here's a simple AviSynth script that does a similar zoom out but with video:
Code:LWLibavVideoSource("input.mkv", cache=false, prefer_hw=2) # 1920x1080 source ConvertToYV24() Animate(0,89, "ZoomOut", last,0.62, last,0.48) Crop(0,0,800,450) Trim(0,89) # top left corner based zoom function ZoomOut(clip c, float factor) { width = int(c.width*factor) height = int(c.height*factor) BilinearResize(c, width, height) Overlay(BlankClip(c), last) }
-
I think if you use pzoom in zoompan it can be used on video
Code:ffmpeg -i input.mp4 -vf zoompan=z='if(lte(pzoom,1.0),1.6,max(1.001,pzoom-0.004))':d=1:x='iw/2-(iw/zoom/2)':y='0':s=800x450:fps=30000/1001 -c:v libx264 -crf 20 output.mp4
That's what I would do; you have easy and full control over timing, keyframe interpolation, etc...
Similar Threads
-
help: why some mp4 files plays in <video> but not after downloaded?
By vnaeli in forum Video Streaming DownloadingReplies: 2Last Post: 1st Jul 2021, 03:05 -
mp4 plays on pc normal, but plays on tv sideways and upside down
By Ameristralian in forum Software PlayingReplies: 5Last Post: 5th Dec 2019, 04:14 -
MP4 editor software with Fade in/out effect
By efiste2 in forum Newbie / General discussionsReplies: 0Last Post: 2nd Nov 2019, 13:16 -
Does CGI animation require more or less bitrate than Hand Drawn animation?
By killerteengohan in forum Newbie / General discussionsReplies: 13Last Post: 29th Mar 2019, 10:50 -
Zoom in effect of video in the background, in a video slightly in advance a
By HiLem in forum EditingReplies: 1Last Post: 30th Jul 2018, 19:20