View Single Post
Old 27th May 2009, 20:56   #86  |  Link
jjones3535a
Registered User
 
Join Date: Apr 2008
Posts: 18
Help zooming in and then out

I'm trying to use the KenBurnsEffect function to first zoom in on a video and then zoom back to 100%. I get it to zoom in, but then it just stays zoomed in for the rest of the video.

Here's what I have.
##############
fr=5

clip = DirectShowSource("test.avi")
#this works fine, video is zoomed in for the first 3 seconds
clip.KenBurnsEffect(startFrame=0, endFrame=3*fr, startAlign=6, endAlign=4, endZoomFactor=150)

#this is where I'm stuck how to get the rest of the video to zoom back to 100% - my guess is something like this, but it is not working:
#clip.KenBurnsEffect(startFrame=16, endFrame=500, startAlign=5, endAlign=5, startZoomFactor=150, endZoomFactor=100)
############
Any help would be greatly appreciated. Great function by the way!

Thanks.
jjones3535a is offline   Reply With Quote