Skip to content

Commit

Permalink
debug on logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Aug 6, 2024
1 parent a76570b commit eeeff13
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,6 @@ def initial_setup(self):
else:
self.video = self.mappe_input_field.text()

# if Utils.cuda_available():
# self.ffmpeg_hardware_accel = [
# '-hwaccel', 'cuda',
# ]
# self.ffmpeg_encoder = [
# '-c:v', 'hevc_nvenc',
# '-pix_fmt', 'yuv422p10le',
# ]
# else:

self.ffmpeg_hardware_accel = [
'-hwaccel', 'auto',
]
Expand Down Expand Up @@ -581,6 +571,7 @@ def execute_ffmpeg_commands(self, commands):
commands (list): A list of command attribute names to execute.
"""
for i, cmd in enumerate(commands):
self.output_text.append(str(f'file={os.path.join(self.output_folder, 'logs', '{}_{}_log.txt'.format(self.output_folder_name, commands[i]))}:level=32'))
os.environ['FFREPORT'] = f'file={os.path.join(self.output_folder, 'logs', '{}_{}_log.txt'.format(self.output_folder_name, commands[i]))}:level=32'
step_text = "Step {}/{}: Running {}".format(i + 1, len(commands), cmd.replace('_', ' ').title())
self.step_label.setText(step_text)
Expand Down

0 comments on commit eeeff13

Please sign in to comment.