I need a little help, im use Avsp, and works great, but now, i wanna create various scripts at same time, a stupidly simple avs, just need the filename and audio=false function, i see the example in the program:
- Code: Select all
# This example shows how to automatically generate multiple scripts given a
# directory with several source files. Note that this example doesn't even
# directly interact with the AvsP program itself, it's almost entirely using
# pure Python for batch processing, with conviniece gui functions provided by
# the avsp module.
# Get the directory containing source files
dirname = avsp.GetDirectory()
# Generate each of the avisynth scripts
for filename in os.listdir(dirname):
fullname = os.path.join(dirname, filename)
# Get the extension-based template string
srctxt = avsp.GetSourceString(fullname)
# Create the script string
scripttxt = srctxt + '\n' + 'Sharpen(1.0)\nInfo()'
# Write the script text to a file
f = open(fullname + '.avs', 'w')
i tried i a few places, buy allways give me errors, where i have to place the "audio=false", to generate those .avs files, i was reeding something of pyton or something like that, but i dont have idea...
Thanks for reed
Pd: sorry for my bad english XD