diff --git a/pype/plugins/global/publish/extract_review_slate.py b/pype/plugins/global/publish/extract_review_slate.py index 3db4b2e97e..46e9dfc6f8 100644 --- a/pype/plugins/global/publish/extract_review_slate.py +++ b/pype/plugins/global/publish/extract_review_slate.py @@ -26,6 +26,10 @@ class ExtractReviewSlate(pype.api.Extractor): slate_path = inst_data.get("slateFrame") ffmpeg_path = pype.lib.get_ffmpeg_tool_path("ffmpeg") + slate_stream = pype.lib.ffprobe_streams(slate_path)[0] + resolution_width = slate_stream["width"] + resolution_height = slate_stream["height"] + pixel_aspect = inst_data.get("pixelAspect", 1) fps = inst_data.get("fps") @@ -40,15 +44,6 @@ class ExtractReviewSlate(pype.api.Extractor): to_width = repre["resolutionWidth"] to_height = repre["resolutionHeight"] - # QUESTION Should we use resolution from instance and not source's? - resolution_width = inst_data.get("resolutionWidth") - if resolution_width is None: - resolution_width = to_width - - resolution_height = inst_data.get("resolutionHeight") - if resolution_height is None: - resolution_height = to_height - # defining image ratios resolution_ratio = ( (float(resolution_width) * pixel_aspect) / resolution_height