diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index b544952..330c2cb 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -118,7 +118,7 @@ def convert(self, input_file, output_file): print(msg.format(self.loglevel)) self.loglevel = 'fatal' - options = "{} -loglevel {} " + options = '"{}" -loglevel {} ' options = options.format(self._ffmpeg_file, self.loglevel) options += '{} -i' options = options.format(self._over_write) @@ -255,7 +255,9 @@ def options(self, opts): [options]) # add ffmpeg - options = " ".join([self._ffmpeg_file, options]) + # Put into brackets + _ffmpeg_file = '"' + self._ffmpeg_file + '"' + options = " ".join([_ffmpeg_file, options]) if self.enable_log: self.logger.info(f"Shell: {SHELL}")