  from hashlib import sha1
  from pathlib import Path
  from re import finditer
  from tqdm import tqdm
  
  import numpy as np
  import cv2
  
 
</s> remove from socket import timeout as socket_timeout, error as socket_error

 </s> add  </s> remove import imageio_ffmpeg as im_ffm
 </s> add 
from socket import timeout as socket_timeout, error as socket_error

import imageio_ffmpeg as im_ffm
  from hashlib import sha1
  from pathlib import Path
  from re import finditer
from socket import timeout as socket_timeout, error as socket_error

import imageio_ffmpeg as im_ffm
  from tqdm import tqdm
  
  import numpy as np
  import cv2
  
keep keep add keep keep keep keep keep
 Bugfix: Fix extract/convert hanging when ffmpeg fails to get frame count 
lib/utils.py