                           filename=filename,
                           serializer=serializer)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def set_folder_filename(self):
          """ Return the folder for the alignments file"""
          if self.args.alignments_path:
              logger.debug("Alignments File provided: '%s'", self.args.alignments_path)
              folder, filename = os.path.split(str(self.args.alignments_path))
          else:
 
</s> remove         folder, filename = self.set_folder_filename()
 </s> add         folder, filename = self.set_folder_filename(input_is_video) </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 """ </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 """
    def set_folder_filename(self, input_is_video):
                           filename=filename,
                           serializer=serializer)
          logger.debug("Initialized %s", self.__class__.__name__)
  
    def set_folder_filename(self, input_is_video):
          """ Return the folder for the alignments file"""
          if self.args.alignments_path:
              logger.debug("Alignments File provided: '%s'", self.args.alignments_path)
              folder, filename = os.path.split(str(self.args.alignments_path))
          else:
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 
scripts/fsmedia.py