Skip to content

Commit

Permalink
debugging ffreport
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Aug 7, 2024
1 parent e45c549 commit 6733889
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,10 @@ def execute_ffmpeg_commands(self, commands):
"""
for i, cmd in enumerate(commands):
log_path = os.path.join(self.output_folder, 'logs', '{}_{}_log.txt'.format(self.output_folder_name, commands[i]))
if platform.system() == 'Windows':
log_path = log_path.replace('\\', '/')
os.environ['FFREPORT'] = fr"file={log_path}:level=32"
self.output_text.append(log_path)
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 6733889

Please sign in to comment.