FLV Thumbnails

does anyone know how to programmically automate the creation of dynamic .jpg thumbnails from a .flv.?