  
  import cv2
  
  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,
                         hash_encode_image)
 
</s> remove from lib.queue_manager import queue_manager
 </s> add from lib.queue_manager import queue_manager, QueueEmpty </s> remove from time import sleep
 </s> add  </s> remove     def process(self, in_queue, out_queue):
 </s> add     def process(self, in_queue, out_queue, completion_queue=None): </s> remove         logger.debug("Starting convert process. (in_queue: %s, out_queue: %s)",
                     in_queue, out_queue)
 </s> add         logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
import imageio_ffmpeg as im_ffm
  
  import cv2
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,
                         hash_encode_image)
keep add keep keep keep keep keep
 bugfix: Stop convert hanging at the last few frames on some input videos 
tools/lib_alignments/media.py