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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#41 | Link | |||
|
Registered User
Join Date: Dec 2017
Posts: 90
|
Quote:
Quote:
Quote:
See: https://en.wikipedia.org/wiki/Luminous_intensity Also see: https://en.wikipedia.org/wiki/Luminosity_function Also see: https://en.wikipedia.org/wiki/Radiant_intensity Why would the brightness of an entire pixel (R, G and B combined) even matter to the TV? The TV, I think, has to be worried about not burning through any subpixel, and maybe energy saving regulations. As long as no individual subpixel gets too hot (or whatever else matters for its longevity), it hardly matters what the value of the other subpixels is. Of course you can argue that the heat from a subpixel affects subpixels around it, however then, depending on the subpixel layout, the TV might - e.g. in case of a red subpixel - be more worried about the blue subpixel of the neighboring pixel since its closer to that red subpixel than the blue subpixel of the same pixel. So knowing the brightness of a pixel as a whole is barely useful, unless I'm missing something. See my last post and the whole thing about constant vs. non-constant. In short, as I think I learned, no. Last edited by benwaggoner; 8th January 2020 at 00:55. Reason: Profane insult removed |
|||
|
|
|
|
|
#42 | Link |
|
Registered User
Join Date: Dec 2017
Posts: 90
|
So I tested my plugin on some of the MaxCLL test patterns here:
https://www.avsforum.com/forum/139-d...terns-set.html What I learned is that some of the patterns will read out as almost 10,000 nits despite supposedly being meant to have MaxCLL 1000 or 4000. Other patterns will read slightly above 1000 nits, which seems about right. Seemed like an error to me, so I took a screenshot and checked the RGB values in Photoshop. Turns out, the text superimposed over the colors creates some artifacts that lead to extreme overshoots in some cases, for example with the red testpattern. However I'm not sure if this is a problem with the chart itself or possibly with ffvideosource or ConvertToRGB64(matrix="Rec2020") or simply with the color subsampling, or with a combination of all of those. Generally speaking, judging by the patterns that gave reasonable readings, MaxCLL indeed seems to be the maximum subpixel value, if those charts are correct. Different colors that were supposed to have identical MaxCLL all turned out to have just that with my method of reading. I tried a few other videos but the results were very inconsistent and any resemblance between my readings and their data was spurious at best. For example I tested some JVC HDR test Blu Ray and it gave me 10,000 nits where the metadata said MaxCLL was 1020 cd/m2. I took a screenshot again and it was some very tiny highlight, a reflection in some shoe in a shoe store at night, that actually blew out the blue channel. Which leads me to believe that the metadata is either wrong or they used that kind of blurring someone mentioned, which might explain why the metadata is lower. However they also reused the same metadata for multiple clips so I'm not sure it can be trusted at all.. I also tested this video: https://www.youtube.com/watch?v=hsbM2c6-9Wg My readings for FALL (I just looked at single frames) were a bit less than half of what the video said they were supposed to be in each place I measured. I wonder if this might have to do with that little point about only measuring the "active pixels" and whether I need to just discard all black pixels from the calculation, though that seems a little strange to me. I then cropped the video to only show the right half and measured that, but it didn't really change much. Maybe someone here can run the same videos through another MaxFALL/MaxCLL application to compare the results. |
|
|
|
|
|
#43 | Link |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
If I remember well somewhere in the docs there was info about taking into account active area only (if aspect is different than frame aspect).
Those overshoots are present as you deal with compressed footage I assume (and present problem which I was talking about). In high-end finish master are done as eg. 16bit TIFF so there should be no such a problem (but even encoding to ProRes etc. will introduce overshoots). There is also some 'inconsistency' with range- some documents use 0-1023, others 4-1019 (due to timing reference been used for other values). As far as I understand eg. HDMI uses 4-1019 range. Last edited by kolak; 12th January 2020 at 23:26. |
|
|
|
|
|
#44 | Link | |
|
Registered User
Join Date: May 2019
Posts: 7
|
Quote:
|
|
|
|
|
|
|
#46 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
By the way, in the SMPTE August 2021 journal, there is a paper describing an alternative calculation for the metadata.
Pseudocode:
__________________
LG C2 OLED | GitHub Projects |
|
|
|
|
|
#49 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
Doesn't seem to.
It should be pretty trivial to do using VapourSynth and numpy's percentile.
__________________
LG C2 OLED | GitHub Projects |
|
|
|
|
|
#51 | Link | |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
Quote:
In practice it's not that often derived from correct stage of production. It's a fact and industry should react and change formula for MaxCLL (there is proposed version with outliers rejections). There are already tons of eg. BDs out there with wrong metadata. My last investigation pointed that it's not really a compression (definitely not intermediate one), but chroma subsampling which is biggest enemy of MaxCLL calculation. I also found out that quite many (what meant to be high quality A class tiles) eg. ProRes444 masters are actually gone through 422 at some stage and they are "fake 444". I'm rather disappointed with such a discovery. These give you "random" MaxCLL values. Make a simple test to 1K nits in Resolve, export to uncompressed, ProRes/DNxHR 444 and then to 422 equivalents and measure MaxCLL. As an extra test convert 422 to 444 and check then. Intermediate compression should typically cause errors around 100nits (maybe 200 in extreme cases as PQ curve boosts it a lot compared to coded values). At least this is what I've seen on my tests, but it may not be full story. Wavelet compression seems to be more 'HDR friendly' than DCT. Last edited by kolak; 9th July 2022 at 17:25. |
|
|
|
|
|
|
#52 | Link | |||
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
I made a first attempt at it in awsmfunc: https://github.com/OpusGang/awsmfunc
Example script: Quote:
It runs at ~20 fps for 2160p here, ~70 at 1080p. Results: Regular (max = 100% percentile): Quote:
And then MaxCLL = 99.5% and MaxFALL = 99.75% Quote:
At the very least, using 99.99% percentile as "max pixel" in a frame makes a significant difference. Especially when the highlights are very small. It's also very likely that the values won't match pro tools, but they shouldn't be too far.
__________________
LG C2 OLED | GitHub Projects Last edited by quietvoid; 9th July 2022 at 22:44. |
|||
|
|
|
|
|
#53 | Link | |
|
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 5,132
|
Quote:
Static metadata is turning into a legacy thing, thank goodness, as dynamic metadata does everything it can and way way more. |
|
|
|
|
|
|
#54 | Link | |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
Quote:
|
|
|
|
|
|
|
#56 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
It's not low in this case since these results I posted are from a 1000 frames clip trim.
And there are only a few frames with a single dot of specular highlight going over 1000 nits, so that's pretty small to be hardly be considered 99.99%. The full analysis of the title was around 20 nits off the MaxCLL in the metadata. This is the image from the posted analysis: https://0x0.st/o1KO.png The brightest pixel is probably somewhere in that "star" in the letter E. At 100% percentile, it's over 1000 nits. At 99.99%, you get 510 nits.
__________________
LG C2 OLED | GitHub Projects |
|
|
|
|
|
#57 | Link | ||
|
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,375
|
Quote:
Quote:
On the other hand, the value you've got of 510 nits calculated by removing outliers looks way lower than it should be. |
||
|
|
|
|
|
#58 | Link | |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
Quote:
Hard to imagine typical 90min movie not to have a scene which could not use of 1K nits (even 'dark' movie). I would hardly call a title with 500nits max as HDR. Almost non point to bother with this "so called" HDR grade then. Title like Dune has no scenes "deserving" 1K nits for highlights? Last edited by kolak; 11th July 2022 at 18:08. |
|
|
|
|
|
|
#59 | Link | |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
Quote:
FWIW, the Dolby Vision metadata says that this shot is supposed to be 800 nits. This value is probably from analysis by the grading software. So it probably doesn't do 99.99% either, which makes sense. To be clear, I don't myself think 99.99% percentile is good as brightest pixel. I've found better results with something like 99.9999%.
__________________
LG C2 OLED | GitHub Projects |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|