Introduction: Pan & Zoom Time Lapse Photography on the Cheap

Time lapse photography is the art of showing the world at high speed. I got interested in it recently after seeing a series of amazing time lapse videos that incorporated panning, meaning the camera slowly moves while taking the source pictures. This adds a really great contrast between the fast action and the slow movement.

Normally it's tricky and expensive to pan or zoom smoothly enough for time lapses. It usually takes a motorized panning rig that costs thousands, or at least some expensive post processing software.

In this instructable you will learn how to create time lapse movies that pan and zoom using just a consumer digital camera and free software.

Here's an example video I worked on recently. Click the HD button for full effect:

Step 1: Equipment


1) An appropriate camera: The key things you need are the ability to schedule automatic shots and manually set exposure parameters. Many high end cameras support this through software or hardware attachments. Luckily you can do the same thing on a consumer point and shoot using a firmware called CHDK. I have installed this on my Canon Digital Rebel XT, but there are plenty of cheaper options. Check their list of supported cameras: http://chdk.wikia.com/wiki/FAQ#Q._What_camera_models_are_supported_by_the_CHDK_program.3F

2) Some free software: I use ImageMagick to simulate pan and zoom, then Windows Movie Maker to stitch the frames together and add music and text. If you have a mac, I'm sure iMovie can substitute for Windows Movie Maker.

3) (optional) A tripod. The camera needs to be totally steady during your shoot, so a tripod is handy. If you don't have one, check for cheap builds here on Instructables. Or just find a flat surface to place your camera on during the shoot.

4) (optional) Photoshop or Gimp to alter your images' lighting and color. Batch editing is a big topic I won't go into, but this should get you started on photoshop: http://www.creativemac.com/2002/04_apr/tutorials/psbatch.htm

Step 2: Take Your Source Photos


1) Find an interesting subject. Look for something that moves or evolves slowly over the course of a few minutes. Clouds or crowds or sunsets are decent starting places.

2) Use the largest resolution possible, and a low zoom factor. This will give you more source material when we do some heavy cropping later.

3) Don't leave any of your camera settings on 'automatic' because this will introduce brightness changes between frames. This means you should manually dial your: exposure time, aperture size, focus, white balance, ISO,and (if totally necessary) flash. Test out your manual setting to ensure it's not too bright or dark.

4) Set your camera to automatically shoot every 3 seconds and begin. I like to use 3 seconds between exposures to allow time for the images to write to memory card. If you let this run for 10 minutes, you can create 10 seconds of final footage at 20 frames per second. Other instructables describe how to do this on CHDK: https://www.instructables.com/id/How-To-Take-Time-Lapse-Photos-CHDK/

Note that you do not move the camera during the shoot. We will add the panning and zooming effects in post processing.

Step 3: Add Panning and Zooming in Post Processing


Copy your images to your computer and use ImageMagick to simulate panning and zooming using batch cropping. ImageMagick a free command line photo editor. (imagemagick.org) It might not be intuitive to use, but since it is command-line only we can create a script that will process thousands of frames automatically.
To simulate zooming: process each frame, cropping each smaller than the previous (zoom in) or larger than the previous (zoom out)
To simulate panning: process each frame, cropping each frame to the same size but continually increasing the x offset (horizontal panning) or y offset (vertical panning)
Of course if your starting file is large enough, you can combine the techniques to create a time lapse that both pans and zooms.

Attached is an example script. Read it to assure yourself it's not a virus, correct the path to ImageMagick if necessary, change the file extension to .BAT, copy it to your images folder, and execute it. This example begins with a 1098x732 section in the top left corner of the source images. Each frame it increases the viewing area by 6px by 4px (zoom out), and moves it over 2px and down 1px (pan right and down). The output files will be in the same folder with the prefix 'pan-". You can modify the values to choose just pan, just zoom, change the speed, or the starting location. (see the loop that updates xOffset, xSize, yOffset, ySize). Ensure that you are keeping the aspect ratio the same each frame. My initial section has a 3:2 aspect ratio, hence I am adding pixels in a 3:2 ratio also.

Step 4: Create the Video

Here's the steps for Windows Live Movie Maker, a free Microsoft download for Windows 7. Other editors should work fine, but you'll have to figure out the steps yourself.
1) Select all your cropped images. Add them to Windows Movie Maker using the 'Add videos and photos' button.
2) While they are all still selected in the editing pane, go to Video Tools and set the duration to something in the range of 0.1 to 0.03s, which is about 10 to 30 frames per second.
3) Add music and text
4) 'Save Movie'. Voila, done!

Comments

author
zacker (author)2014-02-03
author
zacker (author)2014-02-03

cool... thanks!! I actually bought this tiny little cam for my drone helicopter but I use it for other stuff to. Its one of those Ebay "Key fob" spy cames and it works great. I have made stop motion vids like this (but minus the panning lol ) and it did a great job. It has a function where you can have it shoot stills on a timed schedual, I think I used 1 frame per second as I drove to the store then I used Windows movie maker and slowed down the funny stuff like people walking and sped up the parts where I was driving, it was neat. Ill try it with panning effect you posted... thanks!!

author
The Porsche Fan (author)2013-01-13

This is really cool, thanks for sharing!

author
Murphy1982 (author)2012-09-27

Hi,

Your instructions look promissing. I downloaded the most current version of ImageMagick but somehow I have problems with the batch.

I made sure that the path for Image Magick is correct but somehow the first batched image has the original resolution and the images after that are all only 1 x 1 pixel.

Batch is as follows:

SET count=0
setlocal ENABLEDELAYEDEXPANSION
FOR /f %%a IN ('dir /b *.jpg') DO (
set /a xOffset = !count!*2
set /a xSize = 1920+!count!*3
set /a yOffset = !count!*1
set /a ySize = 1280+!count!*2
"C:\Program Files\ImageMagick-6.7.9-Q16\convert.exe" %%a[!xSize!x!ySize!+!xOffset!x+!yOffset!] pan-%%a
set /a count=count+1
)

Thanks in advance.

author
Murphy1982 (author)Murphy19822012-09-28

Just found the problem. in the line "C:\Program Files\ImageMagick-6.7.9-Q16\convert.exe" %%a[!xSize!x!ySize!+!xOffset!x+!yOffset!] pan-%%a

there is an x that does not belong there. Between !xOffset!+!yOffset!

author
thegeeke (author)2011-11-08

Interesting technique... I have done time lapse videos for a theater group... we put a camera up when we walk in, have it running until we clear up our equipment, and take it down. (We normally add a little humor into it also!)

Here's how I do it:
Use a video camera on the lowest quality. (Remember that the quality on a video camera is FPS and when you speed it up you increase the FPS so it works out in the end.) Then I speed it up in post with a $80 program called PowerDirector. You can do pan zoom and other effects like that with the program.

I think that it's a little easier the way I do it, both techniques are valid, but your way is the cheapest that I have seen so far. :)

Nice ible!

About This Instructable

53,966views

29favorites

License:

More by Fremonster:Pan & Zoom time lapse photography on the cheap
Add instructable to: