HDR -> SDR conversion

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
admin
Site Admin
Posts: 4215
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Sun Oct 21, 2018 8:45 am

Maybe 10 is a bit too strong. I'll reduce it in the next version.

User avatar
admin
Site Admin
Posts: 4215
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Sun Oct 21, 2018 11:06 am

I slipstreamed 1.11 to reduce default hue to 5. Hopefully, you can live with that. I do think this hue correction is a good thing. If you can show otherwise, please do.

sv503
Posts: 1
Joined: Thu Jan 31, 2019 2:34 am

Re: HDR -> SDR conversion

Post by sv503 » Thu Jan 31, 2019 6:53 am

Hi, Donald!
Please give recommendations, how to select the parameter "Prefetch"? What does this parameter affect? Thank's.

User avatar
admin
Site Admin
Posts: 4215
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Thu Jan 31, 2019 11:21 am

It's an Avisynth+ thing that you can google. There are so many variables affecting it that your best bet is to use Avsmeter to time your script and empirically determine the best value. For some scripts, any prefetch reduces performance.

Keyser78
Posts: 8
Joined: Thu Feb 07, 2019 2:33 am

Re: HDR -> SDR conversion

Post by Keyser78 » Thu Feb 07, 2019 2:41 am

Hello :-) Which version of Dgsource (dgdecnv) has parameter "fulldepth"? I use 2053, checked others :-( There's no in manual either.

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 643
Joined: Sun Apr 08, 2012 6:12 pm

Re: HDR -> SDR conversion

Post by gonca » Thu Feb 07, 2019 5:48 am

All versions of DGDecodeNV, for the last great while at least, have the fulldepth instruction
From the manual
fulldepth: true/false (default: false)

When fulldepth=true and the encoded video is HEVC 10-bit or 12-bit, then DGSource() delivers 16-bit data to Avisynth with the unused lower bits zeroed. The reported pixel format is CS_YUV420P16. If either of the two conditions are not met, then DGSource() delivers 8-bit YV12 or I420 data, as determined by the i420 parameter. When fulldepth=false and the video is HEVC 10-bit or 12-bit, then the video is dithered down to 8-bit for delivery. If you need a reduced color space (less than 16 bits) for your high-bit-depth processing, you can use ConvertBits() as needed after your DGSource() call.

Keyser78
Posts: 8
Joined: Thu Feb 07, 2019 2:33 am

Re: HDR -> SDR conversion

Post by Keyser78 » Thu Feb 07, 2019 7:57 am

I try to use it in Avspmod 2.5.1 and get a script error: dgsource does not have a named argument "fulldepth". :-(

User avatar
DJATOM
Distinguished Member
Distinguished Member
Posts: 43
Joined: Fri Oct 16, 2015 6:14 pm

Re: HDR -> SDR conversion

Post by DJATOM » Thu Feb 07, 2019 8:04 am

Your version is too old, update dgdecodenv.dll.

Keyser78
Posts: 8
Joined: Thu Feb 07, 2019 2:33 am

Re: HDR -> SDR conversion

Post by Keyser78 » Thu Feb 07, 2019 8:50 am

Thanks! I've been using first 2053 version :facepalm: Now it works great.

Post Reply