"RIFF", # length of file (header length + data length + index length) ( 1256 + ( $image_size + 24 ) * ( $num_frames = 3 + scalar @p ) ), "AVI $LIST", 1216, "hdrl", "avih", 56, 500000, 32, 0, # avi flags (hasindex etc) 2064, $num_frames, 0, 1, $image_size, # movie width $x_max, # movie height $y_max, (0) x 4, $LIST, 1140, "strl", "strh", 56, "vids", (0) x 4, 1, 10, 0, $num_frames, $image_size, -1, (0) x 3, "strf", # length of avi header: # (40) + length of color table (1024) 1064,