Batch processing error

Support forum for DGDecNV
Post Reply
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

I have tried to demux multiple files with the command

for /R %%a in (*.mkv) D:\Eseguibili\Media\DGDecNV\DGIndexNV.exe -i "%%~na.mkv" -a -o "%%~na.dgi"

but it opens DGIndexNV multiple times instead of waiting for the process to finish.

Is there a way to have one file indexed at a time?
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Batch processing error

Post by Bullwinkle »

You've got us launched on a full-scale re-engineering of MKV support, so it will be some time before we can duplicate this and try things. But here is a guess. Try:

for /R %%a in (*.mkv) START /W /B D:\Eseguibili\Media\DGDecNV\DGIndexNV.exe -i "%%~na.mkv" -a -o "%%~na.dgi"

EDIT: May not work as DGIndexNV itself spawns a demux process that may not be waited for. If it doesn't work you'll just have to be patient until we get time to look at it.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Bullwinkle wrote:
Sat Jun 11, 2022 9:48 am
EDIT: May not work
Well, it works and it doesn't. :D

It launches just a copy of DGIndexNV but I have to close it manually or the next one are not indexed.

Definitely not an unattended batch type. :mrgreen:

Please consider batch indexing as a to do feature :)
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

Could be fun to try setting 'optimize for HDD' with the start /w /b stuff.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Rocky wrote:
Sat Jun 11, 2022 3:39 pm
Could be fun to try setting 'optimize for HDD' with the start /w /b stuff.
Another strange behaviour is that, for some reason, it doesn't create AVS file.

I had to manually create them for 48 videos. :|
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

You didn't say the result of optimize for HDD. Did it change anything?
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Rocky wrote:
Sun Jun 12, 2022 9:06 pm
You didn't say the result of optimize for HDD. Did it change anything?
I did not test as I saw it did not create AVS files.

Could HDD mode change that issue?
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Batch processing error

Post by Bullwinkle »

Sherman will try to duplicate this today.
User avatar
Sherman
Posts: 576
Joined: Mon Jan 06, 2020 10:19 pm

Batch processing error

Post by Sherman »

OK, this works fine for me:

for /R %%a in (*.mkv) do "D:\Don\Programming\C++\DGDecNV\DGIndexNV Good\x64\Release\DGIndexNV.exe" -i "%%~na.mkv" -at "D:\Don\Programming\C++\DGDecNV\DGIndexNV Good\x64\Release\template.avs" -a -e -o "%%~na.dgi"

Note that you need the -at option to get AVS files. You can give the full path to the template file as here, or you can put a copy of the template file in the current directory and just give -at 'template.avs'. I recommend using the full path. Also, with -e you do not need the start /w /b stuff. 'Optimize for HDD' does not matter. Your example was missing the 'do' BTW.

Please advise about your success. ;)
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Sherman wrote:
Mon Jun 13, 2022 10:26 am
Please advise about your success. ;)
Pointing to template.avs did its job :)
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

Great! Thank you for the update.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Latest release candidate doesn't create qp file anymore when launching from CLI, even pointing to correct AVS etc.

Do I remember wrong that the last stable version created it?
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

Nothing changed in that regard so it should still be working. I'll check it. Please give me the full command line that fails. MKV or disk?
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Rocky wrote:
Wed Jul 13, 2022 4:19 pm
Nothing changed in that regard so it should still be working. I'll check it. Please give me the full command line that fails. MKV or disk?
MKV, a couple of dozens but you can reproduce with less, of course.

The command line was the one suggested me, i.e. something such as:

for /R %%a in (*.mkv) START /W /B D:\Eseguibili\Media\DGDecNV\DGIndexNV.exe -i "%%~na.mkv" -a -at D:\Eseguibili\Media\DGDecNV\template.avs -e -o "F:\In\Goblin slayer [Dynit]\%%~na.dgi"
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

Reminder: chapters2qp.exe must be present with DGIndexNV.exe.

Testing it now...
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

OK, I found the bug. Stand by for a fix.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Batch processing error

Post by Rocky »

Re-download the 244 release candidate and update DGIndexNV. Should be working.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Batch processing error

Post by Guest 2 »

Rocky wrote:
Wed Jul 13, 2022 5:56 pm
Should be working.
It works fine, thank you.
Post Reply