AviWriter is a c sharp class that can be used to create AVI movies. As it contains unsafe portions it must be compiled with the /unsafe compiler flag. using System; using System.Runtime.InteropServices; using System.Drawing; using System.Drawing.Imaging; public class AviWriter { [StructLayout(LayoutKind.Sequential, Pack=1)] private struct AVISTREAMINFOW { public UInt32 fccType, fccHandler, dwFlags