ff
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user