[RESOLVED] DGIndexNV batch job

Support forum for DGDecNV
Post Reply
DAE avatar
Guest

[RESOLVED] DGIndexNV batch job

Post by Guest »

Is there a way to have DGIndexNV do a batch job
Simply load a bunch of index jobs and then let DGIndexNV go at the them
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGIndexNV batch job

Post by admin »

It's easily done in a cmd window (DOS) script using CLI. Many people do that. Therefore, I never saw the point of integrating batch functionality into DGIndexNV. Can you make a strong argument for it?
DAE avatar
Guest

Re: DGIndexNV batch job

Post by Guest »

Can you make a strong argument for it?
No
Its just that my batch file skills are somewhat lacking
Thanks for the reply
User avatar
DJATOM
Posts: 176
Joined: Fri Oct 16, 2015 6:14 pm

Re: DGIndexNV batch job

Post by DJATOM »

Code: Select all

@echo off
for %%m in (%*) do (
	C:\encoder\dgdecnv\DGIndexNV -i %%m -o "%%~nm.dgi" -h 
	echo Indexed "%%~nxm".
)
pause
Change executable path to your own and save as "batch_dgindexNV.bat".
Just drag&drop your files onto that batch and it will index your files.
PC: RTX 2070 | Ryzen R9 5950X (no OC) | 64 GB RAM
Notebook: RTX 4060 | Ryzen R9 7945HX | 32 GB RAM
DAE avatar
Guest

Re: DGIndexNV batch job

Post by Guest »

Thanks
DAE avatar
Guest

Re: DGIndexNV batch job

Post by Guest »

Admin
Please mark this as resolved
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] DGIndexNV batch job

Post by admin »

Your wish is my command.
DAE avatar
Guest

Re: [RESOLVED] DGIndexNV batch job

Post by Guest »

Thank you
DAE avatar
Jagutherrschaften
Posts: 10
Joined: Wed Nov 03, 2010 6:04 am

Re: [RESOLVED] DGIndexNV batch job

Post by Jagutherrschaften »

I would like to use a batch file like the one mentioned above to index a ts-file and demux video and audio.
I read that -a is the switch to use for demuxing audio but it doesn't work for me.
How do I have to change the batch file to make DGIndexNV write audio files too?
DAE avatar
Guest

Re: [RESOLVED] DGIndexNV batch job

Post by Guest »

Demux audio works with Save Project
You must use the -o or -od switch as well
The admin will correct me if I am wrong
DAE avatar
Jagutherrschaften
Posts: 10
Joined: Wed Nov 03, 2010 6:04 am

Re: [RESOLVED] DGIndexNV batch job

Post by Jagutherrschaften »

Thank you for your reply.

Code: Select all

@echo off
for %%m in (%*) do (
	"C:\Program Files\MeGUI\tools\dgindexnv\DGIndexNV.exe" -i %%m -od "%%~nm.dgi" -h 
	echo Indexed "%%~nxm".
)
pause
This is what I am using at the moment. If I add

Code: Select all

-a
after "%%~nm.dgi" nothing changes. Seems I don't understand how to use it :? .
DAE avatar
Guest

Re: [RESOLVED] DGIndexNV batch job

Post by Guest »

Try it before -od and see if it works
DAE avatar
Jagutherrschaften
Posts: 10
Joined: Wed Nov 03, 2010 6:04 am

Re: [RESOLVED] DGIndexNV batch job

Post by Jagutherrschaften »

Same result, demuxing the video works fine, no audio file is created.
DAE avatar
Guest

Re: [RESOLVED] DGIndexNV batch job

Post by Guest »

Are you using the 32 bit or 64 bit version?

Open up DGIndexNV directly and drag and drop your file into it
Enable audio demux and then save project with video demux
Does it work?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] DGIndexNV batch job

Post by admin »

As gonca suggests, you must have Enable_Audio_Demux=1 in the INI file. You can either edit it manually or you can enable it in the DGIndexNV GUI via Audio/Enable audio processing.

For the next slipstream I will make -a automatically assume processing is enabled.

If this does not resolve your issue, can you make available a short unprocessed source sample (50MB is fine)? You can cut TS files with DGSplit, or you can open it in DGIndexNV, set a range, and then do File/Output Trimmed TS.
DAE avatar
Jagutherrschaften
Posts: 10
Joined: Wed Nov 03, 2010 6:04 am

Re: [RESOLVED] DGIndexNV batch job

Post by Jagutherrschaften »

Thank you for your help :hat: .

I realized that the "Enable_Audio_Demux=1" was already in the INI-file, I additionally checked "Enable audio processing" in the GUI.
The setting wasn't there after closing and reopening the GUI. I then changed the permissions of the file DGIndexNV.ini - I gave all the different rights to all users and reapplied the settings. This solved my problem, the settings are saved and now demuxing audio and video and indexing the files works with the following batch-code:

Code: Select all

@echo off
for %%m in (%*) do (
	"C:\Program Files (x86)\MeGUI\tools\dgindexnv\DGIndexNV.exe" -i %%m -a -od "%%~nm.dgi" -h 
	echo Indexed "%%~nxm".
)
pause


This makes DGIndexNV even more valuable for me, thanks a lot :bow:
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] DGIndexNV batch job

Post by admin »

Good to hear you have it sorted out and thank you for the status update.
Post Reply