  import os
  import sys
  import subprocess
  import datetime
  
  from ffmpy import FFprobe, FFmpeg, FFRuntimeError
  
  # faceswap imports
 
</s> remove         _inputs = {input_.path: _input_opts, ref_vid.path: _ref_vid_opts}
 </s> add         _inputs = OrderedDict([(input_.path, _input_opts), (ref_vid.path, _ref_vid_opts)]) </s> remove             _inputs = {_input_path: _input_opts, ref_vid.path: None}
 </s> add             _inputs = OrderedDict([(_input_path, _input_opts), (ref_vid.path, None)]) </s> remove         _output_opts = '-vf fps="' + str(fps) + '" '
 </s> add         _fps_arg = '-r ' + str(fps) + ' '
        _input_opts += _fps_arg + "-f image2 "
        _output_opts = _fps_arg
from collections import OrderedDict
  import os
  import sys
  import subprocess
  import datetime
from collections import OrderedDict
  
  from ffmpy import FFprobe, FFmpeg, FFRuntimeError
  
  # faceswap imports
keep keep keep add keep keep keep keep
 Fix effmpeg fps detection and better GUI handling 
tools/effmpeg.py