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 21st January 2025, 22:53   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 324
About HDR to SDR Quality

If I convert a 4K HDR video or movie to SDR, will it still have higher quality than the official 1080p SDR version?
jay123210599 is offline   Reply With Quote
Old 22nd January 2025, 05:47   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,562
Depends on how the official 1080p release and your conversion was made in details. (used tools and settings)
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 22nd January 2025, 09:03   #3  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 253
Quote:
Originally Posted by jay123210599 View Post
If I convert a 4K HDR video or movie to SDR, will it still have higher quality than the official 1080p SDR version?
Assuming UHD and Blu-ray for simplicity, it depends on a lot of things. How good the UHD is, how bad the Blu-ray is, and how good the tools are.

If one is looking at 2008-era Blu-rays, many were poor, ill encoded, and made from ageing masters. A more recent Blu-ray of the same movie, perhaps made from a 4K scan of the camera negative, will often be as close as one can get to best quality in SDR, if the grading was done faithfully and well. Often, but not always the case. Take the 2018 remastering of The Matrix: its 1080p Blu-ray was ill graded, blowing out terribly in certain scenes, such as the rooftop sequence; but the UHD—made from the same scan—is thought to be the best home presentation to date. Creating an SDR version from that UHD may well give better results than the Blu-ray.

Other times, it might be subjective. Criterion's Blu-ray of Mulholland Drive, made from a 4K scan and overseen by Lynch and Deming, is excellent. The UHD, made from the same scan, is thought to be a bit better. So, if you were to make an SDR version from the UHD, which I've done, it might be subjective which SDR version looks better, complicated by the fact that the UHD was graded with a darker picture than the Blu-ray. (Another phenomenon, at least on MD, is that the grain is finer and more "condensed" on the UHD, which carries over to the SDR-converted version's compressing better than the official Blu-ray, whose grain is coarser.)

I think the official Blu-ray, after review, should be considered the first choice of an SDR version. If it's not accessible, a rubbish old one, or done poorly, converting the UHD, with libplacebo for instance, will usually give solid results. Also, if you are targeting 10-bit depth, starting from the UHD, you've already got a slight advantage over the Blu-ray, mainly affecting banding. However, if the conversion is done with poor settings and tools, it can be disastrous.

Comparison: https://we.tl/t-Wr3w6EQDUV

Last edited by GeoffreyA; 22nd January 2025 at 10:44.
GeoffreyA is offline   Reply With Quote
Old 22nd January 2025, 11:14   #4  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,172
It really depends on what you're targeting as an output, but in principle starting from the UHD BD will yield better quality.
You see, the UHD version is 3840x2160 4:2:0 10bit planar, which means that it has 3840x2160 luma and 1920x1080 chroma (which is upscaled on playback by your 4K TV during the RGB conversion).
What I usually do is to downscale the luma while preserving the resolution of the chroma (you're gonna have to align it as it's top_left originally) to get a perfectly valid 1920x1080 4:4:4 10bit.
From there, you can either decide to leave it as PQ and let the player convert it to BT709 SDR on the fly or make the RGB 16bit roundtrip and apply a LUT or perform dynamic tonemapping with an XYZ 16bit roundtrip. It's your call.
The official FULL HD BD however will be 4:2:0 8bit, so in theory it *should* be inferior.
FranceBB is offline   Reply With Quote
Old 22nd January 2025, 13:03   #5  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 253
FranceBB, yes, that point has been on my mind now and then and I've wanted to do it. On the UHD, we've already got 1920x1080 chroma, and in the usual conversion, that is being scaled up to 2160p, merged with the luma, and converted to RGB linear light. Tone mapping, etc., are done and it is scaled down. So the chroma is going, so to speak: 1080p > 2160p > RGB > 1080p > YUV 4:4:4 > 540p.

I haven't worked out how to avoid that properly in my encoding "pipeline." (I did it once but it was coming out over-saturated, likely because gamut mapping wasn't done.) It would require some thought. Also, using libplacebo, for instance, does complicate things because it abstracts the process, and outside of it, dynamic tone mapping is not easily accessible in the common tools, as far as I'm aware.
GeoffreyA is offline   Reply With Quote
Old 22nd January 2025, 15:30   #6  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,286
downscale to 1080p and then tonemap?

upscaling the chroam first and downscaling next is not a really big issue.
huhn is offline   Reply With Quote
Old 22nd January 2025, 15:54   #7  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 253
Quote:
Originally Posted by huhn View Post
downscale to 1080p and then tonemap?

upscaling the chroam first and downscaling next is not a really big issue.
Please elaborate. I'm a bit lost.
GeoffreyA is offline   Reply With Quote
Old 22nd January 2025, 17:59   #8  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,440
Downscale the luma to match the chroma for YUV 4:4:4, do the convertion to RGB and tonemap, and then back to YUV 4:4:4.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 22nd January 2025, 20:36   #9  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 253
Quote:
Originally Posted by Asmodian View Post
Downscale the luma to match the chroma for YUV 4:4:4, do the convertion to RGB and tonemap, and then back to YUV 4:4:4.
Thanks! I'll try to implement that.
GeoffreyA is offline   Reply With Quote
Old 27th January 2025, 02:56   #10  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 324
Selur, GeoffreyA, and FranceBB, the movies I'm talking about are The Incredibles and Incredibles II 4K UHD Blu-Ray Movies. My target output would be HDR to SDR 4K with black bars removed.
jay123210599 is offline   Reply With Quote
Old 27th January 2025, 07:32   #11  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 253
Yes, your 4K SDR version will have higher quality than the 1080p SDR version. In the script on the other page, just remove the 1080p scaling part, "w=1920:h=-1".
GeoffreyA is offline   Reply With Quote
Old 1st February 2025, 14:29   #12  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 324
Quote:
Originally Posted by GeoffreyA View Post
Yes, your 4K SDR version will have higher quality than the 1080p SDR version. In the script on the other page, just remove the 1080p scaling part, "w=1920:h=-1".
You mean this? https://forum.doom9.org/showthread.p...87#post2013487

Do I remove crop=1920:804:0:138 from the script?
jay123210599 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 05:50.


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