Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Conversation

georgeantonopoulos-bcnvisuals

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.

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line contains whitespace

@ynbot ynbot added size/XS Denotes a PR changes 0-99 lines, ignoring general files type: feature Larger, user affecting changes and completely new things labels Mar 18, 2024
Comment on lines +718 to +720
# 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]
Copy link
Collaborator

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'?

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.

@@ -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")
Copy link

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)

@m-u-r-p-h-y m-u-r-p-h-y added sponsored Client endorsed or requested port to AYON labels Apr 29, 2024
@mkolar
Copy link
Member

mkolar commented Sep 2, 2024

OP has reached it's end of life, so I'm closing and archiving

@mkolar mkolar closed this Sep 2, 2024
@ynbot ynbot added this to the next-patch milestone Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
port to AYON size/XS Denotes a PR changes 0-99 lines, ignoring general files sponsored Client endorsed or requested type: feature Larger, user affecting changes and completely new things
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants