script for video analysis