HDR -> SDR conversion

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
douzi
Posts: 6
Joined: Fri May 25, 2018 3:28 am

Re: HDR -> SDR tonemapping

Post by douzi » Fri May 25, 2018 3:33 am

Hi,

I have trouble loading the plugin DGHDRtoSDR.dll

I am using AviSynth+ 0.1 (r2664, MT, x86_64), with 64bit AvsPmod. I have VC++ redistributable 2005,2008,2010,2012,2013,2017 (x64) installed.

Script:
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\DGHDRtoSDR.dll")

Error:
Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins64+/DGHDRtoSDR.dll". Platform returned code 126: The specified module could not be found.

I don't have DGDecodeNV and I don't have an nVidia GPU.

Could you please help to locate where is the problem?

Thanks!

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

Re: HDR -> SDR tonemapping

Post by admin » Fri May 25, 2018 8:47 am

douzi wrote:
Fri May 25, 2018 3:33 am
I have trouble loading the plugin DGHDRtoSDR.dll
Greetings douzi and welcome to the forum.

Please re-download and try again, as I have configured nvcuda.dll as delay loading. Of course you need the parameter impl="sw" or you will receive an error. Please advise if it is loading for you.

Be warned that software mode is slow.

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

Re: HDR -> SDR tonemapping

Post by admin » Fri May 25, 2018 8:49 am

To those who have posted samples and suggested new default values: Thank you! Before deciding on the final defaults, which of course will use your input, I am adding a graph feature that will allow the tonemapping curve to be visualized. It should help us both to be more scientific in our conclusions and to more easily know the effects of our parameter settings.

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

Re: HDR -> SDR tonemapping

Post by gonca » Fri May 25, 2018 3:14 pm

admin wrote:
Fri May 25, 2018 8:49 am
To those who have posted samples and suggested new default values: Thank you! Before deciding on the final defaults, which of course will use your input, I am adding a graph feature that will allow the tonemapping curve to be visualized. It should help us both to be more scientific in our conclusions and to more easily know the effects of our parameter settings.
That would be a great help to hopefully point out small effects

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

Re: HDR -> SDR tonemapping

Post by admin » Fri May 25, 2018 3:33 pm

For sure. I have it working and I have already discovered that Hable (with the commonly used parameters) is not doing what we think, it looks like a gamma correction; there is no toe, linear section, and shoulder. I have searched for a user-friendly description of the 8 (!) parameters but not found anything useful, and I haven't been able to find parameters that give the filmic curve. I'm planning to write my own filmic operator with intuitive parameters.

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

Re: HDR -> SDR tonemapping

Post by admin » Fri May 25, 2018 3:36 pm

@douzi

I tested on my laptop with no nVidia and the DLL loads and runs fine. Make sure you have Avisynth+ installed with its run-time dependencies. You can use AVSMeter -avsinfo to check the installation.

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

Re: HDR -> SDR tonemapping

Post by gonca » Fri May 25, 2018 4:20 pm

admin wrote:
Fri May 25, 2018 3:33 pm
For sure. I have it working and I have already discovered that Hable (with the commonly used parameters) is not doing what we think, it looks like a gamma correction; there is no toe, linear section, and shoulder. I have searched for a user-friendly description of the 8 (!) parameters but not found anything useful, and I haven't been able to find parameters that give the filmic curve. I'm planning to write my own filmic operator with intuitive parameters.
The problem now is that we are trying to pick settings for what is meant for a video from a handful of frames
It might look good on 5 frames but not so good on the other 99995 frames in the video
The graph will allow a "visualization" of the overall effect
Great idea :bravo:

douzi
Posts: 6
Joined: Fri May 25, 2018 3:28 am

Re: HDR -> SDR tonemapping

Post by douzi » Fri May 25, 2018 5:33 pm

Hi,

Thanks for the quick reply.

I redownloaded the plugin (1.2 version) and tried again, still not loading. As for sw mode it is specified when doing the tonemap not in loading the plugin so I don't think that is the issue.

AVSmeter64 log:
AVSMeter 2.7.6 (x64) - Copyright (c) 2012-2018, Groucho2004

VersionString: AviSynth+ 0.1 (r2664, MT, x86_64)
VersionNumber: 2.60
File / Product version: 0.1.0.0 / 0.1.0.0
Interface Version: 6
Multi-threading support: Yes
Avisynth.dll location: C:\Windows\SYSTEM32\avisynth.dll
Avisynth.dll time stamp: 2018-03-29, 03:59:26 (UTC)
PluginDir2_5 (HKLM, x64): C:\Program Files (x86)\AviSynth+\plugins64
PluginDir+ (HKLM, x64): C:\Program Files (x86)\AviSynth+\plugins64+


[CPP 2.6 Plugins (64 Bit)]
C:\Program Files (x86)\AviSynth+\plugins64+\ConvertStacked.dll [2018-03-29]
C:\Program Files (x86)\AviSynth+\plugins64+\DGHDRtoSDR.dll [2018-05-22]
C:\Program Files (x86)\AviSynth+\plugins64+\DirectShowSource.dll [2018-03-29]
C:\Program Files (x86)\AviSynth+\plugins64+\ffms2.dll [2016-12-29]
C:\Program Files (x86)\AviSynth+\plugins64+\ImageSeq.dll [2018-03-29]
C:\Program Files (x86)\AviSynth+\plugins64+\Shibatch.dll [2018-03-29]
C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll [2018-03-29]
C:\Program Files (x86)\AviSynth+\plugins64+\VDubFilter.dll [2018-03-29]

[Scripts (AVSI)]
C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.avsi [2016-07-05]
C:\Program Files (x86)\AviSynth+\plugins64+\FFMS2.avsi [2015-05-22]

[Uncategorized files]
C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.txt [2016-07-05]



[Plugin errors]
______________________________________________________________________________________________________________________

Cannot load file 'C:/Program Files (x86)/AviSynth+/plugins64+/DGHDRtoSDR.dll'. Platform returned code 126:
The specified module could not be found.

Dependencies that could not be loaded:
nvcuda.dll
______________________________________________________________________________________________________________________

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

Re: HDR -> SDR tonemapping

Post by admin » Fri May 25, 2018 6:02 pm

Are you absolutely sure you got and are loading the new one from today? Try loading it manually not through the plugins dir. It's working fine for me.

douzi
Posts: 6
Joined: Fri May 25, 2018 3:28 am

Re: HDR -> SDR tonemapping

Post by douzi » Fri May 25, 2018 6:59 pm

Sorry I used the link in previous post.

Anyway redownload from http://rationalqm.us/misc/ and now it is successfully loading and with sw mode I can do the tonemap.

Thanks for your hard work!

Post Reply