Javanaut 8 months ago
parent 03dd02ed87
commit 655833f13e

@ -599,7 +599,15 @@ def convert(ctx,
if not cf is None: 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) ssc = ShiftedSeasonController(context)

@ -210,6 +210,7 @@ class FileProperties():
cropTokens = cropString.split('=') cropTokens = cropString.split('=')
cropValueTokens = cropTokens[1] cropValueTokens = cropTokens[1]
cropValues = cropValueTokens.split(':') cropValues = cropValueTokens.split(':')
return { return {
CropFilter.OUTPUT_WIDTH_KEY: cropValues[0], CropFilter.OUTPUT_WIDTH_KEY: cropValues[0],
CropFilter.OUTPUT_HEIGHT_KEY: cropValues[1], CropFilter.OUTPUT_HEIGHT_KEY: cropValues[1],

Loading…
Cancel
Save