          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__)
  
      def check_folder_exists(self):
          """ makes sure that the faces folder exists """
 
</s> remove         self.check_folder_exists()
 </s> add         self.vid_cap = self.check_input_folder() </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         self.images_found = len(self.input_images)
 </s> add  </s> remove     def get_input_images(self):
        """ Return the list of images that are to be processed """
 </s> add     @property
    def images_found(self):
        """ Number of images or frames """
        if self.is_video:
            cap = cv2.VideoCapture(self.args.input_dir)  # pylint: disable=no-member
            retval = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))  # pylint: disable=no-member
            cap.release()
        else:
            retval = len(self.input_images)
        return retval

    def check_input_folder(self):
        """ Check whether the input is a folder or video """
          self.folder = folder
          self.check_folder_exists()
          self.file_list_sorted = self.sorted_items()
          self.items = self.load_items()

          logger.verbose("%s items loaded", self.count)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def check_folder_exists(self):
          """ makes sure that the faces folder exists """
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