-h not respected if -a present ?
Posted: Thu Mar 03, 2022 5:33 am
First off, many thanks for your precious tools over the years !
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.
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