Video Capture code for SCALE