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): video thumbnail colors when using webp #10018

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Jun 7, 2024

Description

We pass a frame in yuv420p format to libwebp, which then converts it to RGB format. This conversion affects the final image's colors significantly as well as inducing loss of detail. JPEG is not affected, however. From testing, using an RGB format produces a much better image for WebP and looks nearly the same for JPEG.

How Has This Been Tested?

Before:

reptiles_yuv420p_1080

After:

reptiles_gbrpf32le_1080

@mertalev mertalev merged commit f2148dd into main Jun 7, 2024
23 of 25 checks passed
@mertalev mertalev deleted the fix/webp-video-thumbnail-colors branch June 7, 2024 06:43
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.

2 participants