Page 1 of 1

-h not respected if -a present ?

Posted: Thu Mar 03, 2022 5:33 am
by Emulgator
First off, many thanks for your precious tools over the years ! :bow:
I am trying to get my first attempts at batch scripts done, a few worked so far.

Here I am trying to batch demux .264 ES from imperfect .mp4 muxes for later .m2ts remuxing.
I wanted to demux all Angle 1 .264 streams in the work folder: this worked nicely as intended.
DGindex is demuxing in the background, prints progress to commandline window and exits,
starting again for next file.

Now I got greedy and wanted all audio and sub streams demuxed, so I added -a.
Now the behaviour changes, the GUI pops up, side window shows progress.
After demuxing all windows stay open side window bottom shows "Finished".
To commence batch, I have to close the GUI with X.
Then batch commences with the next file. Files come out demuxed and named properly.

Here is my command line. Maybe I did something wrong or would I have to catch a condition ?

Or maybe a parsing thing ?
Adding -e does not help, and shifting -a before -od makes the script dysfunctional.

Code: Select all

set dgindexnvpath="C:\_PROG\! Video Decoders\dgdecnv_239\DGIndexNV.exe"
for /f %%a in ('dir /b *.mp4') do call :demux_video_only "%%a"
echo FOLDER DEMUXING FINISHED ! & pause
goto :eof
:demux_video_only
%dgindexnvpath% -i "%~dpn1.mp4" -od "%~n1" -a "%~n1" -h
goto :eof
exit

-h not respected if -a present ?

Posted: Thu Mar 03, 2022 7:12 am
by Rocky
Thank you for your work in making DGIndexNV more useful and powerful. I'll check into that today. Sherman is busy learning how to stain and varnish.

-h not respected if -a present ?

Posted: Thu Mar 03, 2022 7:24 am
by Rocky
Please delete the "%~n1" after the -a option. -a does not take a parameter. I guess doing that causes the -h to be ignored.

-h not respected if -a present ?

Posted: Thu Mar 03, 2022 5:54 pm
by Emulgator
Many thanks, that solves it ! :hat:

-h not respected if -a present ?

Posted: Thu Mar 03, 2022 5:58 pm
by Rocky
Always my pleasure Mr E. And thank you for your kind words. :salute: