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): add fallback for video thumbnail generation #10034

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Jun 7, 2024

Description

This PR lets FFmpeg fall back to the first frame if it can't find a better one. Also sets the format back to yuv420p since I noticed that converting to any other format lowers contrast quite a bit. Lastly, sets the fps to round up because it can otherwise drop the first and only keyframe in a video.

How Has This Been Tested?

Tested by running thumbnail generation on a few hundred videos, some of which failed with the command on main, and confirming that they were generated successfully.

@mertalev mertalev force-pushed the fix/server-video-thumbnail-fallback branch from 7292981 to 0ae5343 Compare June 7, 2024 23:28
@mertalev mertalev force-pushed the fix/server-video-thumbnail-fallback branch from 0ae5343 to beda772 Compare June 7, 2024 23:30
@alextran1502 alextran1502 merged commit 62f8bd8 into main Jun 8, 2024
22 checks passed
@alextran1502 alextran1502 deleted the fix/server-video-thumbnail-fallback branch June 8, 2024 09:55
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