Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th September 2019, 19:05   #21  |  Link
Grojm
Registered User
 
Join Date: Mar 2016
Posts: 16
Quote:
Originally Posted by benwaggoner View Post
Reading through the readthedocs, it's obvious how quality is different between presets, because different modes controlled by different presets use different ways to measure and optimize quality.

Presets control --rd, for a big example. What even gets included in rate distortion optimization changes with rd level. So how chroma quality is measured and optimized changes between 2 and 4. Something with complex chroma running at a fast preset might give smaller size because it is just making the chroma look terrible.

aq-mode also has fundamental impact on how the codec works in practice.
THIS was the missing piece of information I needed. Thanks!


Because I always thought, if you give the encoder more time (slower preset) to try different encoding settings, at least the efficiency will stay the same or improve. So, if you keep the quality metric fixed (howsoever you define your metric, doesn't matter), the resulting file size will be at least the same or smaller.
But, if with a slower preset, also the metric itself changes, of course this is not the case any more.

I haven't thought about how the preset changes how the metric is calculated itself.

However, I think there should be found a way to keep the metric fixed for different presets. This would avoid a lot of confusion.
Grojm is offline   Reply With Quote
Old 30th September 2019, 18:50   #22  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by Grojm View Post
However, I think there should be found a way to keep the metric fixed for different presets. This would avoid a lot of confusion.
The problem is that useful metrics are more expensive to calculate, and so aren't going to be used in faster presets. And there isn't any way to set a metric directly when encoding in a useful mode. Sure you could make an encoder that would encode to exactly 30 PSNR, but it would do it by making every frame and likely every pixel that, which would be a horribly suboptimal way to encode visually.

What we want an encoder to do is to provide optimal subjective quality, and that can only really be tested by humans in a double-blind environment. VMAF attempts to estimate what a human would rate content, and it's the least-bad metric available to the public. But it falls short in many ways, doesn't do HDR at all, etcetera.

If we had a perfect objective metric, all encoders would do is optimize for that. Alas, things are vastly more complicated.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.