Schedule batch renders to start at a specific time?

Jep wrote on 4/3/2017, 6:22 PM

I'm on Win 7, and I'm using Vegas Pro 13 and I also have Vegasaur 1.9.7 installed.

Just wondering if there is any way to schedue renders - or preferably Vegasaur batch renders to start at a specific time - perhaps in conjunction with Windows Task Scheduler?

Any help would be greatly appreciated.

Comments

Former user wrote on 4/3/2017, 6:52 PM

Theres a batch file command, works in Win 7, https://ss64.com/nt/timeout.html

OldSmoke wrote on 4/3/2017, 7:47 PM

I'm on Win 7, and I'm using Vegas Pro 13 and I also have Vegasaur 1.9.7 installed.

Just wondering if there is any way to schedue renders - or preferably Vegasaur batch renders to start at a specific time - perhaps in conjunction with Windows Task Scheduler?

Any help would be greatly appreciated.


That would be a great feature to implement into Vegasaur if that is possible. Ask the Vegasaur team for this new feature but they may only develop it for VP14.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

altarvic wrote on 4/4/2017, 12:57 AM

You already can do this ;)

@Jep, use this command to run Transcoder in a scheduler (it will start render all queued jobs):

start "Run Transcoder" /B "C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder"

If necessary, change the path.

Jep wrote on 4/5/2017, 8:22 PM

You already can do this ;)

@Jep, use this command to run Transcoder in a scheduler (it will start render all queued jobs):

start "Run Transcoder" /B "C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder"

If necessary, change the path.

Hmmm - very interesting - but I can't quite get it to work with Windows Task Scheduler. When it runs it does fire up Vegas, but I get the following error message about Vegasaur:

I have checked all the relevant paths and Vegasaur.dll is in the correct folder.

Any ideas as to what I might be doing wrong.

Many thanks altarvic for your help so far.

Jep wrote on 4/5/2017, 8:25 PM

Theres a batch file command, works in Win 7, https://ss64.com/nt/timeout.html


Thanks for the suggestion JN_. Unfortunately I have no idea what to do with it given I'm not that good on the techy side of things.

Jep wrote on 4/5/2017, 8:31 PM

I'm on Win 7, and I'm using Vegas Pro 13 and I also have Vegasaur 1.9.7 installed.

Just wondering if there is any way to schedue renders - or preferably Vegasaur batch renders to start at a specific time - perhaps in conjunction with Windows Task Scheduler?

Any help would be greatly appreciated.


That would be a great feature to implement into Vegasaur if that is possible. Ask the Vegasaur team for this new feature but they may only develop it for VP14.


Sent a suggestion to Vegasaur - I wonder how long can I hold my breath. 🙂

OldSmoke wrote on 4/5/2017, 9:11 PM

You already can do this ;)

@Jep, use this command to run Transcoder in a scheduler (it will start render all queued jobs):

start "Run Transcoder" /B "C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder"

If necessary, change the path.

Hmmm - very interesting - but I can't quite get it to work with Windows Task Scheduler. When it runs it does fire up Vegas, but I get the following error message about Vegasaur:

I have checked all the relevant paths and Vegasaur.dll is in the correct folder.

Any ideas as to what I might be doing wrong.

Many thanks altarvic for your help so far.


Works fine here. Make sure the path is correct and that you run the schedule as an administrator. If you just want to test it, copy the code from above, open an elevated command prompt (Run as Administrator), past the code and press enter. I had to change the path to "Vegasaur\2.0" for my version of Vegasaur.

Proud owner of Sony Vegas Pro 7, 8, 9, 10, 11, 12 & 13 and now Magix VP15&16.

System Spec.:
Motherboard: ASUS X299 Prime-A

Ram: G.Skill 4x8GB DDR4 2666 XMP

CPU: i7-9800x @ 4.6GHz (custom water cooling system)
GPU: 1x AMD Vega Pro Frontier Edition (water cooled)
Hard drives: System Samsung 970Pro NVME, AV-Projects 1TB (4x Intel P7600 512GB VROC), 4x 2.5" Hotswap bays, 1x 3.5" Hotswap Bay, 1x LG BluRay Burner

PSU: Corsair 1200W
Monitor: 2x Dell Ultrasharp U2713HM (2560x1440)

Jep wrote on 4/6/2017, 1:08 AM

You already can do this ;)

@Jep, use this command to run Transcoder in a scheduler (it will start render all queued jobs):

start "Run Transcoder" /B "C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder"

If necessary, change the path.

Hmmm - very interesting - but I can't quite get it to work with Windows Task Scheduler. When it runs it does fire up Vegas, but I get the following error message about Vegasaur:

I have checked all the relevant paths and Vegasaur.dll is in the correct folder.

Any ideas as to what I might be doing wrong.

Many thanks altarvic for your help so far.


Works fine here. Make sure the path is correct and that you run the schedule as an administrator. If you just want to test it, copy the code from above, open an elevated command prompt (Run as Administrator), past the code and press enter. I had to change the path to "Vegasaur\2.0" for my version of Vegasaur.


Thanks OldSmoke. - Yes that will run using Command prompt, so the paths are correct. However I still can't get it to work in Windows Scheduler even though I set it up with Admin privelages. So I think I must be doing something wrong while creating the task in Scheculer.

