As we can
register DGDecNV in StaxRip (>2.1.0.7) using macros, we can add DGTonemap & DGHDRtoSDR filters in a similar way as follows.
■ Download & unzip the filter files
Download
DGTonemap and
DGHDRtoSDR from the developer's site.
Make sure to put x64 versions.
DGTonemap supports AviSynth only while DGHDRtoSDR supports both AviSynth and VapourSynth.
For convenience, I assume you put the filters in somewhere under the StaxRip app folder as follows:
Code:
%startup_dir%Apps\Plugins\AVS\DGToneMap\
%startup_dir%Apps\Plugins\Dual\DGHDRtoSDR\
Now open an empty StaxRip window and do the following setting.
■ AviSynth filters
Open and edit AVS profiles:
<DGTonemap>
Replace/Add the following item related to DGTonemap under the
[Color] section:
Code:
HDRCore | Tone Mapping =
# DGTonemap setting is changed since 2.1.0.8 after native DG Tools support is dropped.
LoadPlugin("%startup_dir%Apps\Plugins\AVS\DGToneMap\DGTonemap.dll")
$select:msg:Select the Map Tone You Wish to Use;DGReinhard|DGReinhard();DGHable|DGHable()$
<DGHDRtoSDR>
Replace/Add the following item related to DGHDRtoSDR under the
[Color] section:
Code:
DGHDRtoSDR =
# Setting is changed since 2.1.0.8 after native DG Tools support is dropped.
LoadPlugin("%startup_dir%Apps\Plugins\Dual\DGHDRtoSDR\DGHDRtoSDR.dll")
DGHDRtoSDR(mode="$select:msg:Select transfer function;Perceptual Quantizer|pq;Hybrid Log Gamma|hlg$", white=$enter_text:Enter overall brightness in integer (max 3,000 for PQ, max 10,000 for HLG)$)
■ VapourSynth filters
Change the filters type from AviSynth to VapourSynth by clicking
Fiter Setup =>
VapourSynth:
Open and edit VS profiles:
<DGHDRtoSDR>
Replace/Add the following item related to DGHDRtoSDR under the
[Color] section:
Code:
DGHDRtoSDR =
# Setting is changed since 2.1.0.8 after native DG Tools support is dropped.
core.std.LoadPlugin(r"%startup_dir%Apps\Plugins\Dual\DGHDRtoSDR\DGHDRtoSDR.dll")
clip = core.dghdrtosdr.DGHDRtoSDR(clip, mode="$select:msg:Select transfer function;Perceptual Quantizer|pq;Hybrid Log Gamma|hlg$", white=$enter_text:Enter overall brightness in integer (max 3,000 for PQ, max 10,000 for HLG)$)
You can edit the profile code by referring to the
StaxRip macros document.