  Created on 2018-03-16 15:14
  
  @author: Lev Velykoivanenko (velykoivanenko.lev@gmail.com)
  """
  # TODO: integrate preview into gui window
  # TODO: add preview support when muxing audio
  #       -> figure out if ffmpeg | ffplay would work on windows and mac
  import logging
  import os
  import subprocess
  import sys
  import datetime
 
</s> remove from argparse import SUPPRESS

 </s> add  </s> remove from lib.image import read_image_hash
 </s> add from lib.image import read_image_hash, ImagesLoader </s> remove from lib.utils import get_folder, get_image_paths, deprecation_warning
 </s> add from lib.utils import (get_folder, get_image_paths, deprecation_warning, FaceswapError,
                       _image_extensions) </s> remove from scripts.fsmedia import Alignments, Images, PostProcess, finalize
 </s> add from scripts.fsmedia import Alignments, PostProcess, finalize </s> remove 
        argument_list.append({"opts": ('-pr', '--preview'),
                              "action": "store_true",
                              "dest": "preview",
                              "default": False,
                              # TODO Fix preview or remove
                              "help": SUPPRESS,
                              # "help": "Uses ffplay to preview the effects of "
                              #         "actions that have a video output. "
                              #         "Currently preview does not work when "
                              #         "muxing audio."
                              })

 </s> add 
  Created on 2018-03-16 15:14
  
  @author: Lev Velykoivanenko (velykoivanenko.lev@gmail.com)
  """



  import logging
  import os
  import subprocess
  import sys
  import datetime
keep keep keep keep replace replace replace keep keep keep keep keep
 Bugfixes and minor updates:
  - Remove preview option from effmpeg tool
  - Remove json filetypes from GUI for alignments files
  - Capture and raise empty timelapse folder errors
  - Move convert to use centralized ImagesLoader 
tools/effmpeg/effmpeg.py