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 29th January 2025, 17:46   #21  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 460
Quote:
Originally Posted by rwill View Post
Regarding noticing if something has been hand graded to SDR or tonemapped down from HDR, it is more or less the same concept as at which point do people notice the difference between an honest question and a troll. Some will notice right away, some will if it is pointed out to them, some will never.
You can come close with HLG. Different players/services have different interpretations on how to render HLG on BT.709 displays, however.



The top one is the SDR Blu-ray. The other two are sourced from the 4K UltraHD disc with the tool I wrote being used to do considerable exposure adjustment. (The HDR mastering on that disc is somewhat rancid.)

EDIT: YouTube Link

Last edited by wswartzendruber; 29th January 2025 at 21:26.
wswartzendruber is offline   Reply With Quote
Old 30th January 2025, 16:18   #22  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 366
I think the middle one looks the best. The official SDR is somewhat too bright and flat, and the third one looks over-saturated.

By the way, regarding PQ to BT.709 SDR conversion, here's a comparison of the 1080p Blu-ray and libplacebo's SDR version made from the UHD Blu-ray.

Last edited by GeoffreyA; 30th January 2025 at 17:31.
GeoffreyA is offline   Reply With Quote
Old 30th January 2025, 18:43   #23  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Quote:
Originally Posted by GeoffreyA View Post
I think the middle one looks the best. The official SDR is somewhat too bright and flat, and the third one looks over-saturated.

By the way, regarding PQ to BT.709 SDR conversion, here's a comparison of the 1080p Blu-ray and libplacebo's SDR version made from the UHD Blu-ray.
Just from the images in your comparison, I think I prefer the official one. Tonemapped one looks too dark and saturated. But I don't know how original HDR looks in HDR environment.
Z2697 is offline   Reply With Quote
Old 30th January 2025, 18:56   #24  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,431
the native bt 709 one clearly that's the creators intend.
huhn is offline   Reply With Quote
Old 31st January 2025, 02:56   #25  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 460
Quote:
Originally Posted by Z2697 View Post
Just from the images in your comparison, I think I prefer the official one. Tonemapped one looks too dark and saturated. But I don't know how original HDR looks in HDR environment.
EDIT: BLEH. I thought this was a response to me and it wasn't. I'm so important it's all about me! Apparently.

I don't think YouTube is handling things correctly. But the last time I looked at VLC's interpretation of HLG on Windows, it was pretty much right on the money.

HLG that's correctly graded is going to look a tad darker than native SDR. This is because SDR usually puts reference white at 91% signal strength while HLG puts it at 75% signal strength.

Of course, if you don't have a native SDR image for a side-by-side comparison, can you even tell that something is HLG-over-SDR in the first place?


Last edited by wswartzendruber; 31st January 2025 at 05:15.
wswartzendruber is offline   Reply With Quote
Old 31st January 2025, 10:34   #26  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 366
Quote:
Originally Posted by Z2697 View Post
Just from the images in your comparison, I think I prefer the official one. Tonemapped one looks too dark and saturated. But I don't know how original HDR looks in HDR environment.
Quote:
Originally Posted by huhn View Post
the native bt 709 one clearly that's the creators intend.
It does look too saturated (much too orange and pink, I would say). I thought it was all right until this comparison. However, I haven't got an HDR TV or monitor. But, looking at these small sections on an HDR phone, I think the colour matches the libplacebo version. Perhaps the 4K was graded extravagantly; I don't know. Here are samples of those scenes (the second is not the exact shot but close).

Quote:
Originally Posted by wswartzendruber View Post
HLG that's correctly graded is going to look a tad darker than native SDR. This is because SDR usually puts reference white at 91% signal strength while HLG puts it at 75% signal strength.

Of course, if you don't have a native SDR image for a side-by-side comparison, can you even tell that something is HLG-over-SDR in the first place?
Yes, native SDR versions tend to be brighter.

