NOAA

Geophysical Fluid
Dynamics Laboratory

Skip to: [content] [navigation]
If you are using Navigator 4.x or Internet Explorer 4.x or Omni Web 4.x , this site will not render correctly!

vis > vis guide > animation > animation

Animation

  1. Overview
  2. Container Formats
  3. Creation Software
  4. Playback Software
Related Topics: Image Manipulation, Creating a DVD, Converting Analog and Digital Video

1. Overview

We summarize only those formats and applications recommended for scientific visualizations where accuracy in color and clarity are critical. Typical visualizations include pseudo-colored contours and surfaces as well as text labels. TIFF and PNG images should be used whenever possible as input to the suggested creation programs (images that aren't just conversions of JPEG images!). In other words, the images should have been either "screen-captured", or converted from PostScript files. More information on image conversion can be found here. Also, animated GIFs are de-emphasized due to their limited colormaps. The general animation creation process is illustrated below.

Experience has shown that no single animation format is sufficient for every purpose, so we listed some common scenarios and recommended formats and tools to use to encode them.


2. Formats

Many variants exist for each format due to the modularity and plethora of compression schemes. These compression schemes are commonly referred to as CODECS (COmpressors/DECompressors). So it no longers suffices to say that your animation is just an AVI, because the viewer may not have the necessary plug-ins in their playback software. Saying "an Indeo 5 AVI" is more appropriate, if that was the compression chosen.

The following table has format/codec pairs selected by GFDL for their ability to preserve 24-bit colormaps throughout an animation's frames while also keeping smoothing (blurring) to a minimum, if any. As you see, there are many cases where plug-ins must be installed in advance by a playback viewer's adminstrator. GFDL recommends mplayer for playback and mkmpeg4 for animation creation targeting MS Windows platforms. For Mac OS X systems, DivX is recommended.

Examples reflecting typical animation styles created at GFDL are available to compare each format/codec's visual output quality and file size.

Example 1 Example 2
PNG Images TAR.GZ (232 KB) PNG Images TAR.GZ (3 MB)

Format Compression Creation Software Playback Portability Example 1
(in bytes)
Example 2
(in bytes)
mplayer PowerPoint 2000 PowerPoint 2003 PowerPoint OSX xanim
MPEG-4 DivX Toast Yes Yes1 Yes1 Yes1 - 382,804 398,732
Quicktime Sorenson Video 3 Toast Yes Yes3 Yes3 Yes - 401,014 257,470
MPEG-4 MS v.2 mkmpeg4 Yes Yes Yes - - 843,650 373,110
AVI Ligos Indeo 5 MainActor Yes Yes2 Yes2 - Yes 839,016 666,616
QuickTime Animation makemovie Yes Yes3 Yes3 Yes Yes 965,538 7,695,942
GIF LZW gifmerge - Yes Yes Yes Yes 369,073 1,651,427
AVI None mkavi - Yes Yes Yes Yes 20,275,968 22,119,216
1 Requires (free) plug-in from http://www.divx.com
2 Requires (free) plug-in from http://www.free-codecs.com/download/Ligos_Indeo_Codec.htm
3 Requires HTML embedding within a slide and plug-in as explained here.

AVI

AVI (Audio Video Interleaved) is a format first developed for the PC (namely the Windows OS). It also allows an interleaving of the audio and video tracks. Refer to the table above for creation and playback software.

GIF89a

This format basically consists of a number of GIF images stored in one file with inter-frame timing information. Each image can have its own colormap (limited to 8-bit just like regular GIF images) or all the images can share a global colormap. It is really designed for simple animations on Web pages (using Netscape 2.0 or higher) because there is no frame-to-frame compression, just the usual LZW compression for each individual frame. Also, players like XAnim always buffer all the images in memory which severly limits its usefullness with large animations. The GIFMerge and WhirlGIF programs provide a way to create them on the SGI. Here is a source of more information on GIF89a animation.

MPEG-4

MPEG-4 (a standard from the Motion Picture Experts Group) is an unusual format when compared to the other types. In general it is actually a standard for multimedia applications, with video compression being only one part of many.

One of the things that makes it so unique is that you can actually specify how much compression you want for an animation sequence using adjustable "quality settings". Briefly, the basic idea of MPEG encoding is predicting motion between images using three types of "frames". They are I (intra) frames, P (predicted) frames, and B (bidirectional) frames. Each source image is associated with a frame type which determines the algorithm used to encode it into the animation. What this means is that the quality setting can be individually specified for each of these frame types which affects their encoding algorithms and allows tremendous control over the final animation. In practice, setting them all to the same value will usually produce reasonable results.

QuickTime

QuickTime is a format first developed for the Macintosh computer. It allows a high-quality audio track to be synchronized with the video. The basic compression scheme supported by GFDL is Run Length Encoding (RLE, or Animation), which is loss-less when used with a 100% quality creation parameter. Apple is the official source of QuickTime information (including samples) on their WWW pages. Refer to the table above for creation and playback software.

3. Creation Software

animate

DESCRIPTION :

animate is a simple command-line program to preview, but not save to disk, an animation using an image sequence. It is just one of many useful programs bundled with ImageMagick, the free, open-source collection of imaging tools.

PLUSES :

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

gifmerge

DESCRIPTION :

GIFMerge is a program for assembling a number of GIF images into a GIF89a animation file usually for direct display on WWW pages. It allows the specification of inter-frame timing for precise control over how long each frame is shown when played back. It also has the ability to specifiy one of the colors as being "transparent" so that backgrounds can show through that color when the animation is on a WWW page. The transparent color is specified as an index number (0-255; the background color is frequently 0) or with the actual RGB components.

PLUSES :

MINUSES :

HOW TO INVOKE :

INFO / DOCUMENTATION :

MainActor

DESCRIPTION :

MainActor is a commercial, graphical program for arranging and encoding image sequences into some (older) AVI animation formats. Each image in the sequence is assigned a duration for display, which can be unique or global. This can be useful for images that contain longer passages of text, thus allowing a viewer to read during playback without pausing the animation itself.

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

makemovie

DESCRIPTION :

makemovie is an old, but still useful command found on IRIX machines. It will create a loss-less QuickTime animation from the command-line for a sequence of images.

PLUSES :

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

mkavi

DESCRIPTION :

mkavi is a Perl script that invokes MATLAB to create an uncompressed AVI animation. Since MATLAB encodes the image sequence, any image format can be used as input and the script can be run on any platform supporting MATLAB. Since the output is uncompressed, the image quality is not compromised, however, the file size could be potentially too large to be distributed practically. Nevertheless, it is the most portable format for playback and can be used as a reference for comparing other animation compression schemes.

PLUSES :

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

mkmpeg4

DESCRIPTION :

mkmpeg4 is a Python script for creating MPEG-4 animations with MEncoder, the encoder shipped with the free, open-source media player MPlayer. Also, every input image is first converted to an RGB format with ImageMagick before encoding. mkmpeg4 was designed to use either the MS MPEG-4 v.2 or DivX compression schemes because of their output's image-quality, small size and portability. The predefined parameters chosen for MEncoder best suit scientific visualizations, but may be customized by the user by simply editing the script.

PLUSES :

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

Toast

DESCRIPTION :

Toast is a commercial program meant for DVD authoring and duplication, however it's also capable of digital movie conversion. One of the higher quality codecs that it supports is DivX 6 and should be used over all others offered by Toast if the audience supports the format, otherwise use Sorenson Video 3. With the proper settings, the DivX codec may be very good at compressing your animations to small files while also remaining compatible to all the major operating systems. This is GFDL's recommended tool to use for animations meant for general viewing on Max OS X systems, but is equally suitable for Windows, Linux and PowerPoint hosts.

PLUSES :

MINUSES :

HOW TO INVOKE :

INFO / DOCUMENTATION :

whirlgif

DESCRIPTION :

WhirlGIF is a program for assembling a number of GIF images into a GIF89a animation file usually for direct display on WWW pages. It allows the specification of inter-frame timing for precise control over how long each frame is shown when played back. It also has the ability to specifiy one of the colors as being "transparent" so that backgrounds can show through that color when the animation is on a WWW page. The transparent color is specified as an index number (0-255; the background color is frequently 0) or with the actual RGB components.

PLUSES :

MINUSES :

HOW TO INVOKE :

INFO / DOCUMENTATION :

4. Playback Software

MPlayer

DESCRIPTION :

MPlayer is a free, open-source program targeted for the Linux platform. It is well known in the linux community and supports virtually every codec compression scheme. A graphical version is also available with customizable "skins" that alter the interface's look-and-feel. It also isn't limited to just playing video, but other media such as MP3 and CD.

PLUSES :

MINUSES :

HOW TO INVOKE :

HINTS :

INSTALLATION :

INFO / DOCUMENTATION :

PowerPoint

DESCRIPTION :

PowerPoint is not a playback viewer per se, but is often used for embedding animations, and as such raises many playback portability issues. PowerPoint does playback many MS accepted formats, plus others when plug-ins are available. An animation can be scaled and looped within PowerPoint, but lacks any seek capabilities, other than "rewind".

MINUSES :

HOW TO INVOKE :

HINTS :

INFO / DOCUMENTATION :

xanim

DESCRIPTION :

xanim is a legacy program with a GUI control panel. It plays only older animation formats such as QuickTime (Animation) and uncompressed or Indeo 5 AVIs. It's GUI does allow frame-by-frame seeking in an intiutive fashion plus variable speed control.

PLUSES :

MINUSES :

HOW TO INVOKE :

INFO / DOCUMENTATION :

smaller bigger reset
last modified: February 01 2007.