PDA

View Full Version : syntax error animate and overlay


trolltuning
5th August 2005, 17:56
I've been trying to play around with animate and overlay and I'm making a dumb mistake but can't find it. The last two lines(commented out) each work but the animate line doesn't-it keeps saying invalid arguments.

imagesource("C:/WINDOWS/DESKTOP/uscweb/van101.JPG")
loop(300)
assumefps(29.97)
video1=last
blankclip(length=300,fps=29.97)
video2=last
animate("overlay",video2,video1,x=400,y=200,video2,video1,x=50,y=200)
#overlay(video2,video1,x=400,y=200)
#overlay(video2,video1,x=50,y=200)

mg262
5th August 2005, 19:08
I don't think you can use named arguments (x=...) inside animate. I think you may also need to provide complete argument lists for the calls to overlay, though I'm not sure. You can get around these limitations by writing a script function which takes 4 arguments and cause overlay.

trolltuning
5th August 2005, 20:27
Thanks. It turned out that it was the animate filter that needed the start and stop added as well as taking out the named values. Correct line is below. But now I have a new problem. The overlayed image flips upside down in frame two (and stays upside down). If I correct it in with flipVertical in one frame it still flips again in the other.
animate(0,300,"overlay",video2,video1,400,200,video2,video1,50,200)

mg262
5th August 2005, 23:42
Perhaps it is messing up because you're passing fractional arguments to overlay? Try replacingthe 300 with a 350 and see what happens... (I would try it here, but I'm tied up fighting with new input mechanisms...)

stickboy
6th August 2005, 04:04
The overlayed image flips upside down in frame two (and stays upside down). If I correct it in with flipVertical in one frame it still flips again in the other.It's a bug in ImageSource. Is it fixed in AviSynth 2.5.6?

trolltuning
7th August 2005, 02:44
It's a bug in ImageSource. Is it fixed in AviSynth 2.5.6?
I think its fixed, I just downloaded the beta4 version of 2.56 and a similar problem with a script on my home computer dissapeared.