Local note: If you are on UNH's spice machines we already have all of the conversion programs installed.
There is one problem with this arrangement if you are working on an SGI workstation. The movieconvert program that is now part of OS 5.3 requires file names where the numbers are in fixed field. For example, the pressure field at the 35th step should be in a file called pressure35.rgb, but in your program you generated the file and called it pressure0035.rgb so that you could use the movieconvert program. Since the program converts to quicktime and not mpeg you may want to create two movie versions (or use mpeg since it compresses MUCH better). To convert file names from the SGI format to the format that mpeg_encode prefers try this perl script that we use. You can then use mpeg_encode on the new sequence of files.
The parameters that are used in the conversion process are specified in a separate file. The file must follow a very specific format. For an example of the format file see pressure.param. We have found this to give decent results. Because we used small numbers for IQSCALE, PQSCALE, and BQSCALE the compression is not as tight as some would like. However, it does offer relatively sharp output. Of course, your mileage will vary!
The parameter file pressure.param, does the following things:
Once all these things are in place and you have a parameter file (pressure.param) you can encode your files with the following command:
mpeg_encode pressure.param
After you have gone out for a cup of coffee you will find a new mpeg file.
Warning The parameter file given in this example seems to do a better job of generating sharper images than the parameter file that is given in the gif to mpeg tutorial. The downside is that it uses more memory. Look at both and compare for the best results.