Log in

View Full Version : AviSynth Script error!


fedevaps
26th November 2005, 12:40
I have followed this guide:

http://www.doom9.org/index.html?/mpg/avi2dvdr.htm

I have then made this script:

LoadPlugin("C:\Programmer\GordianKnot\VirtualDubMod\plugins\textsub.vdf")
avisource("The_Descent.avi)
BicubicResize(720,272)
AddBorders(0,104,0,104)
TextSub("The_Descent.srt")
ResampleAudio(44100)

In c:\ I have the movie and the .srt file:
c:\The_Descent.avi
c:\The_Descent.srt

this is also where I keep my script: movie.avs.

When I try to open the script in QuEnc 0.61 I get this error:

AviSynth open failure:
Script error: expected a , or )
(C:\movie.avs, line 5, column 20)

Any ideas??

CWR03
26th November 2005, 13:18
In c:\ I have the movie and the .srt file:
c:\The_Descent.avi
c:\The_Descent.srt
Do you mean this movie: The Descent (2005) (http://www.imdb.com/title/tt0435625/) which has not yet been made available on DVD? Is this downloaded material?

fedevaps
26th November 2005, 14:00
No its actually an old movie I got called People I know

Wilbert
26th November 2005, 14:58
Try

LoadPlugin("C:\Programmer\GordianKnot\VirtualDubMod\plugins\textsub.vdf")
avisource("C:\The_Descent.avi")
BicubicResize(720,272)
AddBorders(0,104,0,104)
TextSub("C:\The_Descent.srt")
ResampleAudio(44100)

Strange that the error points to line 5 instead of line 2.

Leak
26th November 2005, 17:25
Strange that the error points to line 5 instead of line 2.
Well, he forgot to close a string, and line 5 contains the next doublequote character at column twenty, which is now used to end the string...

np: The Dolls - Favourite Chord (The Dolls)