View Single Post
Old 25th May 2020, 00:20   #1885  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
How to register DGDecNV in StaxRip (>2.1.0.7) with the macro %startup_dir%

As you know, starting with 2.1.0.8, StaxRip stopped supporting DG Tools natively in the app {per the developer's request (X)}.
<= fix: see this post.

Four tools are affected by this change: DGIndexNV, DGSource, DGTonemap, and DGHDRtoSDR.

Among them, DGIndexNV and DGSource are packaged as DGDecNV, which is a non-free program you need to buy for $15.

In this post, I show how to register DGIndexNV and DGSource using the StaxRip macro %startup_dir% assuming that a purchased/licensed copy of DGDecNV is unzipped to a folder somewhere under the app folder which is denoted by the macro %startup_dir%.

Here, I assume DGDecNV folder is %startup_dir%Apps\Support\DGDecNV.

For this setup, you need to launch a new StaxRip window without any project.


1. DGSource

1) Add DGSource in AVS Filters => Profiles



Under the [Source] section, add the following lines:
Code:
DGSource =
    # Setting is changed since 2.1.0.8 after native DG Tools support is dropped.
    LoadPlugin("%startup_dir%Apps\Support\DGDecNV\DGDecodeNV.dll")
    DGSource("%source_file%")



2) Add DGSource as a source filter

Go to Tools => Settings, and register DGSource as a source filter for dgi.




For VapourSynth, switch to VapourSynth and repeat similar steps as follows:






Code:
DGSource =
    # Setting is changed since 2.1.0.8 after native DG Tools support is dropped.
    core.std.LoadPlugin(r"%startup_dir%Apps\Support\DGDecNV\DGDecodeNV.dll")
    clip = core.dgdecodenv.DGSource(r"%source_file%")



2. DGIndexNV

Under Preprocessing in Settings, register DGIndexNV as a command line demuxer.



You can create 2 types of demuxers with DGIndexNV depending on the input file types.


[Index, No demux]


Arguments:
Code:
-i %source_files_comma% -o "%source_temp_file%.dgi" -h
Depending on your situation, you may want to add additional Input File Types.

See this.


[Index & Demux]


Arguments:
Code:
-i %source_files_comma% -o "%source_temp_file%.dgi" -a -h
Make sure to put the command that points to DGIndexNV.exe file directly since DGIndexNV is not registered internally under Apps => Manage.

Code:
"%startup_dir%Apps\Support\DGDecNV\DGIndexNV.exe"

Last edited by JKyle; 27th May 2020 at 00:23. Reason: additional input file types explained
JKyle is offline