1. A method of video surveillance comprising: performing on input video at least one of the operations selected from the group consisting of motion detection and change detection; recording a motion pattern based on a result of said at least one of the operations; and analyzing the motion pattern to detect periodic motion in the video.