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],