Log in

View Full Version : can "variable_name = DirectShowSource()" be used?


shadewither
29th January 2006, 01:51
avisynth 2.56

in avisynth doc, i saw:
v = Mpeg2Source("e:\movie.d2v")
a = DirectShowSource("e:\Temp\Test2\test.ac3")
AudioDub(v,a)


but when i use:
source = DirectShowSource("...")
it returns: "The script's return value was not a video clip"

while DirectShowSource("...") works fine

Question:
can "variable_name = DirectShowSource()" be used?:confused:
I'll appreciate your help

Lil' Jer
29th January 2006, 01:53
but when i use:
source = DirectShowSource("...")
it returns: "The script's return value was not a video clip"

while DirectShowSource("...") works fine

Well of course, you aren't actually returning anything.


Question:
can "variable_name = DirectShowSource()" be used?:confused:
I'll appreciate your help

Yes, but you have to do a return line at the end.

foxyshadis
29th January 2006, 01:54
at the end of the script, use "return source" or just "source".

Also make sure when modifying that you reassign it each time, like source = source.crop().tweak().

shadewither
29th January 2006, 02:12
thanks
i seem to have asked a silly question, for it's my first time to end with a variable_name...