When I got to the Program/script: box in the Edit Action window in the Task creation wizard I pasted the entire line of code above. When I click OK I get the following popup

It doesn't run if I press Yes or NO. If I press No the summary pane at the bottom of the Task Scheduler Library window look like this

Any help setting up the task in Windows Scheduler would be really appreciated. It would be incredibly helpful if I could get it to work. Apologies for my ignorance, and thanks again.

Jep wrote on 4/6/2017, 5:16 AM

OK - I managed to get it to work. Not sure if my methodology is the best - but it works!!!

I pasted the code into a Notepad document and saved it with a .bat extension. I then went to the Task Scheduler and opened the Edit Action window. Under Program/script: I used the browse button to select the .bat file so that it looked like this

I then set the time in the Triggers tab and closed out of Task Scheduler.

Bingo bongo - a couple of minutes later Vegas fired up and Transcoder started the batch renders I had set up. Hehe - I love it when a plan comes together. 🙂

With Vegasaur Render Assistant set to shut my PC down I can set a Bluray to prepare and burn (could take up to 4 hours), and have Transcoder fire up once the Bluray has finished to complete a lengthy list of renders sometime in the middle of the night and then have it shut the PC down when everything is finished. I've wanted that facility for a very long time.

Big thanks to altarvic for providing the code, and OldSmoke for the info on testing with command prompt which let me know I wasn't entirely on the wrong path.

Jep wrote on 4/6/2017, 5:26 AM

Just thinking that a nice little touch to this solution would be to have script in Vegas that would automatically open up the Triggers tab of the created task in Taks Scheduler. You could even have an icon on the Toolbar - so setting up your trigger time would be just one click away while in Vegas.

Unfortunately, I have no idea how to write such a script. I did have a look at the coding in some of the existing scripts in the hope I might be able to coble something together. Alas, I might as well have been reading ancient hieroglyph.

altarvic wrote on 4/6/2017, 1:08 PM

Putting the code into a .bat file is the best solution. I'm glad you figured it out!

Jep wrote on 4/6/2017, 8:10 PM

Putting the code into a .bat file is the best solution. I'm glad you figured it out!

Great - big thanks for all your help - and also for that email you sent me. 👍

Jep wrote on 4/8/2017, 11:15 AM

OK guys - hoping you can provide just a little more help on this issue.

I had presumed that if I set Vegasaur's Render Assistant to power off my PC on completion of batch renders, my PC would shut down on completion of a batch render using altarvic's code. Unfortunately I was wrong about that.

Having tested it a bit more what I've found is that it will fire up and complete the batch renders. On completion of the last item in the render list Render Assistant does pop up a shutdown countdown window, and it counts down the 60 seconds for which it is set. The coundown window then disappears - but my PC does not shut down.

I'm wondering is there a way to get my PC to shut down after the last item in the batch render is completed? Maybe there is something that can be added to altarvic's code that would do this?

Any help would be greatly appreciated.

TIA

altarvic wrote on 4/8/2017, 1:18 PM

It is possible that the system or another application will abort the shutdown. It is by design. Also your account may not have sufficient privileges. Try to use Hibernate/Sleep mode.

Jep wrote on 4/8/2017, 2:19 PM

It is possible that the system or another application will abort the shutdown. It is by design. Also your account may not have sufficient privileges. Try to use Hibernate/Sleep mode.

Thanks for your input again altarvic. With respect, I don't think that is what is happening. Render Assistant reliably shuts down my PC when using Transcoder in the normal way - it's a feature that I use quite a lot. Also, I set up the task in Task Scheduler with Administrator privelages, and I'm always logged into my PC as Administrator so I don't think privelages should be the problem. I've also tested it comprehensively ensuring no other apps are running.

Another thing that is a bit odd is that when testing the task in Task Scheduler I tried clicking the "Now" button on the Render Assistant shutdown countdown window when the renders completed. The window disappeared but my PC didn't shut down. Strange.

I don't want to use Hibernate/Sleep modes. My system is overclocked and the manufacturers told me not to use Hibernate/Sleep as it will cause problems. Not sure why that would be the case - but that is what they told me.

Do you think it is possible to expand your code so that the task itself will shutdown the PC rather than relying on Render Assistant?

Many thanks again for all your input. Even if I can't reslove this small wrinkle all this will still be of huge benefit for me.

altarvic wrote on 4/9/2017, 5:51 AM

Do you think it is possible to expand your code so that the task itself will shutdown the PC rather than relying on Render Assistant?

Yes, it's possible. Uncheck Shutdown Computer option in Render Assistant and try the following command file:

"C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder" | rem
shutdown.exe /s /t 00

 

Jep wrote on 4/9/2017, 7:23 PM

Do you think it is possible to expand your code so that the task itself will shutdown the PC rather than relying on Render Assistant?

Yes, it's possible. Uncheck Shutdown Computer option in Render Assistant and try the following command file:

"C:\Program Files\Sony\Vegas Pro 13.0\vegas130.exe" -SCRIPT:"C:\Program Files\Vegasaur\1.0\Vegasaur.dll?Command=Transcoder" | rem
shutdown.exe /s /t 00

 

Wow!!! That worked beautifully altarvic 👍. Thank you soooooo much for that. I wish there was some way I could return the favour - but clearly your tech smarts are way beyond mine - so it unlikely. However if you can think of anything I can do for you - just say the word.

Thanks again buddy.