View Single Post
Old 6th July 2004, 17:51   #2  |  Link
stickboy
AviSynth Enthusiast
 
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
From the command prompt, you can do something like:
Code:
for %x in (*.rm) do (
echo.DirectShowSource^("%x",25^)
echo.BilinearResize^(352,288^)
) > "%~nx.avs"
If your scripts need to be any more advanced than that, then you should put that stuff into a common .avs file:
Code:
function DoIt(string filename)
{
    DirectShowSource(filename, 25)
    BilinearResize(352, 288)
    # ... other AviSynth processing commands...
    return last
}
and then in the auto-generated .avs files:
Code:
for %x in (*.rm) do (
echo.Import^("common.avs"^)
echo.DoIt^("%x"^)
) > "%~nx.avs"

Last edited by stickboy; 6th July 2004 at 18:00.
stickboy is offline   Reply With Quote