It's nothing that FMJ can't already do, but my implementation is a
little more compact. Plus I expect in coming months I'll add to it,
so I needed to develop my own understanding of QuickTime's file
format.
I'd love to hear discussion/comments/links related to this subject.
(Please email me directly if you find a mistake in the link above,
though.)
The File>Save As>AVI command in the latest version of ImageJ
(http://rsb.info.nih.gov/ij/) can save an image stack using Motion JPEG
compression. The AVIs it creates play on OS X, Linux and Windows. To
test this feature, you will need to upgrade to the v1.41e using the
Plugins>Uitilities>Update ImageJ command. Source code is at
<http://rsb.info.nih.gov/ij/source/ij/plugin/filter/AVI_Writer.java>.