Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Hi,
I have recently started looking into ImageMagick to generate a series of frames to be later combined into a movie using ffmpeg. The frames need to simulate a ken burns style pan and zoom where each image will pan and zoom at 30fps for up to 20 seconds (600 frames). Doing this at 1920x1080 is quite processor intensive but i have found a fair bit of optimizations already by running convert concurrently with 20 shell commands and bulk writing out 40 images using mpr.
That looks good, though I've never used "-interpolate Blend". You are simply panning here (adding a constant to X). If you also want to zoom, multiply the scale number by a constant factor between frames (as you probably know).
I write video scripts so they can be run at any resolution, so I can create the edit list without having to wait for the computer, then render over lunch or overnight at full resolution. For this, you can have "%[fx:...]" expressions in the SRT. You might also have a "-quality" in there, eg "-quality 40" for quick renders, "-quality 100" for high quality.
Adding the quality gave me some more speed improvements, if i am doing a lower quality codec encoding why have highest quality input frames.
I will have a look at fx, if you have some examples to share that would be great. My zoom and pan will be constant, I was only testing pan above eg pan from X to X + 100 over 600 frames, same with Y and Zoom.
Rendering this out at 1920x1080 with 5 frames at 25fps takes about 150 seconds. Using avfoundation i can do this in 20 seconds. So annoying there is nothing like avfoundation for windows. FFMpeg is almost there but there are problems with ZoomPan. My previous solution using quicktime was taking closer to 500 seconds