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 > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd June 2022, 11:50   #221  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Quote:
Originally Posted by wswartzendruber View Post
Using Y for MaxCLL is outright irrational. Let's say the value is signaled at 593 nits. That can mean anything from 6% equal intensity across all three channels to 100% intensity on just blue.
No idea. I just read it in tool release notes.
6% on R,G,B gives bright white? I thought it's about black and Y will be low (at eg. 70 and 70 is not 593 nits for sure)?

Last edited by kolak; 22nd June 2022 at 11:54.
kolak is offline   Reply With Quote
Old 22nd June 2022, 13:10   #222  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Y(r = 0.06, g = 0.06, b = 0.06) = 593
y(r = 0.00, g = 0.00, b = 1.00) = 593
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 13:15   #223  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
https://www.itu.int/dms_pubrec/itu-r...0-I!!PDF-E.pdf

table 4 has this:

Y'=0.2627R' + 0.6780G' + 0.0593B'

are they referring to it?
kolak is offline   Reply With Quote
Old 22nd June 2022, 15:14   #224  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
https://www.itu.int/dms_pubrec/itu-r...0-I!!PDF-E.pdf

table 4 has this:

Y'=0.2627R' + 0.6780G' + 0.0593B'

are they referring to it?
Those are the BT.2020 coefficients, so yes. But you can apply them to display light as well.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 15:16   #225  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
So how do they count light then if they refer to this table?
kolak is offline   Reply With Quote
Old 22nd June 2022, 15:58   #226  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
So how do they count light then if they refer to this table?
I have no idea. MaxCLL is specific to PQ, so how it's taken should reference BT.2100.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 18:27   #227  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Have you implemented any filtering for compressed formats?
Like skip 1% of brightest pixels, low pass filter?
If you take properly 1K nit mastered master what MaxCLL is your tool reporting?
kolak is offline   Reply With Quote
Old 22nd June 2022, 18:41   #228  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
Have you implemented any filtering for compressed formats?
Like skip 1% of brightest pixels, low pass filter?
If you take properly 1K nit mastered master what MaxCLL is your tool reporting?
I haven't done any filtering. hlg-tools includes a utility called pqstat, but it doesn't filter. You'd need to do that via FFmpeg or somesuch.

I have heard rumor that there are defined specifics on how this is to be done, but I don't know what they are.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 18:56   #229  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
There are none.
Each company does own based on tests.
Paper math is not designed for compressed sources.

Quick test v210 vs ProRes gives on some random short file max Y as 922 vs 926, so it would translate to few nits, but not that bad actually.

Last edited by kolak; 22nd June 2022 at 19:05.
kolak is offline   Reply With Quote
Old 22nd June 2022, 19:08   #230  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
There are none.
Each company does own based on tests.
Paper math is not designed for compressed sources.

Quick test v210 vs ProRes gives on some random short file max Y as 922 vs 926, so it would translate to few nits, but not that bad actually.
I guess I may as well start messing around.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 19:17   #231  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Well this was ProResHQ. Now do the same with 30mbit h265 4:2:0 and things most likely will look way worse.
Maybe good solution is something which would average pixels so smallest one is made of 4 original. Who cares about place in the frame which is 1 pixel big? Maybe 4 is also too small?
Half size resize with area filter seems to give quite good (923) results on this sample
This is 30 seconds test, so don't rely on it

Last edited by kolak; 22nd June 2022 at 19:38.
kolak is offline   Reply With Quote
Old 22nd June 2022, 19:45   #232  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
Well this was ProResHQ. Now do the same with 30mbit h265 4:2:0 and things most likely will look way worse.
Maybe good solution is something which would average pixels so smallest one is made of 4 original. Who cares about place in the frame which is 1 pixel big? Maybe 4 is also too small?
Half size resize with area filter seems to give quite good (923) results on this sample
This is 30 seconds test, so don't rely on it
I'm going to start by having FFmpeg blur the living crap out of it.

Eh, not that much, though.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 19:49   #233  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Half size seems to work
Not sure if blur is a good way.

Interesting fact. h265 performs better than ProRes. Maybe it's not a surprise actually as it's way more complex codec and handles contrast much better. 924 max value, so not that big deal. Looks too good actually
Maybe 20Mbit is a lot for HD.

Last edited by kolak; 22nd June 2022 at 19:53.
kolak is offline   Reply With Quote
Old 22nd June 2022, 20:03   #234  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Quote:
Originally Posted by kolak View Post
Half size seems to work
Not sure if blur is a good way.

Interesting fact. h265 performs better than ProRes. Maybe it's not a surprise actually as it's way more complex codec and handles contrast much better. 924 max value, so not that big deal. Looks too good actually
Maybe 20Mbit is a lot for HD.
Actually, yeah! Except I'm going to quarter-size 4K down to 540p.

