create animation or AVI or animated gif from series of tifs


From a series of tifs, what is the easiest method to create an animation?

First of all it IS preferrable to use TIFS, since it is a format that is relatively "pure." Formats such as JPEG and gif are substantially filtered and produce low quality images in many circumstances.

So we start with a series of TIFS, then make a set of GIFS and then convert them into an animated GIF or an AVI...


Creating AVI files -- some rather easy way:

In Fluent, use e.g. "Solve -- Animate" to export a series of .ppm files (warning -- you may need plenty of disk space).

Use mpeg_encode.exe (Windows FLUENT users will find it at Fluent.Incntbinntx86) to create a mpeg video.
Use a param file similar to the one listed below.

Finally, simply RENAME the mpeg file to something.avi -- and there your are!

The param file:


PATTERN I
GOP_SIZE 12
SLICES_PER_FRAME 1
PIXEL FULL
RANGE 8
PSEARCH_ALG EXHAUSTIVE
BSEARCH_ALG CROSS2
IQSCALE 8
PQSCALE 8
BQSCALE 8
FORCE_ENCODE_LAST_FRAME
REFERENCE_FRAME ORIGINAL
OUTPUT ani_.mpg
BASE_FILE_FORMAT PPM
INPUT_DIR .
INPUT_CONVERT *
INPUT
ani_0001.ppm
ani_0002.ppm
ani_0003.ppm
ani_0004.ppm
ani_0005.ppm
ani_0006.ppm
ani_0007.ppm
ani_0008.ppm
ani_0009.ppm
ani_0010.ppm
ani_0011.ppm
ani_0012.ppm
ani_0013.ppm
ani_0014.ppm
ani_0015.ppm
ani_0016.ppm
ani_0017.ppm
ani_0018.ppm
ani_0019.ppm
END_INPUT
Steps for movie making...

With your tif sequence, create a gif sequence using
the "convert" program from
<a target=_blank href="http://www.imagemagick.org">http://www.imagemagick.org</a>http://www.imagemagick.org

Then, at your prompt (UNIX, here):

% foreach $i (*.tif)
convert $i $i.gif
end

Convert will then make square_contours-0001.tif.gif ... square_contours-0100.tif.gif.

Then, use Gif Construction Set (a Windows program available for $20)
to make .gif sequence into AVI

To make animated gif, use the command

convert -delay 20 file1.gif file2.gif ... filen.gif animation.gif

Which to use?
* Animated gifs are viewable with your favorite browser.
* AVIs presentable in presentations with Powerpoint.

The choice is yours.





Show Form
No comments yet. Be the first to add a comment!