HDR -> SDR conversion

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Umm, OK.

I fixed a small bug in DGIndexNV in the test package, so please re-download and update for testing.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Found some more bugs. Temporarily withdrawing. Standby...
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

OK, hlg_test.rar is back online so re-download and update DGIndexNV. Have at it!
User avatar
DJATOM
Posts: 176
Joined: Fri Oct 16, 2015 6:14 pm

Re: HDR -> SDR conversion

Post by DJATOM »

I've tuned Meari sample to match mpv's output (slightly brighter, but looks better for me)
Image
PC: RTX 2070 | Ryzen R9 5950X (no OC) | 64 GB RAM
Notebook: RTX 4060 | Ryzen R9 7945HX | 32 GB RAM
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Ah, good to hear. Thank you.

You probably noticed most of the goodness for PQ is at the top end of the range for white and it is nonlinear. HLG in contrast works much better and feels linear. I'm going to try linearizing the PQ parameter range, it's a GUI issue and a functional one, because we are lacking granularity at the top end.
User avatar
Bullwinkle
Posts: 337
Joined: Thu Sep 05, 2019 6:37 pm

Re: HDR -> SDR conversion

Post by Bullwinkle »

Gonna tonemap the white parameter space, eh, Rock? Whoop.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Everything released in slipstream 188. Note that the PQ white range is now 1-3000 to give some more granularity at the top end (PQ white range not yet linearized).
User avatar
zys4416
Posts: 9
Joined: Fri Jul 29, 2011 9:04 pm

Re: HDR -> SDR conversion

Post by zys4416 »

Cool!!!!

I have tested my HLG sources, the result is pretty perfect by now.

I will try more samples, this is very exciting!

btw, new 'Enable HDR to SDR' GUI is easy to use ;-)
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Thrilled that you like it! Thank you for the feedback.
User avatar
Bullwinkle
Posts: 337
Joined: Thu Sep 05, 2019 6:37 pm

Re: HDR -> SDR conversion

Post by Bullwinkle »

Hey Rocky, are you sure you are implementing the BT.2390 EETF correctly (see Figure 20)? That's how we should scale for target brightness in PQ, not just change the multiplier for the EOTF. Perhaps that would give a more linear feel. People say I have that linear feel. Meese rule, and, you know, hoomans drool! You know it's true.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Wow Bullwinkle. What would we do without you!? Here we go. Whee!
User avatar
Bullwinkle
Posts: 337
Joined: Thu Sep 05, 2019 6:37 pm

Re: HDR -> SDR conversion

Post by Bullwinkle »

That's nothing Rocky watch me pull a rabbit out of my hat...
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: HDR -> SDR conversion

Post by Guest 2 »

Out of curiosity, DGHDRtoSDR uses Reinhard, right?
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky »

Yes, it does.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

HDR -> SDR conversion

Post by Guest 2 »

Where can I find DGHDRtoSDR latest release?

On main site I can download 1.13 only.

Do you plan to integrate the plugin into DGDecodeNV dll?
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Fixed the main web page menu for 1.14. Thank you for pointing that out.

Haven't any plans to incorporate it into DGDecodeNV.dll as I want to keep it free.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

HDR -> SDR conversion

Post by Guest 2 »

Rocky wrote:
Mon Mar 22, 2021 8:57 am
Fixed the main web page menu for 1.14. Thank you for pointing that out.
:hat:
DAE avatar
50vince50
Posts: 1
Joined: Sun May 09, 2021 1:49 pm

HDR -> SDR conversion

Post by 50vince50 »

DG, Rocky, a few words to thank you for this excellent filter (using it with AVS) !!!
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Thank you 50vince50 (LOL) and welcome to the forum!
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Rocky wrote:
Mon Mar 22, 2021 8:57 am
Haven't any plans to incorporate it into DGDecodeNV.dll as I want to keep it free.
Re-thinking may be in order.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Just for fun I ran a HDR PQ UHD disk with DGSource/DGHDRtoSDR/DGDenoise on the 3090. It hardly breaks a sweat.

Code: Select all

AVSMeter 3.0.9.0 (x64), (c) Groucho2004, 2012-2021
AviSynth+ 3.7.0 (r3382, 3.7, x86_64) (3.7.0.0)

Number of frames:                   201901
Length (hh:mm:ss.ms):         02:20:20.954
Frame width:                          3840
Frame height:                         2160
Framerate:                          23.976 (24000/1001)
Colorspace:                           YV12

Frames processed:                   4800 (0 - 4799)
FPS (min | max | average):          49.09 | 77.08 | 73.97
Process memory usage (max):         552 MiB
Thread count:                       27
CPU usage (average):                6.3%

GPU usage (average):                53%
VPU usage (average):                18%
GPU memory usage:                   2018 MiB
GPU Power Consumption (average):    243.4 W

Time (elapsed):                     00:01:04.893
DAE avatar
Guest

HDR -> SDR conversion

Post by Guest »

Now you need storage for that speed (indexing and demuxing)
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Yeah, the 2TB SSD is almost full with ripped disks.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

HDR -> SDR conversion

Post by Guest 2 »

Is there any way to have chroma 4k 4:2:0 to chroma 1080p 4:4:4 done in CUDA?

It would be nice to have when resizing from DGSource.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

HDR -> SDR conversion

Post by Rocky »

Can you please explain the use case and justification for this request?
Post Reply