EDIT: Quarter-size on each axis.

Last edited by wswartzendruber; 22nd June 2022 at 20:06.
wswartzendruber is offline   Reply With Quote
Old 22nd June 2022, 21:35   #235  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Yep, quarter size may be even better and faster to process (tried on HD as well and it was good). How much would it affect MaxFALL calculation?
Maybe I'm over-exaggerating it.
ProRes will do few levels overshoot, around 4-8 max (so far I've seen by simulating very high contrast edges), so it's not that much. How many nits is this in worse case?

5mbit h265 for HD is doing up to 20 Y levels, so this is bit high.
Wavelet based codecs (Cineform, Jpeg2000) behave bit better. DCT based always go up, where wavelet ones also bit down.

Last edited by kolak; 23rd June 2022 at 11:44.
kolak is offline   Reply With Quote
Old 23rd June 2022, 16:38   #236  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
I just got from pqstat that Iron Man has a MaxCLL of 2,682 when metadata declares 826.

I'm going to try omitting the first and last several seconds in case there's some frame decoding error and artifacts are getting rendered.
wswartzendruber is offline   Reply With Quote
Old 23rd June 2022, 20:44   #237  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Hmm...2,682 sounds bad. No one would master it to such a value. It doesn't sound 2K with overshoots, just random value, so something must be not right. Try some 20 min. portion- should be representative and give max as well (no guarantee of course).
Studios master mainly to 1K, 2K and 4K nits and typically grading software will clip max to this values (+- few nits). This is why value like 2682 is strange.
How old is this title? Try something from last 6 months.

Why can't we measure it this way.
All delivery codecs are YUV based, so just find max Y value and then count light by comparing it to PQ curve. Eg. I know that 769 (for 10bit) is 1000nits (this also perfectly agrees with Resolve when grading).
This sounds simple and should be correct (overshoots problems still apply though).
Why do we need some convoluted way to recreate RGB when original grading decision is bound to Y value inside your file?

Last edited by kolak; 23rd June 2022 at 21:06.
kolak is offline   Reply With Quote
Old 24th June 2022, 04:18   #238  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
Because MaxCLL is not properly calculated using Y values. It is properly calculated with max(R,G,B).
wswartzendruber is offline   Reply With Quote
Old 24th June 2022, 07:21   #239  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
To be fair, I have a few ProRes HQ over here and I was checking the MaxCLL value by comparing it with the one sent via xml by the official provider.
For Harry Potter and the Chamber of Secrets, the official value provided via xml is 2856 Nits, however the one calculated by PQStats is 3204 which means that it's off by 348 nits due to compression overshooting (yes even if it's 900 GB worth of ProRes).

Quote:
Originally Posted by kolak View Post
Hmm...2,682 sounds bad. No one would master it to such a value.
For that particular title, sure, but I've seen movies mastered at really arbitrary nits depending on which studio did it.
For instance, this is a series of titles we received over the years along with an xml depicting the MaxCLL:

Goodfellas 247 Nits
The Dark Knight Returns 1399 Nits
The Good Liar 244 Nits
Richard Jewell 1213 Nits
Harry Potter and the Half-Blood Prince 1915 Nits
The Dark Knight 1002 Nits
Harry Potter and the Order of the Phoenix 1135 Nits
Harry Potter and the Deathly Hallows: Part I 2632 Nits
Harry Potter and the Deathly Hallows: Part II 2811 Nits
Zack Snyder's Justice League 835 Nits
Batman Begins 992 Nits
Harry Potter and the Philosopher's Stone 552 Nits
Harry Potter and the Goblet of Fire 2848 Nits
Harry Potter and the Prisoner of Azkaban 1838 Nits
The Lego Movie 1687 Nits
Godzilla 561 Nits
The Town 1339 Nits
Just Mercy 1017 Nits
Birds Of Prey 4616 Nits
Harry Potter and the Chamber of Secrets 2856 Nits
Dune 945 Nits

so as you can see, it looks like the MaxCLL can be as arbitrary as people like, so beware of what the distributor puts on the BD 'cause it might differ from the actual value of the master.
FranceBB is offline   Reply With Quote
Old 24th June 2022, 08:46   #240  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Sorry, but MaxFALL is something totally different than I thought.
Not sure why it’s defined this way, but it has not much to do with fact that you graded to eg. 1K nits. Grading can be 1K where MaxFALL 1.5K ( I assume). Is it true MaxFALL will be always bigger ( or at least equal ) than max brightness coming from Y?
What I see in Resolve and on any other scopes etc. is a separate thing to MaxFALL. Titles are graded to rather round values and it’s 1,2,4K etc. but MaxFALL is totally separate thing. Why, no idea.

Last edited by kolak; 24th June 2022 at 09:13.
kolak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:42.


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