Last edited by GeoffreyA; 31st January 2025 at 11:03.
GeoffreyA is offline   Reply With Quote
Old 31st January 2025, 11:48   #27  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Quote:
Originally Posted by GeoffreyA View Post
It does look too saturated (much too orange and pink, I would say). I thought it was all right until this comparison. However, I haven't got an HDR TV or monitor. But, looking at these small sections on an HDR phone, I think the colour matches the libplacebo version. Perhaps the 4K was graded extravagantly; I don't know. Here are samples of those scenes (the second is not the exact shot but close).



Yes, native SDR versions tend to be brighter.
I managed to take a look at that movie in HDR, yes it does look like that...
Z2697 is offline   Reply With Quote
Old 31st January 2025, 12:48   #28  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,431
Quote:
Originally Posted by GeoffreyA View Post
It does look too saturated (much too orange and pink, I would say). I thought it was all right until this comparison. However, I haven't got an HDR TV or monitor. But, looking at these small sections on an HDR phone, I think the colour matches the libplacebo version. Perhaps the 4K was graded extravagantly; I don't know. Here are samples of those scenes (the second is not the exact shot but close).



Yes, native SDR versions tend to be brighter.
did you calibrate your device?
we don't know how the 4K was mastered we don't look at it.
huhn is offline   Reply With Quote
Old 31st January 2025, 17:02   #29  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 460
Is there a PQ still of the image in question somewhere? Maybe like a 16-bit PNG or something.
wswartzendruber is offline   Reply With Quote
Old 31st January 2025, 17:48   #30  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Using FFmpeg I copied one single I frame from the source as HEVC elementary stream. (Thanks to the short GOP of UHD / Bluray encoding)
My cut point is 07:56 and 08:37.
https://www.mediafire.com/folder/17wfvapz43qli

I didn't register to mediafire, maybe the link will expire after some time.
The movie is The Substance (2024)
Z2697 is offline   Reply With Quote
Old 31st January 2025, 19:28   #31  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 366
Quote:
Originally Posted by huhn View Post
did you calibrate your device?
we don't know how the 4K was mastered we don't look at it.
I didn't. This was a haphazard "test," actually as a side comment on wswartzendruber's Alita comparison, but it led to some interesting discoveries
GeoffreyA is offline   Reply With Quote
Old 31st January 2025, 21:17   #32  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 460
I converted these to SDR myself. First I used my pq2hlg tool to convert them to HLG, and then I used a completely different LUT I generated a while back to shrink the gamut from BT.2020 to BT.709.

I'm not sure what the reference white level of this movie is, so I provided four screenshots total. Two at 100 nits and two at 203 nits.

http://wswartzendruber.net/images/07-56-100nits.png
http://wswartzendruber.net/images/07-56-203nits.png
http://wswartzendruber.net/images/08-37-100nits.png
http://wswartzendruber.net/images/08-37-203nits.png

This second LUT works by using the relatively new Oklab color model to basically hard-clip the color gamut. When FranceBB compared this to his commercial LUT, it was nearly identical except in the deep blues.
wswartzendruber is offline   Reply With Quote
Old 2nd February 2025, 01:16   #33  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,236
I also joined the party and I downloaded the still frame from above, then I used my own function to see what it was:

Code:
VideoTek(Mode="PQ", Type="nits", Detailed=true)


In the scene highlighted above we can see how the white is peaking slightly below the 203 nits mark, I'd say something around 180 nits probably.

If we check the official BT709 SDR version we can see that the white seems to peak at 80 nits, thus leading us to the conclusion that it was probably mastered from a log source that doesn't go at more than 200 nits.

Code:
VideoTek(Mode="SDR", Type="nits", Detailed=True)



Using my PQ_to_BT709_v1.cube LUT via LinearTransformation() the result is the following:




Here's the script that gathers all the comparisons done so far:

Quote:
FFVideoSource("D:\07-56.265")
SinPowerResize(704, 396)
official_pq=last

ImageSource("P:\07-56-100nits.png")
SinPowerResize(704, 396)
Converttoyv12()
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("LUT - HLGTools + Oklab (William)")
Crop(0, 0, -0, -520)
william=last

