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

feat: support webp #60

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: support webp #60

wants to merge 1 commit into from

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Oct 28, 2022

closes #50

need to figure out how to loop webp, tried -loop -1 and it broke havok, will look more into it tomorrow...

@caarlos0 caarlos0 self-assigned this Oct 28, 2022
@caarlos0 caarlos0 added the enhancement New feature or request label Oct 28, 2022
video.go Outdated
opts.BackgroundColor,
),
"-vcodec", "libwebp",
"-pix_fmt", "yuv420p",
Copy link

Choose a reason for hiding this comment

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

4:2:0 chroma subsampling can be bad for sharp, high-contrast edges such as fonts.
There's a lossless version of webp, maybe that supports 4:4:4 chroma?

@pauloxnet
Copy link

Is this PR blocked by something. How can we help to merge it

@balupton
Copy link

balupton commented Jul 28, 2023

@pauloxnet seems like it stalled on figuring out how to have ffmpeg generate a looping webp file, as well as on implementing the lossless feedback.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0
Copy link
Member Author

I pushed an update, it seems to work now, but some generated webp images feel laggy 🤔

I don't know much of ffmpeg (barely any ffmpeg tbh), if anyone knows whats wrong feel free to chime in :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add WebP output support
4 participants