Effective recognition of the video pattern in a recorded video stream