capture every 5 seconds and turn off screencapture