IDL code for reading and processing video files