Example on how to render Vegas Project from command line

patrik wrote on 9/2/2020, 11:59 PM

Hey!

 

I have struggled for some days now to be able to render Vegas projects from command line. This i put so many hours into this i thought i could share the code to save others those hours.

 

Here you go:

https://github.com/Patrikgrinsvall/Vegas-Script-Render

 

Any feedback or suggestions to change is welcome.

 

(This is part of a bigger project where i will auto generate videos for most played tracks on my indie music streaming site and then upload those to youtube every week.)

Comments

Marty74 wrote on 9/3/2020, 11:48 AM

Nice ! I just tried it but the command line is "not" silent. (i try it in Vegas Pro 18). there is blank message with an "ok" button which block the rendering, and the render start only when we click on the "ok". is it possible to not have this ?

jetdv wrote on 9/3/2020, 3:51 PM

@Marty74, it is certainly possible to automatically start a script without there being an "OK" button. What was the message needing the OK?

Marty74 wrote on 9/3/2020, 4:04 PM

that's the weird pard, the message was blank, empty. then i stopped the rendering (it was just a test) and an another message appeared with "cancel ?" written on it. had to click on it too.i can take a picture if needed. maybe it's related only to Vegas 18 ?

patrik wrote on 9/3/2020, 4:08 PM

@Marty74, it is certainly possible to automatically start a script without there being an "OK" button. What was the message needing the OK?

Sorry about that. Its an old debug output. Its removed now.

patrik wrote on 9/3/2020, 4:16 PM

Nice ! I just tried it but the command line is "not" silent. (i try it in Vegas Pro 18). there is blank message with an "ok" button which block the rendering, and the render start only when we click on the "ok". is it possible to not have this ?

I only have 17 unfortanly but I think it will work in 18 as well. Please update the repo and try again and give me feedback.

Also, I wonder if it works with project default render template settings for you or if it always becomes 1980 AVC/AAC MP4 ?

Marty74 wrote on 9/3/2020, 4:35 PM

I only have 17 unfortanly but I think it will work in 18 as well. Please update the repo and try again and give me feedback.

Also, I wonder if it works with project default render template settings for you or if it always becomes 1980 AVC/AAC MP4 ?

It's perfectly working in Vegas 18 :) the messages box at start is gone ! great !
About the render template and which one he uses, i don't know how to check that ? can you tell me ?

here the project i test is Full HD 25fps no deinterlaced method, 24 bits 44.1khz Magix H264/AAC.
i'll have to do a full render and use different project / setting to check and see which render setting he use.

i'll try that tomorrow. thanks, and good night !