The open source
ImageJ image processing application and library can open a sequence of images (File -> Import -> Image Sequence), create an internal representation of the sequence (a so-called "stack"), and then save the stack as an AVI (File -> Save As -> AVI). It also has lots of I/O plugins, one of which may be able to export MPEG.
Due to all images having to be in memory before the AVI is created, you may be limited by main memory as to the number of images it can process.