-h not respected if -a present ?

Support forum for DGDecNV
Post Reply
User avatar
Emulgator
Posts: 22
Joined: Tue May 12, 2020 9:39 am

-h not respected if -a present ?

Post 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
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

-h not respected if -a present ?

Post 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.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

-h not respected if -a present ?

Post 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.
User avatar
Emulgator
Posts: 22
Joined: Tue May 12, 2020 9:39 am

-h not respected if -a present ?

Post by Emulgator »

Many thanks, that solves it ! :hat:
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

-h not respected if -a present ?

Post by Rocky »

Always my pleasure Mr E. And thank you for your kind words. :salute:
Post Reply