Page 1 of 1

Batch processing error

Posted: Sat Jun 11, 2022 5:17 am
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?

Batch processing error

Posted: Sat Jun 11, 2022 9:48 am
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.

Batch processing error

Posted: Sat Jun 11, 2022 11:17 am
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 :)

Batch processing error

Posted: Sat Jun 11, 2022 3:39 pm
by Rocky
Could be fun to try setting 'optimize for HDD' with the start /w /b stuff.

Batch processing error

Posted: Sun Jun 12, 2022 1:40 am
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. :|

Batch processing error

Posted: Sun Jun 12, 2022 9:06 pm
by Rocky
You didn't say the result of optimize for HDD. Did it change anything?

Batch processing error

Posted: Mon Jun 13, 2022 8:34 am
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?

Batch processing error

Posted: Mon Jun 13, 2022 8:55 am
by Bullwinkle
Sherman will try to duplicate this today.

Batch processing error

Posted: Mon Jun 13, 2022 10:26 am
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. ;)

Batch processing error

Posted: Fri Jun 17, 2022 7:44 am
by Guest 2
Sherman wrote:
Mon Jun 13, 2022 10:26 am
Please advise about your success. ;)
Pointing to template.avs did its job :)

Batch processing error

Posted: Fri Jun 17, 2022 12:27 pm
by Rocky
Great! Thank you for the update.

Batch processing error

Posted: Wed Jul 13, 2022 4:03 pm
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?

Batch processing error

Posted: Wed Jul 13, 2022 4:19 pm
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?

Batch processing error

Posted: Wed Jul 13, 2022 5:10 pm
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"

Batch processing error

Posted: Wed Jul 13, 2022 5:19 pm
by Rocky
Reminder: chapters2qp.exe must be present with DGIndexNV.exe.

Testing it now...

Batch processing error

Posted: Wed Jul 13, 2022 5:45 pm
by Rocky
OK, I found the bug. Stand by for a fix.

Batch processing error

Posted: Wed Jul 13, 2022 5:56 pm
by Rocky
Re-download the 244 release candidate and update DGIndexNV. Should be working.

Batch processing error

Posted: Thu Jul 14, 2022 8:27 pm
by Guest 2
Rocky wrote:
Wed Jul 13, 2022 5:56 pm
Should be working.
It works fine, thank you.