          """ 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:
              logger.debug("Alignments from Input Folder: '%s'", self.args.input_dir)
              folder = str(self.args.input_dir)
              filename = "alignments"
          logger.debug("Setting Alignments: (folder: '%s' filename: '%s')", folder, filename)
          return folder, filename
 
</s> remove     def set_folder_filename(self):
 </s> add     def set_folder_filename(self, input_is_video): </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) </s> remove         logger.info("Input Directory: %s", self.args.input_dir)
        input_images = get_image_paths(self.args.input_dir)
 </s> add     def get_input_images(self):
        """ Return the list of images or video file that is to be processed """
        if self.is_video:
            input_images = self.args.input_dir
        else:
            input_images = get_image_paths(self.args.input_dir)
        elif input_is_video:
            logger.debug("Alignments from Video File: '%s'", self.args.input_dir)
            folder, filename = os.path.split(self.args.input_dir)
            filename = "{}_alignments".format(os.path.splitext(filename)[0])
          """ 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))
        elif input_is_video:
            logger.debug("Alignments from Video File: '%s'", self.args.input_dir)
            folder, filename = os.path.split(self.args.input_dir)
            filename = "{}_alignments".format(os.path.splitext(filename)[0])
          else:
              logger.debug("Alignments from Input Folder: '%s'", self.args.input_dir)
              folder = str(self.args.input_dir)
              filename = "alignments"
          logger.debug("Setting Alignments: (folder: '%s' filename: '%s')", folder, filename)
          return folder, filename
keep keep keep add keep 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