          if (loadtype == "Frames" and
                  os.path.isfile(self.folder) and
                  os.path.splitext(self.folder)[1] in _video_extensions):
              logger.verbose("Video exists at: '%s'", self.folder)
              retval = imageio.get_reader(self.folder)
          else:
              logger.verbose("Folder exists at '%s'", self.folder)
              retval = None
          return retval
  
 
</s> remove         self.vid_reader.set_image_index(frame_no)
        image = self.vid_reader.get_next_data()[:, :, ::-1]
 </s> add         self.vid_reader.set(cv2.CAP_PROP_POS_FRAMES, frame_no)  # pylint: disable=no-member
        _, image = self.vid_reader.read()
        # TODO imageio single frame seek seems slow. Look into this
        # self.vid_reader.set_image_index(frame_no)
        # image = self.vid_reader.get_next_data()[:, :, ::-1] </s> remove import imageio
 </s> add # TODO imageio single frame seek seems slow. Look into this
# import imageio
            retval = cv2.VideoCapture(self.folder)  # pylint: disable=no-member
            # TODO ImageIO single frame seek seems slow. Look into this
            # retval = imageio.get_reader(self.folder)
          if (loadtype == "Frames" and
                  os.path.isfile(self.folder) and
                  os.path.splitext(self.folder)[1] in _video_extensions):
              logger.verbose("Video exists at: '%s'", self.folder)
            retval = cv2.VideoCapture(self.folder)  # pylint: disable=no-member
            # TODO ImageIO single frame seek seems slow. Look into this
            # retval = imageio.get_reader(self.folder)
          else:
              logger.verbose("Folder exists at '%s'", self.folder)
              retval = None
          return retval
  
keep keep keep keep replace keep keep keep keep keep
 Revert manual tool video reading to cv2 
tools/lib_alignments/media.py