|
MRG Interactive DevelopmentsMesoscale Research Group, McGill University |
The generation of a high-quality MPEG (Moving Pictures Expert Group) movie
from a series of images is relatively simple in the MRG environment. A
series of utilities have been installed which greatly ease the movie-creation
process:
Of these utilities, the only one of direct consequence to the MPEG
creator is the makempeg perl script, which serves as the primary
user interface. The STEPS FOR MPEG GENERATION are as follows:
So that's all that it takes to create and play your own MPEG movie.
Remember that the MPEG format does not do well with single-pixel lines,
so it's better to use full rendering than mesh images or moving
line-graphs. If you're using xrec (Reveur en Couleurs) to create
your images, then use a prepend script like:
#!/sbin/ksh
if [[ -z $1 ]] ; then
echo Usage: prepend 'string'
exit 0;
fi
set -A fileList `ls -1 .`
for file in ${fileList[*]}; do
echo prepending $1 to $file
error=`mv $file $1$file`
wait
echo $error
done
This will allow you to add a base name to your files (which are
generated with only the required four-digit identifiers) - don't
forget to put a full-stop between your base name and the file.
For example:
prepend myfile. will result in a
makempeg base of "myfile".
Questions or Comments? Contact our WebMaster.