-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
x265: don't apply tune by default #1423
Comments
Like my other comment (on #1424), do you have metrics on single image vs image sequence? It might (or might not) be a breaking change to adjust defaults at the library level, but we could provide alternative tuning suggestions in documentation or in the example applications. |
Frankly, I find it preposterous that the burden of proof is on me to show that the default settings of x265 are generally better than the almost certainly mindless, or at least misguided, non-default x265 tuning of libheif (please do not impulsively reply to this characterization before reading the quote at the very end of my comment). But it's easy enough, so here's 2 samples (video & still). I didn't do it with libheif since I can't figure out how to disable the tune parameter entirely there, so it's all with FFmpeg, plus additional parameters to match libheif's other settings. The only difference is the lack of a container format, really. Here's a sample of ParkJoy (available here). In order: ssim.mp4normal.mp4Notice the bark of the trees in the foreground, the grass, & the trees in the background, which all look much more blurry with Sizes for these:
I tried to match the bitrate as much as I could for those. Here's Here, notice the bottom left, & the bottom right, both of which are lower quality & smoothed out with Sizes for these:
This was encoded a bit differently from the above because instead of trying to match bitrates, I tried to match quality (as in These results are to be expected, really. I mentioned in the OP that the only sane default tune is no tune, & that's not my specific opinion, that's just the conclusion one comes to from x265's docs on them:
|
x265 tunes are intended for specific types of content or objectives (e.g. the specific characteristics of animations or better scores on metrics). They are not general purpose & should only be explicitly applied by the user. The only sane default tune is no tune.
In particular, the
ssim
tune libheif defaults to completely disables psychovisual RD which harms perceptual fidelity in favor of better SSIM scores.The text was updated successfully, but these errors were encountered: