              if preview:
                  raise ValueError("Preview for gen-vid with audio muxing is "
                                   "not supported.")
              _output_opts = _ref_vid_opts + ' ' + _output_opts
              _inputs = {_input_path: _input_opts, ref_vid.path: None}
          else:
              _inputs = {_input_path: _input_opts}
          _outputs = {output.path: _output_opts}
          logger.debug("_inputs: %s, _outputs: %s", _inputs, _outputs)
          Effmpeg.__run_ffmpeg(exe=exe, inputs=_inputs, outputs=_outputs)
 
</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         _output_opts = '-vf fps="' + str(fps) + '" '
 </s> add         _fps_arg = '-r ' + str(fps) + ' '
        _input_opts += _fps_arg + "-f image2 "
        _output_opts = _fps_arg </s> remove                                r"(?P<tme>\d+:\d+<.*),\W(?P<rte>.*)[a-zA-Z/]*\]")}
 </s> add                                r"(?P<tme>\d+:\d+<.*),\W(?P<rte>.*)[a-zA-Z/]*\]"),
            "ffmpeg": re.compile(r"([a-zA-Z]+)=\s*([\d|N/A]\S+)")}
            _inputs = OrderedDict([(_input_path, _input_opts), (ref_vid.path, None)])
              if preview:
                  raise ValueError("Preview for gen-vid with audio muxing is "
                                   "not supported.")
              _output_opts = _ref_vid_opts + ' ' + _output_opts
            _inputs = OrderedDict([(_input_path, _input_opts), (ref_vid.path, None)])
          else:
              _inputs = {_input_path: _input_opts}
          _outputs = {output.path: _output_opts}
          logger.debug("_inputs: %s, _outputs: %s", _inputs, _outputs)
          Effmpeg.__run_ffmpeg(exe=exe, inputs=_inputs, outputs=_outputs)
keep keep keep keep replace keep keep keep keep keep
 Fix effmpeg fps detection and better GUI handling 
tools/effmpeg.py