This commit is contained in:
Jakub Jezek 2023-12-06 21:05:32 +01:00
parent 25ea0a76e5
commit 4229461755
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 5 additions and 3 deletions

View file

@ -346,7 +346,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# create output file path
base_name = os.path.basename(video_file_path)
filename = os.path.splitext(base_name)[0]
output_thumb_file_path = os.path.join(output_dir, "{}.png".format(filename))
output_thumb_file_path = os.path.join(
output_dir, "{}.png".format(filename))
# Set video input attributes
max_int = str(2147483647)
@ -374,7 +375,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# run subprocess
self.log.debug("Executing: {}".format(" ".join(cmd)))
run_subprocess(cmd, logger=self.log)
self.log.debug("Thumbnail created: {}".format(output_thumb_file_path))
self.log.debug(
"Thumbnail created: {}".format(output_thumb_file_path))
return output_thumb_file_path
except RuntimeError as error:
self.log.warning(