libgwavi is a fork of libkohn-avi. It is a tiny C library aimed at creating AVI files.