          """ Iterate through the frames dir pulling the base filename """
          logger.info("Loading file list from %s", self.folder)
          for frame in os.listdir(self.folder):
              if not self.valid_extension(frame):
                  continue
              filename = os.path.splitext(frame)[0]
 
</s> remove         for filename in tqdm(self.images.input_images,
                             total=self.images.images_found,
                             file=sys.stdout):
 </s> add         for filename, image in tqdm(self.images.load(),
                                    total=self.images.images_found,
                                    file=sys.stdout): </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)
        iterator = self.process_video if self.vid_cap else self.process_frames
        for item in iterator():
            yield item

    def process_frames(self):
        """ Process exported Frames """
        logger.info("Loading file list from %s", self.folder)
          """ Iterate through the frames dir pulling the base filename """
          logger.info("Loading file list from %s", self.folder)
        iterator = self.process_video if self.vid_cap else self.process_frames
        for item in iterator():
            yield item

    def process_frames(self):
        """ Process exported Frames """
        logger.info("Loading file list from %s", self.folder)
          for frame in os.listdir(self.folder):
              if not self.valid_extension(frame):
                  continue
              filename = os.path.splitext(frame)[0]
keep add 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