New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override ffmpeg scaling when 'source_resolution' detected in an outpu… #6244
base: develop
Are you sure you want to change the base?
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 <roy_nieterau@hotmail.com>
@@ -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)
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.