Using cmdline arg; -hotstart -shutdown:5. Guessing how long file processing will take? Otherwise shuts before all files processed. Or moved Properly

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,
 

dlflannery

Administrator
Search for 'maxidle' in VAP-ReadMe.pdf (or VAP6-ReadMe.pdf). This should be what you need to get your desired behavior. There might be a glitch regarding a file move being interrupted when using only -shutdown, which I will look into.

Both -shutdown and -maxidle are active only when either -hotstart or -hotstartmax are invoked, as stated in the readme pdf's. If you have a need to use them in other cases, let me know and I will look into it.
 

Jackersen

New member
Search for 'maxidle' in VAP-ReadMe.pdf (or VAP6-ReadMe.pdf). This should be what you need to get your desired behavior. There might be a glitch regarding a file move being interrupted when using only -shutdown, which I will look into.

Both -shutdown and -maxidle are active only when either -hotstart or -hotstartmax are invoked, as stated in the readme pdf's. If you have a need to use them in other cases, let me know and I will look into it.
Hi again.
So this fixed my immediate issue re hotstart and shutdown, the maxidle was the answer i was looking for... but...
To explain a little why i was using python, bat files and scheduled tasks to run VAP and VRD....
I started on VRD TVS v4 then moved onto V 5 after it was available.
Then i discovered VAP and started using that.
My broadcasts are a mix of mpg2 and mpg4 or h264 encoding over an areial captured with a various DVB-t tuners. My heater puts terrible interference into the captured streams hence QSF is good for removing these 'over the air' broadcast artifacts.
Some time during the use of v5 the successful processing of the mpg2 streams started to fail. Often the files cannot be even opened in stand alone VRD V5. Others have so many audio and video frames removed and inserted and input errors.
What i found is that my concurrent install of VRD V4 was able to deal with these troublesome mpg2 files without a problem removing and inserting far fewer frames than VRD 5. See pic example.
The mpg2 files once QSF'ed in VRD v4 are then put into the watch directory for VAP and taken up in the normal file processing stream for VRD V5 and can be opened and have no further errors or frames removed once cuts are applied. (profiles set in VAP to only add scan these files)
So with this information (https://videoredo.net/msgBoard/index.php?threads/upgrade-of-vrd-to-v5.34937/).
My thought process was to write a small python script to split my recordings into two processes via the video encoding type.
H264 streams go directly to the watch directory for VAP and then VAP gets invoked to process them.
Firstly VAP is run by a scheduled task without hotstart to transfer these new files in the watch directory (alphabetical order vs file creation date order). After allowing time for all files to be detected and transferred that VAP is closed. then VAP is started with the hotstart -maxidle to finish off processing the video files IN CREATION ORDER.
Once the h264 files were finished i would then use a scheduled task to make use of this quirk ( run as administrator to initalize VAP to use selected version of VAP) (https://videoredo.net/msgBoard/index.php?threads/upgrade-of-vrd-to-v5.34937/) to try to switch the version of VRD that VAP uses to then process these troublesome mpg2 files with VRD v4.
But i found that this does not work. Either by some convoluted run as admin scheduled task. So i checked with just running VRD as admin and VAP usage version without scheduling tasks. And that does bot work as explained in the linked thread above.

So i guess my question is?
Has sketchy mpg2 files processing been improved in future versions of VRD V5 and or 6 (i got burnt before with VRD updates breaking things so decided not to upgrade from the version i was on). Should i just move on to version 6 with your associated version 6 VAP?

Or is there a more sure fire way to invoke VAP to use particular versions of VRD that are installed (maybe installing two versions of VAP?)?

Or can you direct me on how to start VRD v4 patch processor with multiple files from a .bat file in the running state?
 

Attachments

Last edited:

dlflannery

Administrator
Trying to run TVS4 and TVS5 installs together is problematic. I don’t even have TVS4 installed anymore and don’t have any advice on this topic.

TVS5/VAP and TVS6/VAP6 can be installed together and should not interfere with each other. I have both combos installed. I would assume the same would apply for TVS4 and TVS6.

I don’t know if TVS6 will handle your mpg2 files better than previous versions but you should be able to test that by installing it on a free-trial basis. You also might want to ask about that in a post in the TVS6 sub-forum where VRD staff are more likely to see it.
 
Top Bottom