Tkmpeg is a binary extension that is provided as part of DS9. It is an MPEG 1 encoder based on ezMPEG [1 ], a project that is still in alpha. Tkmpeg is used by DS9 to save a series of frames as an MPEG 1 video. License: GPL v2.
Other tools that can be used from Tcl/Tk to generate MPEG video: