From f24a4f675abe6c008d40b04bfe0a42bd3d239a9a Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Tue, 25 Apr 2023 17:15:58 +0000 Subject: [PATCH] Update __init__.py --- pyffmpeg/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index bdcf084..9c32150 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -103,7 +103,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) @@ -223,7 +223,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]) self.logger.info(f"Shell: {SHELL}")