Generate video from images with ken burns effect using ffmpeg

ffmpeg, php, zooming

Solution

I don't think this can be done with ffmpeg alone. I have done this in the past with a tool called diascope. I never hear much about it, but it produces some of the best picture slideshows I have seen since you can use effects like Ken Burns. It does use ffmpeg in its final step to actually encode the video.

Take a look at the examples, it should be pretty straightforward.

Problem

I am trying to generate video from images. The following code generates the video, 1 frames per 3 seconds. ``` exec("ffmpeg -f image2 -r 1/3 -loop_input -shortest -y -i tmp/image%3d.jpg -i tmp/ag1.mp3 -target ntsc-dvd -s 1280x720 tmp/video.mwv"); ``` I want to apply ken burns effect to it, I have searched a lot but couldn't find any solution. Can anybody help me out ? If can provide any code snippet, will be really appreciated.

Original source