lap-last minute of webcam recoding stream, logic is correct, error