Makers Army
Articles

Videography

Give One Still Photo a Slow Camera Move — We Made This Five-Second Space Clip for Free

We used a real Webb image and free FFmpeg to make a five-second vertical push-in. See the result, copy the tested command and understand what gets cropped.

By Sam 17 November 2026
Beginning and end frames of a real digital push-in over the Pillars of Creation
Two frames from our tested digital push-in, side by side; NASA, ESA, CSA, STScI and credited image processors; cropped, animated, resized and padded.

You've got a great photograph and need a little movement for a video. You could throw a dramatic transition at it, add six effects and make the whole thing look like it escaped from a 2009 slideshow. Or you could move into the image slowly and let the picture do the work.

We tried the second option with a real James Webb Space Telescope image. The result is a five-second vertical clip, made with the free command-line tool FFmpeg. Below is the exact command we ran, the original image and the actual beginning, middle and end of the output.

A quick honesty note: the camera movement is an edit applied to a still image. This is not footage of a spacecraft flying through the nebula. The source is a NASA, ESA, CSA and STScI telescope image made from infrared exposures with colours assigned to different wavelengths.

Here's the actual result

Actual preview of a five-second digital push into the Pillars of Creation still

Our animated preview of the tested five-second move; the GIF is a smaller, lower-frame-rate preview of the MP4. Source image: NASA, ESA, CSA, STScI; image processing by Joseph DePasquale, Anton Koekemoer and Alyssa Pagan (STScI); cropped and animated.

The motion is a gentle digital push towards the centre. Nothing inside the photograph has been independently animated. If the preview doesn't move on your device, open the GIF directly. You can save it as a small reference for the exercise; the actual MP4 you make using the instructions is larger and smoother.

Our tested output is 720 × 1,280 pixels, 25 frames per second and five seconds long, with no sound. The preview above is compressed to make it easier to load. This example was tested on Windows with FFmpeg 9.0.2 on 15 November 2026.

What you need

  • The free FFmpeg command-line program, installed and available in your terminal. FFmpeg's official download page links to builds for Windows and other operating systems.
  • The 1,155 × 2,000-pixel NASA image. Save it as pillars.png in a new, empty folder.
  • A terminal opened in that folder and enough space for the image and output.

If using FFmpeg via a terminal sounds like a trip to the dentist, that's fair. The filmmaking idea is still useful in an editor with position and scale keyframes. The tested instructions below use FFmpeg so the input, settings and output are explicit rather than pretending every editor has the same buttons.

The original portrait image of the Pillars of Creation from the James Webb Space Telescope

The actual source before our video edit. NASA, ESA, CSA, STScI; image processing: Joseph DePasquale, Anton Koekemoer and Alyssa Pagan (STScI); resized for display.

NASA's image page identifies the object, credits the people and organisations involved and explains how the colours were assigned. Keep the credit with your project and check NASA's media guidelines before using a NASA image commercially; identifiers, endorsement and third-party material have separate restrictions.

Step 1: check the picture and the folder

Download the linked image and name it exactly pillars.png. Make a new folder for this test and put the image inside it. Open your terminal in that folder. Type ffmpeg -version and press Enter. If you see a version number, you're ready. If the command isn't found, finish installing the build you chose and make sure your terminal can find FFmpeg.

The image we used is portrait but a little wider than the 9:16 output. Our command first makes a centred 1,125 × 2,000 crop, which gives it the right proportions. It then moves into that crop. That means a small amount at the sides is excluded before the move begins; the zoom removes more of the outer edge as it progresses.

Important: the command below is sized for this specific NASA image. A different photo needs a crop that fits its dimensions and chosen aspect ratio. Don't paste these exact crop numbers onto a smaller image and expect them to work.

Step 2: make the five-second move

Copy this single command into the terminal, then press Enter:

ffmpeg -hide_banner -loglevel error -y -loop 1 -framerate 25 -i pillars.png -t 5 -vf "crop=1125:2000,zoompan=z='min(pzoom+0.002,1.25)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=1:s=720x1280:fps=25,format=yuv420p" -c:v libx264 -crf 18 -movflags +faststart push.mp4

It writes push.mp4 in the same folder. The -y option replaces a file with that name without asking, which is why we started in a new folder. When the command finishes, open the MP4 in your usual player. There isn't an audio track; that's intentional.

The first frame of our real vertical push-in render

The first frame of our actual FFmpeg output. The initial crop is centred on the source image; NASA, ESA, CSA, STScI and the credited image-processing team.

The useful bits of the command are these:

  • -t 5 sets the five-second duration.
  • fps=25 makes a 25-frame-per-second output.
  • s=720x1280 sets the vertical frame size.
  • pzoom+0.002 increases the crop very gradually from the previous frame; 1.25 caps the enlargement.
  • The x and y expressions keep the zoom centred.

The FFmpeg filter documentation explains zoompan if you want to go deeper. You do not need to memorise all of it to run the example.

Step 3: check the middle, not just the start

The middle frame of the same real push-in render

At about 2.5 seconds, the pillars are larger and some edge detail has moved out of frame. Actual tested output; telescope image credits as above.

Watch the middle of your export. Is the part you want to show still in the frame? Is the movement smooth, or does it call attention to itself? A camera move has a job: perhaps it draws attention to a detail, or gives a voiceover room to breathe. If you're only adding it because the editor had a button, it may not be helping.

Notice the bright star near the top and the lower pillars. They don't travel independently of the picture; the whole image is being enlarged around its centre. That's why this is a digital crop, not a real camera moving through three-dimensional space.

Step 4: inspect the end frame

The final frame of the same real push-in render

Near the end of the tested clip, the crop has tightened further. Actual output; telescope image credits as above.

The end frame loses some of the outer scene. That's the price of a push-in. On a portrait of a person or a photo of a product, check that the move doesn't accidentally cut off a face, logo, hand or important edge. If it does, use a smaller enlargement, reposition the move or choose a different image.

Also look closely for softness. The program is enlarging existing pixels, not discovering new detail. We started with a 2,000-pixel-tall source for a 1,280-pixel-tall output, giving the crop some room. A much smaller source may look soft sooner. Sharpening cannot recover information that was never there.

Make it your own without breaking the example

If five seconds feels too long, change -t 5 to another duration. Remember that the zoom changes per output frame, so changing duration also changes how far it travels before stopping, up to the cap. To make the move more subtle, test a smaller increment than 0.002. Change one value at a time and compare the result; it's much easier to see what happened.

For a client photograph, use an image you have permission to edit and check that the crop represents the subject honestly. This technique can add motion to a product photo, family archive image or title sequence, but it should never be described as footage of an event that was actually filmed.

One still, one small move and a bit of restraint. That's often all the video needs — and your photograph gets to stay the interesting part.

Sources

  1. 1.Pillars of Creation original image and credits — NASA
  2. 2.NASA image and media guidelines
  3. 3.FFmpeg downloads
  4. 4.FFmpeg zoompan filter documentation
  5. 5.Actual animated result from this tutorial

Share this article

Know someone who would enjoy this? Pass it along.