-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
Is it possible to add the option to convert 8bit input to 10bit encoding for heif-enc? #1163
Comments
There is a similar option: I am curious why this is needed though. What are you trying to do? |
@bradh Thanks for the quick reply, since places like doom9.org and r/av1 say that even if the source is 8bit converted to 10bit encoding it will be better, so I've been doing that. |
Metrics? |
https://forum.doom9.org/showthread.php?t=155510 I haven't found easy to understand data and I can't make sense of it. But the people who say it look like they have a lot of authority... |
I think you need to measure it. |
It does achieve better compression
Update: It doesn't seem right for me to use |
When I tried crf=23, 10bit clearly produced smoother colours relative to 8bit, although not perfect.
|
Interesting. What do the ssim and psnr show? In any case it might help to provide more detail on what feature you still need added to meet your functionality needs. |
CRF=23 heic, converted to png by heif-convert for testing.
|
You can also use the |
It seems to support only YCbCr image.
|
For me color related just implementing avifenc-like The others I would like to be able to use all svtav1 parameters, which I haven't tried yet.
|
10-bit does prevent/minimize visible banding on smooth gradients, especially colors closer to black and white (where YUV is narrowest). It generally doesn't show up on metrics, since they mainly measure gross distortion, not something as fine as +/-1 banding. If the banding is in the source, or if the quality is high enough that nothing is smoothed out, it won't matter. There are a lot of times it can work out well for heavier compression though, even without an initial 10+ pipeline, since all of the rounding is then inside the 10-bit. With H.264 it had actual coding efficiency gains as well, with HEVC and AV1 it generally does not, only the banding prevention. |
I think those are already available in some form. What specially doesn't work for you? Clearly heif-enc and avifenc are not the same, and will not have identical functionality. |
Yes, Would like to add something like |
We already have I can guess, but it really is better if you make a single, complete statement of exactly what does work the way you want, and what does not, and how it should work instead. The details really do matter - PNG, JPEG, etc, exactly which bit depths, etc. |
I need |
The
--depth
of avifenc enables it, can heif-enc add a similar option? Thanks.The text was updated successfully, but these errors were encountered: