HDR -> SDR conversion

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
admin
Site Admin
Posts: 4341
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: 4341
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: 4341
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: 692
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: 50
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.
RTX 2070 | Ryzen R9 3900X (no OC) | 32 GB RAM

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.

Dion
Posts: 21
Joined: Sun Dec 04, 2016 1:30 am

Re: HDR -> SDR conversion

Post by Dion » Mon Jun 17, 2019 3:42 pm

Dion wrote:
Thu Sep 13, 2018 1:00 am
Have you ever considered making an HDR to SDR app for the Nvidia Shield? It has an Nvidia GPU in it and one thing it lacks is an HDR to SDR app that can hook onto Plex or Kodi or some other popular video apps.

Could even charge for it an probably make some decent bank. :D
https://nvidianews.nvidia.com/news/nvid ... rcomputing

Maybe useful for this? I'm not a dev so maybe you could comment.

Post Reply