  import os
  from tqdm import tqdm
  
  import cv2
  import imageio
  import imageio_ffmpeg as im_ffm
  
  from lib.alignments import Alignments
  from lib.faces_detect import DetectedFace
  from lib.utils import (_image_extensions, _video_extensions, cv2_read_img, hash_image_file,
 
</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             retval = imageio.get_reader(self.folder)
 </s> add             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)
# TODO imageio single frame seek seems slow. Look into this
# import imageio
  import os
  from tqdm import tqdm
  
  import cv2
# TODO imageio single frame seek seems slow. Look into this
# import imageio
  import imageio_ffmpeg as im_ffm
  
  from lib.alignments import Alignments
  from lib.faces_detect import DetectedFace
  from lib.utils import (_image_extensions, _video_extensions, cv2_read_img, hash_image_file,
keep keep keep keep replace keep keep keep keep keep
 Revert manual tool video reading to cv2 
tools/lib_alignments/media.py