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

fix(server): scale transcoded videos if dimensions are odd #6461

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

mertalev
Copy link
Contributor

Description

Codecs like H.264 require both height and width to be even numbers. We handle this in some cases when scaling videos to a target resolution. However, transcoding will fail if a video is not scaled and has an odd dimension. It will also fail if the odd dimension is the smaller one and this value is used for scaling, as in this case the scaled video will still have an odd dimension. This PR handles these cases to make sure transcoded videos always have valid dimensions.

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

LGTM

@jrasm91
Copy link
Contributor

jrasm91 commented Jan 18, 2024

The file that caused this error before is working again.

@jrasm91 jrasm91 merged commit 9a2fa21 into main Jan 18, 2024
21 of 22 checks passed
@jrasm91 jrasm91 deleted the fix/server-odd-resolution branch January 18, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants