-
Notifications
You must be signed in to change notification settings - Fork 129
Override ffmpeg scaling when 'source_resolution' detected in an outpu… #6244
Conversation
# Override Scaling filters if source resolution is set as tag | ||
if "source_resolution" in output_def['tags']: | ||
res_filters = [f for f in res_filters if "scale" not in f] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line contains whitespace
# Override Scaling filters if source resolution is set as tag | ||
if "source_resolution" in output_def['tags']: | ||
res_filters = [f for f in res_filters if "scale" not in f] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't it make more sense to just skip the rescaling filters completely instead of 'filtering it out afterwards'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey thanks for checking, yes i don't see why not skipping all rescaling filters. Just wanted to remove the 'scale' one in our case.
Co-authored-by: Roy Nieterau <[email protected]>
@@ -1226,6 +1232,11 @@ def rescaling_filters(self, temp_data, output_def, new_repre): | |||
""" | |||
filters = [] | |||
|
|||
# Skip rescaling filters if "source_resolution" tag is present | |||
if "source_resolution" in output_def['tags']: | |||
self.log.debug("Source resolution tag present, skipping rescaling filters") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (87 > 79 characters)
OP has reached it's end of life, so I'm closing and archiving |
Changelog Description
This is a simple change to override scaling filters for reviewables in ffmpeg if the 'source_resolution' tag is detected in the output definition.
This is an important feature for us as we tend to publish multiple resolutions from the same comp, as a single comp creates variants of the main comp to be delivered on each screen. We need an accurate reviewable on Ftrack based on the source resolution rather than the resolution settings of the comp or context of the task.
Testing notes:
This has been tested both using local publish and deadline submission. Only tested using an h264 profile.