dlflannery
Administrator
This thread is a copy/move of thread originally posted by @Jackersen in the wrong place. I don't have forum edit privileges there so did a copy/paste to restart the thread here:
I am trying to set up;
Task scheduler>start .bat file>start VAP.
So far all works fine except if -shutdown:90 is set too long my pc is on way too long waiting to close VAP when all files have finish processing ages ago.
If is set -shutdown:5 way to short only first file gets processed and it fails to move the file properly before closing VAP. It seems to copy the file leaving the orig in watch dir.
Normal behaviour;
23/01/2020 18:50:20 CL args: -hotstart, -shutdown after 90 minutes
23/01/2020 18:50:20 Started program -- VideoReDo-AutoProcessor - Ver. 1.41
.
.
23/01/2020 18:53:30 Started Ad Scan, .vprj only, input: Just A Breath Away_SBS World Movies_2020_01_15_21_25_55.wtv
23/01/2020 18:53:32 VideoReDo said: INFO: VideoReDo version 5.3.83.763 - Feb 21 2018
23/01/2020 18:53:35 VideoReDo said: INFO: Edit mode set to cut
23/01/2020 19:07:04 VideoReDo completed VideoReDo AdScan on input: D:\Video_Store\UnEdited D\VAP_Temp\Just A Breath Away_SBS World Movies_2020_01_15_21_25_55.wtv
23/01/2020 19:07:04 Started moving "Just A Breath Away_SBS World Movies_2020_01_15_21_25_55.wtv"
23/01/2020 19:07:25 Completed move of "Just A Breath Away_SBS World Movies_2020_01_15_21_25_55.wtv"********MOVES PROPERLY
23/01/2020 20:20:22 VAPonShutDown script failed to start (may not exist)*********See the length of time just to cover time taken to add scan 1hr 14m overrun is pointless.
23/01/2020 20:20:22 Auto-Stopped program
Failed to complete moving file with shorter -shutdown after 5 mins
23/01/2020 06:20:08 CL args: -hotstart, -shutdown after 5 minutes
23/01/2020 06:20:08 Started program -- VideoReDo-AutoProcessor - Ver. 1.41
.
.
23/01/2020 06:22:08 Started Ad Scan, .vprj only, input: The King's Choice_SBS ONE HD_2020_01_15_23_53_24.wtv
23/01/2020 06:22:10 VideoReDo said: INFO: VideoReDo version 5.3.83.763 - Feb 21 2018
23/01/2020 06:22:13 VideoReDo said: INFO: Edit mode set to cut
23/01/2020 06:43:29 VideoReDo completed VideoReDo AdScan on input: D:\Video_Store\UnEdited D\VAP_Temp\The King's Choice_SBS ONE HD_2020_01_15_23_53_24.wtv
23/01/2020 06:43:29 Started moving "The King's Choice_SBS ONE HD_2020_01_15_23_53_24.wtv"********COPIES FILE BUT DOES NOT DELETE ORIGINAL********
23/01/2020 06:43:29 VAPonShutDown script failed to start (may not exist)********VAP shuts too quick
23/01/2020 06:43:29 Auto-Stopped program
If i set the shut down time longer than my prediction of how long the files will take to process its ok. But thats silly cause i dont know how many files to process and at 20+ mins for an add scan that's a big variation on the time my computer has to be powered up to make sure i wait longer than scans will take to close VAP.
I noticed that if you set the arg -shutdown:5 then VAP stays open and processes only one file even if longer than 5 minutes BUT when it does finish it bugs out and shuts down too quick before the completed file move occurs. And fails to do the next file waiting in que.
I read quite a few threads re scheduled task, command line, etc.
I saw VAP maker had to put insert a 10sec delay in code to make the -hotstart arg work acceptably. I can view your.vbs but not your exe so cant work out exactly what -shutdown behaviour does or change it but wondered if the same kind of delay could be put in to allow the file move to complete (and the next file waiting to be processed to start processing thus delaying -shutdown:5 even longer) before shutting VAP.
Any thoughts or suggestions would be appreciated.
edit. maybe the counter behind -shutdown could only count time inbetween processing tasks (or COM objects??? or instnces of hidden VRD?????). a few seconds here and there then once all files are finished processing count out the rest of the five minutes then shut down?
Oh, and can i use -shutdown:30 without -hotstart ie
start "" "VideoReDoAutoprocessor.exe" -shutdown:', shutDwnTime,
where i have only so far used;
start "" "VideoReDoAutoprocessor.exe" -hotstart -shutdown:', shutDwnTime,