diff --git a/openpype/lib/transcoding.py b/openpype/lib/transcoding.py index 6870eda59a..37709f45e0 100644 --- a/openpype/lib/transcoding.py +++ b/openpype/lib/transcoding.py @@ -1241,7 +1241,7 @@ def get_rescaled_command_arguments( input_par = ( float(stream_input_par.split(":")[0]) / float(stream_input_par.split(":")[1]) - ) + ) # recalculating input and target width input_width = int(input_width * input_par) target_width = int(target_width * target_par) diff --git a/openpype/plugins/publish/extract_thumbnail.py b/openpype/plugins/publish/extract_thumbnail.py index 40e08628c1..f10a29bf60 100644 --- a/openpype/plugins/publish/extract_thumbnail.py +++ b/openpype/plugins/publish/extract_thumbnail.py @@ -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(