Skip to content

Commit

Permalink
Merge pull request #612 from deuteronomy-works/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
amoh-godwin authored Apr 25, 2023
2 parents f30e3b4 + ae700e3 commit 640f663
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyffmpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit 640f663

Please sign in to comment.