FFImageSource("P:\Official SDR vs. libplacebo SDR\unknown 0_1080p-BD SDR.webp")
Converttoyv12()
AddBorders(0, 138, 0, 138)
SinPowerResize(704, 396)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("Official BT709 SDR Version")
Crop(0, 0, -0, -520)
official_bt709=last

FFImageSource("P:\Official SDR vs. libplacebo SDR\unknown 0_libplacebo SDR from HDR 4K-BD.webp")
Converttoyv12()
AddBorders(0, 138, 0, 138)
SinPowerResize(704, 396)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("libplacebo Tonemapping")
Crop(0, 0, -0, -520)
libplacebo=last

ConvertBits(official_pq, 16)
ConvertYUVtoXYZ(Color=0, OutputMode=1, HDRMode=0, fullrange=false)
ConvertXYZ_Hable_HDRtoSDR(exposure_X=13)
ConvertXYZtoYUV(pColor=0)
Converttoyuv420()
ConvertBits(bits=8, dither=1)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("Hable Tonemapping")
Crop(0, 0, -0, -520)
hable=last

ConvertBits(official_pq, 16)
ConvertYUVtoXYZ(Color=0, OutputMode=1, HDRMode=0, fullrange=false)
ConvertXYZ_Mobius_HDRtoSDR(exposure_X=38.5)
ConvertXYZtoYUV(pColor=0)
Converttoyuv420()
ConvertBits(bits=8, dither=1)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("Mobius Tonemapping")
Crop(0, 0, -0, -520)
mobius=last

ConvertBits(official_pq, 16)
ConvertYUVtoXYZ(Color=0, OutputMode=1, HDRMode=0, fullrange=false)
ConvertXYZ_Reinhard_HDRtoSDR(exposure_X=20.5, contrast_X=0.7)
ConvertXYZtoYUV(pColor=0)
Converttoyuv420()
ConvertBits(bits=8, dither=1)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("Reinhard Tonemapping")
Crop(0, 0, -0, -520)
reinhard=last

ConvertBits(official_pq, 16)
ConvertToPlanarRGB()
Cube("C:\Programmi\AviSynth+\LUTs\PQ_to_BT709_v1.cube")
Converttoyuv420()
ConvertBits(bits=8, dither=1)
VideoTek(Mode="SDR", Type="nits", Detailed=True)
Subtitle("LinearTransformation")
Crop(0, 0, -0, -520)
francebb=last

VideoTek(official_pq, Mode="PQ", Type="nits", Detailed=True)
Subtitle("Official BT2020 PQ Version")
Crop(0, 0, -0, -520)
pq=last

StackVertical(pq, official_bt709, libplacebo, william, hable, mobius, reinhard, francebb)


Last edited by FranceBB; 2nd February 2025 at 01:31.
FranceBB is offline   Reply With Quote
Old 2nd February 2025, 05:57   #34  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Why "around"? Make more graduations under 203!
Or maybe add a line across the peak with values displayed.
Z2697 is offline   Reply With Quote
Old 2nd February 2025, 11:04   #35  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 366
Bravo. I see fantastic work is going on here. I'll catch up soon, but I've been out of action, upgrading my CPU to a 5500GT, which doesn't seem to be working right with my B450 Tomahawk
GeoffreyA is offline   Reply With Quote
Old 2nd February 2025, 14:04   #36  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,869
SDR version is not really a reference point as this is creative version of HDR grade done by colorist. You can't make a conversion which will give you "correct" SDR look for all titles out there. They all will be different as in most cases they are done by creative process, not math. This means you would have to take 1000 titles and make a conversion which works best for all of them on average.

In other words- taking one title as an example and trying to create best conversion (so it matches 'official SDR') is not the way to go.

Last edited by kolak; 2nd February 2025 at 14:17.
kolak is offline   Reply With Quote
Old 2nd February 2025, 15:23   #37  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 460
Oh hey, the gang who helped me write hlg-tools is showing up!

