Vegas Batch Stabilize script

FocusOnVegas wrote on 11/13/2016, 2:13 AM

Vegas Batch Stabilize is a compiled script with user interface to batch Stabilize video (Sub)clips with the Sony / Magix Stabilize Effect in Vegas Pro.

This script can save you a lot of time.
Of course the stabilization ‘ll take as long as before, but it is done automatically by the script for all the selected (Sub)clips. In the meantime you can do other things.

For Sony Vegas Pro 12, Sony Vegas Pro 13 and Magix Vegas Pro 14.
This script ‘ll not run in older versions of Vegas Pro (before version 12)!
The script uses the OFX version of the Sony / Magix Stabilize effect.

Not tested yet with localised versions of Vegas Pro (f.i. German version). Should work because I reference the Stabilize effect by  "UniqueID" and not by "Name". Can someone confirm this script works in localised versions of Vegas Pro?

Free to use for personal or commercial Vegas Pro projects (but don’t sell my script).
If you like the script, you can express your appreciation with a small donation, see my website.

Installation and use instructions are present in the readme file of the download package (zip).
The password for downloading is on the download page.

Users with problems to execute this script (especially Windows 10 users): read the "readme" PDF file in the "ZIP" file of the download for suggestions to solve these problems (deblocking the script files).

More information and download:
http://www.focusonvegas.com/vegas-batch-stabilize-script/
 

 

Comments

Cornico wrote on 11/13/2016, 4:27 AM

Dick,

Thanks very much for this fantastic script.
For me it was a pleasure to test it.
That I'll use it a lot I know for sure.

3POINT wrote on 11/13/2016, 4:28 AM

Thank you very much for realizing this script, job well done.

FocusOnVegas wrote on 11/14/2016, 12:30 PM

Can someone confirm this script works in localised versions of Vegas Pro?

So I guess there are no problems with the script and localised versions of Vegas (f.i. German version)?

Marten made a video tutorial, see my website (link in first post).

 

jamie-mulford wrote on 7/1/2018, 12:56 AM

Hello @FocusOnVegas , how does your script Apply the VEGAS Stabilize effect? It seems this effect is unique and must be applied (per the message from the GUI - "You must click Apply for changes to take effect"), but I do not see an "Apply" method for effects in the API.

Can you prerender it somehow? Or do you have to render it to a new track? That would seem overly complicated.

Thanks!

FocusOnVegas wrote on 7/1/2018, 12:25 PM

Hello @jamie-mulford, I guess you mean with "API" the API of the Vegas Pro scripting "language"?

The parameter is named "AnalyzeButton" (= not / bad documentated).
You can find the available parameters in your OFX directory, f.i.:
...\VEGAS Pro 14.0\OFX Video Plug-Ins\Stabilize.ofx.bundle\Contents\Resources\Stabilize.xml

Example:

// Find the OFX parameter for the "Apply" (Analyze button) of the Stabilizer 
OFXParameter myOFXParameter = myOFXEffect.FindParameterByName("AnalyzeButton");

 

jamie-mulford wrote on 7/1/2018, 2:09 PM

Thanks @FocusOnVegas , then what do I need to do to associate the myOFXParameter with my effect instance?

Maybe this:

myOFXParameter.ParameterChanged();

FocusOnVegas wrote on 7/2/2018, 12:52 PM

@jamie-mulford,

 Yes, I did the same:


// Find the OFX parameter for the "Apply" (Analyze button) of the Stabilizer  
OFXEffect myOFXEffect = mediaToStabilize.Effects[indexOfEffect].OFXEffect;
if (myOFXEffect == null)
{
     MessageBox.Show("OFX effect not found.");
}
OFXParameter myOFXParameter = myOFXEffect.FindParameterByName("AnalyzeButton");

if (myOFXParameter != null)
     {
          // OFX type = PushButton.
          // Not / poor documented way to manipulate a parameter of this OFX type.
          try
          {
               myOFXParameter.ParameterChanged();
           }
          catch
          {
           ................
          }
     }
else ...............

 

"indexOfEffect" is the found index of the stabilizer effect for the subclip.

It is all a little bit tricky and not as easy as it could be (?)

 

 

 

 

jamie-mulford wrote on 7/8/2018, 1:11 PM

Thank you @FocusOnVegas ! This works. It has saved me a lot of time. How are you able to figure out undocumented / poorly documented Vegas APIs? Is there a resource that has more information than the published API and FAQ?

ilya-s wrote on 10/23/2018, 1:26 AM

What about new Vegas 16 stabilizer? Can you change part of your script to work with 16 version? Thanks. Sorry for bad english.