Help Shape the Future of Space Exploration

Join The Planetary Society Now Join Now!

Join our eNewsletter for updates & action alerts

   Please leave this field empty
Blogs

Headshot of Emily Lakdawalla

The Making of Martian Clouds in Motion: Part 2, tweening the animation

Posted by Emily Lakdawalla

28-08-2011 18:14 CDT

Topics: atmospheres, podcasts and videos, Mars Express, Mars, explaining image processing

Two weeks ago I posted an awesome video of Martian clouds in motion. Last week I explained how I accessed the Mars Express images that comprise the animation. Today I'm going to explain how I turned the five-frame animation of Mars Express images into a smooth movie. Huge, huge thanks go to Ian Regan for explaining this process to me. Unfortunately, the process described below only works on Windows machines, but there have to be similar tools out there for other platforms.

First I used the Photoshop File > Export > Render Video command to turn the animation into five PNG files. Here is a ZIP archive containing the five images of moving clouds on Mars captured by Mars Express' HRSC. You can use other images, of course, but make sure that their dimensions are multiples of 16 (necessary for the frame rate conversion filter).

First you need to download and install two pieces of open-source software and add one plugin. The software is:

Unzip the file and place MSU_FRC.dll in the plugins directory in your AviSynth install folder.
he animation frames should all be in one directory, by themselves. Run VirtualDub (there's no program menu item; just double-click on VirtualDub.exe). Go to File > Open Video File and select the first frame in your animation. It will load the five frames. Save this as an AVI (File > Save as AVI).

Now you need a script that will use the MSU Frame Rate filter and AviSynth to upconvert the number of frames in your animation. AviSynth scripts are very simple text files, and as with all such things, it's easiest just to plagiarize somebody else's functioning script. Here's the one I used, which is also reproduced below; just edit it to point to the name of your AVI file. This script upconverts the frame rate by a factor of 12.

AviSource("h8676_stack_colorized_titles.avi")
onvertToYV12().MSU_FRC(12, "slow")
onvertToRGB24()


OK, now go back to VirtualDub and go to File > Open and open the script file. Your animation now has lots more frames -- 12 times as many, if you didn't change the script I used. But those frames are used up in the same amount of time because VirtualDub increased the frame rate by the same factor. So go to Video > Frame Rate and set the frame rate to some much lower number. Now you can save it as an AVI again, and enjoy the much smoother view.

ESA / DLR / FU Berlin (G Neukum); animation by Emily Lakdawalla

Martian clouds in motion (H8676)

The images that compose this animation were taken on October 14, 2010, on Mars Express' 8676th orbit, and show an area within Noachis Terra to the west of Hellas basin, around 45 degrees south, 38 east. There are two components to the apparent motions of the clouds. One is real west-to-east cloud motion over the two-minute period of the animation (readable from the motions of the shadows along the ground). The other component has to do with the different look angles of the different channels of HRSC and the significant thickness of the cloud layer. In the first frame, HRSC was looking forward (northward) along its south-to-north orbital path; in the last frame, it was looking backward (southward). Because of this changing perspective, the upper-level clouds appear to move southward with respect to the lower-level clouds.

The color comes from red, green, and blue channels of the HRSC channel and is an overlay applied to the animation, so the color information is actually not animated -- only the brightness information moves. This works visually because Mars is relatively monochromatic.

Good luck! I was planning to have a second cloud animation to show you at the end of this tutorial but I haven't yet found one where the color worked as well as it did in the first one I posted. I hope some of you will try this process out and show me your handiwork!

 
See other posts from August 2011

 

Or read more blog entries about: atmospheres, podcasts and videos, Mars Express, Mars, explaining image processing

Comments:

Leave a Comment:

You must be logged in to submit a comment. Log in now.
Facebook Twitter Email RSS AddThis

Blog Search

LightSail - Flight by Light

Support LightSail!

In 2016, The Planetary Society’s LightSail program will take the technology a step further.

I want to help!

Featured Images

Aillik, Curiosity sol 322

Shaler outcrop, Curiosity sol 316
Wernecke, Curiosity sol 169
Altar Mountain
More Images

Featured Video

View Larger »

Space in Images

Pretty pictures and
awe-inspiring science.

See More

Join the New Millennium Committee

Let’s invent the future together!

Become a Member

Connect With Us

Facebook! Twitter! Google+ and more…
Continue the conversation with our online community!