Log in

View Full Version : NewBie - AVISynthesizer or another Auto AVS


techstuff
2nd June 2010, 14:05
Hi

i'm trying to auto create avs with AVISynthesizer.
I have 2 files .avi and .smi.

is there a way in avs that it can copy text from one line?
from after \ to . and then insert it in another line

exp:
#ASYNTHER 1920x1080
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5.8\plugins\VSFilter.dll") # program location
AVISource("\\film\COPY.avi")
Lanczos4Resize(1920,1080) # Lanczos4 (Sharp) # scale to square pixels
TextSub("\\sub\INSERT.smi") # merge subtitles
Lanczos4Resize(1920,1080) # Lanczos4 (Sharp) # scale to anamorphic

br
techstuff (newbie)

hanfrunz
4th June 2010, 13:10
use a variable, something like:

filename="FILE"
avisource("\\film\" + filename + ".avi")
Textsub("\\sub\" + filename + ".smi")

regards,
hanfrunz