How to register DGDecNV(DGSource and DGIndexNV) in StaxRip - staxrip/staxrip GitHub Wiki
DGIndexNV and DGSource are packaged as DGDecNV, and it is available for free starting on April 26, 2021. You can download the package from here.
This page shows how to register DGDecNV in StaxRip using the macro %settings_dir%
to preserve the original program tree structure.
Unzip your copy of DGDecNV
- Click on
Tools
>Folders
>Settings
and go toPlugins
>Dual
.
- Unzip your copy of DGDecNV folder there.
So your DGDecNV folder becomes %settings_dir%\Plugins\Dual\DGDecNV
.
Use the default x64 build and don't forget to rename DGIndexNV.exe.manifest~
to DGIndexNV.exe.manifest
. This makes the generated dgi
file encoded in UTF-8.
Register DGSource as a source filter
- Add
DGSource
inAVS Filters
>Profiles
- Under the [Source] section, add the following lines with an empty line above and below respectively:
DGSource =
LoadPlugin("%settings_dir%\Plugins\Dual\DGDecNV\DGDecodeNV.dll")
DGSource("%source_file%")
※ Alternatively, you can incorporate hardware filter options (for deinterlacing/IVTC-ing) provided by DGSource
as follows:
DGSource =
LoadPlugin("%settings_dir%\Plugins\Dual\DGDecNV\DGDecodeNV.dll")
# deinterlace: 0/1/2 (default: 0) (Nvidia PureVideo Deinterlacer)
# 0: no deinterlacing / 1: single rate deinterlacing / 2: double rate deinterlacing (bobbing)
# fieldop: 0/1/2 (default: 0)
# 0: Honor Pulldown Flags / 1: Force Film (IVTC NTSC 3:2 pulldown) / 2: Ignore Pulldown Flags
DGSource("%source_file%", deinterlace=0, fieldop=0)
- Go to
Tools
>Settings
, and registerDGSource
as a source filter fordgi
.
For VapourSynth, switch to the VapourSynth mode and repeat similar steps as follows:
DGSource =
core.std.LoadPlugin(r"%settings_dir%\Plugins\Dual\DGDecNV\DGDecodeNV.dll")
clip = core.dgdecodenv.DGSource(r"%source_file%")
Or alternatively, incorporate hardware filter options (for deinterlacing/IVTC-ing) provided by DGSource
as follows:
DGSource =
core.std.LoadPlugin(r"%settings_dir%\Plugins\Dual\DGDecNV\DGDecodeNV.dll")
# deinterlace: 0/1/2 (default: 0) (Nvidia PureVideo Deinterlacer)
# 0: no deinterlacing / 1: single rate deinterlacing / 2: double rate deinterlacing (bobbing)
# fieldop: 0/1/2 (default: 0)
# 0: Honor Pulldown Flags / 1: Force Film (IVTC NTSC 3:2 pulldown) / 2: Ignore Pulldown Flags
clip = core.dgdecodenv.DGSource(r"%source_file%", deinterlace=0, fieldop=0)
Register DGIndexNV as a preprocessor
Under Preprocessing in Settings, register DGIndexNV as a command line demuxer.
You can create 2 types of preprocessors with DGIndexNV depending on the input file types.
Index, No demux
Command: "%settings_dir%\Plugins\Dual\DGDecNV\DGIndexNV.exe"
Arguments: -i %source_files_comma% -o "%temp_file%.dgi" -h
※ Note: you can add the option to demux all tracks (-a
) (and change the Demuxer Name
) depending on your needs if you want to demux all the tracks regardless of the demux settings in Options
.
Index & Demux
Command: "%settings_dir%\Plugins\Dual\DGDecNV\DGIndexNV.exe"
Arguments: -i %source_files_comma% -o "%temp_file%.dgi" -a -h
You can give a higher priority to DGIndexNV in preprocessing specific input file types by moving DGIndexNV items up in the list.
And of course you can activate/deactivate DGIndexNV by checking/unchecking the DGIndexNV preprocessor items.
Depending on your situation, you may want to add additional input file types. See this.
★★★ CAVEAT ★★★
You need to put mkvextract
over any other MKV handler (like DGIndexNV
) in order to demux tracks and other data from an MKV input properly as set in (Project) Options
.
For example, even if you set Show Dialog
in audio demux or subtitles demux in Options
, you'll not be able to see the dialog if you put DGIndexNV
over mkvextract
(and thus DGIndexNV
has priority over mkvextract
in handling MKV files) when the source filter is set to Automatic
. Therefore, put DGIndexNV
below mkvextract
to deal with MKV demux correctly.
In the same vein, if you want to demux MP4 files properly as set in Options
, put MP4Box: Demux
over any other MP4 handler such as DGIndexNV
.
Register DGIndexNV GUI as a menu (optional)
In order to launch DGIndexNV GUI (separately) from within StaxRip, you need to register it as a menu.
- Click on
Tools
>Edit Menu...
. - Under
Apps
>Indexing
, use menu bar icons to copy and pasteDGIndex
. - Drag it to adjust its location, and modify its settings as follows:
Text(=App name): DGIndexNV
(your choice)
Shortcut Key(optional): Ctrl+Alt+I
(your choice)
Command: ExecuteCommandLine
Command Line: "%settings_dir%\Plugins\Dual\DGDecNV\DGIndexNV.exe"
Working Directory: %source_dir%