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

General: Extract review aspect ratio scale is calculated by ffmpeg #3620

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Ratio scaling calculations happens in ffmpeg instead of our python code.

Description

It happened that 1080 after python float calculations becomes 1081 which cause a lot of troubles. The main reason why we did that was to keep aspect ratio but ffmpeg scale has force_original_aspect_ratio option which keep ration by decreasin or increasing (in our case decreasing) and calculate padding difference in ffmpeg too.

Additional info

This is huge change and should be tested properly. Changes affect cases when scale is needed and when input and output have different aspect ratio (scale is needed).

Testing notes:

Force extract review to output a video which has different aspect ratio (visible with an eye) then converted input. The output should have right resolution and should be padded the right way.

@iLLiCiTiT iLLiCiTiT self-assigned this Aug 4, 2022
@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Aug 4, 2022
Copy link
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

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

Tested in Maya and it works.

@iLLiCiTiT iLLiCiTiT merged commit 4ea55ec into develop Aug 5, 2022
@iLLiCiTiT iLLiCiTiT deleted the bugfix/dont_calculate_scale_sizes_in_python branch August 5, 2022 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants