          """ Filter in/out wanted/unwanted faces """
          if not self.filter:
              return
          ret_faces = list()
          for idx, detect_face in enumerate(output_item["detected_faces"]):
              check_item = detect_face["face"] if isinstance(detect_face, dict) else detect_face
              check_item.load_aligned(output_item["image"])
              if not self.filter.check(check_item):
                  logger.verbose("Skipping not recognized face: (Frame: %s Face %s)",
                                 output_item["filename"], idx)
 
</s> remove             check_item.load_aligned(output_item["image"])
 </s> add             check_item.load_aligned(extract_media.image) </s> remove                                output_item["filename"], idx)
 </s> add                                extract_media.filename, idx) </s> remove     def process(self, output_item):
 </s> add     def process(self, extract_media): </s> remove                          output_item["filename"], idx)
 </s> add                          extract_media.filename, idx) </s> remove         frame = os.path.splitext(os.path.basename(output_item["filename"]))[0]
        for idx, face in enumerate(output_item["detected_faces"]):
 </s> add         frame = os.path.splitext(os.path.basename(extract_media.filename))[0]
        for idx, face in enumerate(extract_media.detected_faces):
        for idx, detect_face in enumerate(extract_media.detected_faces):
          """ Filter in/out wanted/unwanted faces """
          if not self.filter:
              return
          ret_faces = list()
        for idx, detect_face in enumerate(extract_media.detected_faces):
              check_item = detect_face["face"] if isinstance(detect_face, dict) else detect_face
              check_item.load_aligned(output_item["image"])
              if not self.filter.check(check_item):
                  logger.verbose("Skipping not recognized face: (Frame: %s Face %s)",
                                 output_item["filename"], idx)
keep keep keep keep replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
scripts/fsmedia.py