      def __init__(self, folder):
          logger.debug("Initializing %s: (folder: '%s')", self.__class__.__name__, folder)
          logger.info("[%s DATA]", self.__class__.__name__.upper())
          self.folder = folder
          self.check_folder_exists()
          self.file_list_sorted = self.sorted_items()
          self.items = self.load_items()
          self.count = len(self.file_list_sorted)
          logger.verbose("%s items loaded", self.count)
          logger.debug("Initialized %s", self.__class__.__name__)
 
</s> remove         self.count = len(self.file_list_sorted)
 </s> add  </s> remove     def check_folder_exists(self):
        """ makes sure that the faces folder exists """
 </s> add     @property
    def count(self):
        """ Number of faces or frames """
        if self.vid_cap:
            retval = int(self.vid_cap.get(cv2.CAP_PROP_FRAME_COUNT))  # pylint: disable=no-member
        else:
            retval = len(self.file_list_sorted)
        return retval

    def check_input_folder(self):
        """ makes sure that the frames or faces folder exists
            If frames folder contains a video file return video capture object """ </s> remove         folder, filename = self.set_folder_filename()
 </s> add         folder, filename = self.set_folder_filename(input_is_video) </s> remove     def __init__(self, arguments, is_extract):
        logger.debug("Initializing %s: (is_extract: %s)", self.__class__.__name__, is_extract)
 </s> add     def __init__(self, arguments, is_extract, input_is_video=False):
        logger.debug("Initializing %s: (is_extract: %s, input_is_video: %s)",
                     self.__class__.__name__, is_extract, input_is_video)
        self.vid_cap = self.check_input_folder()
      def __init__(self, folder):
          logger.debug("Initializing %s: (folder: '%s')", self.__class__.__name__, folder)
          logger.info("[%s DATA]", self.__class__.__name__.upper())
          self.folder = folder
        self.vid_cap = self.check_input_folder()
          self.file_list_sorted = self.sorted_items()
          self.items = self.load_items()
          self.count = len(self.file_list_sorted)
          logger.verbose("%s items loaded", self.count)
          logger.debug("Initialized %s", self.__class__.__name__)
keep keep keep keep replace keep keep keep keep keep
 Add ability to extract from and convert from a video file (#559)

* Add ability to extract from and convert from a video file

* Update cli helptext. Add filebrowser button for GUI input

* Add video support to Alignments Tool 
tools/lib_alignments/media.py