Unique face recognition

From a youtube link, how can I extract uniques faces in the video using OpenCV?

convert the whole video into frames and extract faces from each frame and save all the faces into a folder and apply face-recognition [using face recognition module] on images iteratively and save unique images into another folder.