Mike,
Take a look at http://libquicktime.cvs.sourceforge.net/viewvc/libquicktime/lqt_utils/qtencode.cc?view=markup
its the source code for an encoding utility that we have been using at work, that we recently got approval to open source.
2009-06-04 17:44:12 UTC in Libquicktime