Handout 21

Using tga2avi


Introduction

Converting tga files to an .avi file is a relatively painless process using tga2avi. The tga2avi software available locally here as well as here. Examples of it's use are:

usage: tga2avi <outfile> <framerate> <pattern> <start> <end> <step>

examples:
 >tga2avi out.avi 25 abcd%04d.tga 1 100 1
 Will convert abcd0001.tga through abcd0100.tga into out.avi using 25 fps.

 >tga2avi out.avi 24 a%03d.tga 1 900 1
 Will convert a001.tga through a900.tga into out.avi using 24pfs

 >tga2avi out.avi 25 img.%d.tga 2 12 2
 Will convert img.2.tga through img.12.tga (only evens) into out.avi

There is no documentation included with tga2avi other than the examples on the command line. Internally tga2avi uses the c sprintf function:

int sprintf( char *buffer, const char *format [, argument] ... );

The <pattern> you enter when you invoke the program is used as the format in sprintf. format and has the form:

%[flags] [width] [.precision] [{h | l | I64 | L}]type

In the above examples, 0 (zero) is used as a flag with the following definition:

0 - If width is prefixed with 0, zeros are added until the minimum width is reached. 

The type used is d (integer).

Once invoked, tga2avi uses the Windows video compression utilities. The window:

Allows a compresion technique to be selected. Uncompressed appears to work universally. Other compression options may or may not work depending on compression schemes you have available. Uncompressed files are large.

Other Untested Options

CMPEG - Convert a series of images to MPG format. Gives good control over advanced encoding options. For DOS. Archive includes DMPEG and RawRip.

Video for DOS (VFD) - A DOS program for converting a series of bitmapped images to FLI or AVI format. Shareware version only allows up to 256 colors. No web page listed in documentation.