Scripting with AviSynth
Loading Plugins
AviSynth is script-based. It does not have a graphical user’s interface, so all of our work will be done in notepad. We only need to go over a few commands for our purposes, however, every plugin has a multitude of possible settings and configurations. If you plan on deviating from this guide at all, reading the help documents that came with the plugins is a definite must.
Open up notepad. The first thing we have to do is load the plugins we want AviSynth to use.
The syntax for this is:
LoadPlugin(“absolute location”).
For our case, we would enter the following code:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb521.dll")
See figure 18 to see how this should exactly appear in your script. This tells AviSynth to load both plugins that we downloaded. Obviously, if you’ve installed to another location, you would enter that location instead. As you download updated versions of the plugins, the names of the .dll files may change, so pay attention when writing your scripts. Also, pay attention to any stray spaces, unintentional carriage returns, or missing symbols such as
quotation marks and parentheses. You are programming on a very basic level, and there is no room for mistakes.
Go ahead and save your work by choosing “save as” from the file menu, and selecting the “save as type” of “all files”. Name your file whateveryouwant.avs.