From 655833f13e06596d55fd7ee16e9f9e2b65bf9d16 Mon Sep 17 00:00:00 2001 From: Javanaut Date: Sun, 2 Feb 2025 16:36:36 +0100 Subject: [PATCH] ff --- src/ffx/ffx.py | 10 +++++++++- src/ffx/file_properties.py | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ffx/ffx.py b/src/ffx/ffx.py index 35989bb..ecf90a9 100755 --- a/src/ffx/ffx.py +++ b/src/ffx/ffx.py @@ -599,7 +599,15 @@ def convert(ctx, if not cf is None: - cf.setArguments(**(mediaFileProperties.findCropArguments())) + + cropArguments = mediaFileProperties.findCropArguments() + + ctx.obj['logger'].info(f"\nSetting crop arguments: ouput width: {cropArguments[CropFilter.OUTPUT_WIDTH_KEY]} " + + f"height: {cropArguments[CropFilter.OUTPUT_HEIGHT_KEY]} " + + f"offset x: {cropArguments[CropFilter.OFFSET_X_KEY]} " + + f"y: {cropArguments[CropFilter.OFFSET_Y_KEY]}") + + cf.setArguments(**cropArguments) ssc = ShiftedSeasonController(context) diff --git a/src/ffx/file_properties.py b/src/ffx/file_properties.py index cc010bf..e8134db 100644 --- a/src/ffx/file_properties.py +++ b/src/ffx/file_properties.py @@ -210,6 +210,7 @@ class FileProperties(): cropTokens = cropString.split('=') cropValueTokens = cropTokens[1] cropValues = cropValueTokens.split(':') + return { CropFilter.OUTPUT_WIDTH_KEY: cropValues[0], CropFilter.OUTPUT_HEIGHT_KEY: cropValues[1],