Quote:
Originally Posted by kolak View Post
SDR version is not really a reference point as this is creative version of HDR grade done by colorist. You can't make a conversion which will give you "correct" SDR look for all titles out there. They all will be different as in most cases they are done by creative process, not math. This means you would have to take 1000 titles and make a conversion which works best for all of them on average.

In other words- taking one title as an example and trying to create best conversion (so it matches 'official SDR') is not the way to go.
This is what I was trying to get at with having to know where reference white is for each movie. And even that is just an approximate way of doing this.
wswartzendruber is offline   Reply With Quote
Old 2nd February 2025, 19:06   #38  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Quote:
Originally Posted by GeoffreyA View Post
Bravo. I see fantastic work is going on here. I'll catch up soon, but I've been out of action, upgrading my CPU to a 5500GT, which doesn't seem to be working right with my B450 Tomahawk
Are the old architecture CPUs "re-released" really worth it?
It's good to see a platform have such a long life, but they can just keep manufacturing old models.
Maybe it's a good marketing strategy? I don't know.
Z2697 is offline   Reply With Quote
Old 2nd February 2025, 19:18   #39  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 581
Quote:
Originally Posted by kolak View Post
SDR version is not really a reference point as this is creative version of HDR grade done by colorist. You can't make a conversion which will give you "correct" SDR look for all titles out there. They all will be different as in most cases they are done by creative process, not math. This means you would have to take 1000 titles and make a conversion which works best for all of them on average.

In other words- taking one title as an example and trying to create best conversion (so it matches 'official SDR') is not the way to go.
I was trying to confirm that libplacebo is doing "correct" to make the tonemapped result look like the real HDR (of course, it's just a not-so-close approximation), because in the two screenshot of The Substance first posted, SDR and tonemapped HDR look so different.
Then we (at least GeoffreyA and I) just accepted that they are really that different.

Last edited by Z2697; 2nd February 2025 at 19:21.
Z2697 is offline   Reply With Quote
Old 2nd February 2025, 20:35   #40  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,236
Quote:
Originally Posted by wswartzendruber View Post
Oh hey, the gang who helped me write hlg-tools is showing up!
Yaaay, we may not talk quite as regularly as we used to, but we're still here.

Quote:
Originally Posted by kolak View Post
SDR version is not really a reference point as this is creative version of HDR grade done by colorist.
Yes, up until a few years ago I would have said that the raw footage is generally shot and edited in log and then three different grades are performed by three different colorists:

- DCI P3 XYZ 48 nits
- BT709 YUV 100 nits
- BT2020 PQ YUV xxx nits

The first being for the theatrical release at the various cinemas (and the chroma is generally cranked up a bit to compensate for the low light environment and the fact that we're in the mesopic vision in which we're capturing a lot of luma but not quite as much chroma), the second is for the SDR version (i.e normal BD) and the third is the HDR version (i.e UHD BD). The reason why I wrote "xxx nits" is that it can really be anything up to 10,000 nits although I've only ever seen movies peaking up at 5000 nits max (and they were only in the special effects).

Anyway, this is not always the case and I've seen many studios doing a direct conversion of the theatrical release to create the BT2020 HDR PQ version. The movie above, not The Substance that Z2697 was talking about, but rather the one William mentioned with the screenshots, Alita, was one such case if I remember correctly.

That being said, you're right in saying that generally those are three different grades from three different colorists originating from the original log and therefore it's not possible to get the BT709 SDR version from the BT2020 HDR PQ one, however it's still a valid reference point nonetheless. Last but not least, up until now I've only really talked about cinema and blurays, but if you've ever watched a linear tv channel in UHD what you're getting is almost definitely BT2020 HLG instead which means that pretty much all movies and tv series airing (not streaming) are converted to HLG all the time and those conversions are done by the broadcasters themselves as the studios don't really generally grade movies in HLG (however TV series and documentaries often are).
FranceBB is offline   Reply With Quote
Reply

Tags
hdr to sdr

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 11:53.


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