Skip to content

Commit

Permalink
Merge pull request #609 from deuteronomy-works/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
amoh-godwin authored Apr 25, 2023
2 parents b4c3408 + f331f2d commit ae700e3
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 ae700e3

Please sign in to comment.