Log in

View Full Version : Tool to generate many scripts from one ?


djidjo
10th March 2005, 12:39
Hi folks,

I have about 50 AVI files that I want to deinterlace and serve them to Vegas Video (using of course VFAPI, because Vega doesn't read avs scripts). I have this script :

---- script SdI_.05-02-18_14-08.01.avs ------------
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LeakKerneldeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec.dll")
AVISource("..\SdI_.05-02-18_14-08.01.avi")
LeakKernelBob(order=0, sharp=true, map=false, threshold=10, linked=true)
TemporalSmoother(3,3)
---- end script SdI_.05-02-18_14-08.01.avs ------------

I want to do 50 scripts like this one with all 50 different AVISources and all will have the same name as the AviSource except with .avs at the end instead of .avi
IIRC, "Mass conversion" with VFApi is easy once I have all the avs scripts.

So is there any tool that can generate these 50 scripts where you can give like a "template script" and a list of files to be converted ?

Thanks !
Djidjo

sh0dan
10th March 2005, 14:28
Have a look here (http://www.avisynth.org/BatchScripting).

djidjo
10th March 2005, 14:36
Yes ! Exactly what I need, and only what I need ! That's great ! (that's a pity it's a web application, but nevermind)

Thanks a lot !

EDIT : just saw the windows application. Thanks again.

EDIT 2 : it's a dead link. Nevermind.

stickboy
10th March 2005, 18:52
Also see this thread:
generate avs-script for similar sourcefiles in directory (http://forum.doom9.org/showthread.php?s=&threadid=79259)