Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Status: Pending Review
Development

Successfully merging this pull request may close these issues.

None yet

4 participants