Skip to content

Change thumb scaler pixel format to AV_PIX_FMT_YUVJ420P#1575

Open
tim-lansen wants to merge 1 commit intokaltura:masterfrom
tim-lansen:thumb_scale_pixel_format_yuvj420p
Open

Change thumb scaler pixel format to AV_PIX_FMT_YUVJ420P#1575
tim-lansen wants to merge 1 commit intokaltura:masterfrom
tim-lansen:thumb_scale_pixel_format_yuvj420p

Conversation

@tim-lansen
Copy link
Copy Markdown

@tim-lansen tim-lansen commented Mar 21, 2025

Fixes #1537

Problem in short: swscaler generates limited-range output, but the jpeg encoder needs full-range input.
Changing swscaler's output pixel format to AV_PIX_FMT_YUVJ420P seems to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

MP4 thumbnail cannot fully adapt, and the image appears a bit flat

1 participant