Skip to content

Commit

Permalink
ffreport fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Aug 7, 2024
1 parent 2684791 commit b0ea12b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,12 @@ def execute_ffmpeg_commands(self, commands):
commands (list): A list of command attribute names to execute.
"""
for i, cmd in enumerate(commands):
log_path = os.path.join(self.output_folder, 'logs', '{}_log.txt'.format(commands[i]))
log_path = os.path.join(self.output_folder, 'logs', '{}_log.log'.format(commands[i]))
if platform.system() == 'Windows':
log_path = os.path.normpath(log_path)
ffreport_value = "file=" + log_path + ":level=32"
ffreport_value = "file=" + log_path
os.environ['FFREPORT'] = ffreport_value
self.output_text.append(log_path)
self.output_text.append(ffreport_value)
step_text = "Step {}/{}: Running {}".format(i + 1, len(commands), cmd.replace('_', ' ').title())
self.step_label.setText(step_text)
if hasattr(self, cmd):
Expand Down

0 comments on commit b0ea12b

Please sign in to comment.