Log in

View Full Version : May be mistake in function Animate()


Jenyok
14th April 2010, 12:56
Hi, guys...

May be I found a mistake in standart AVISynth function Animate().

1. Please, try to run script below and see 400 frame.
2. Change variable "ef" to 825 and see 775 frame.
3. Change parameter "-40" in fuction Animate() to "-41" and see 774 frame and so on.


BlankClip(1000, width=720, height=576, fps=25, pixel_type="YUY2", audio_rate=44100, channels=2)
sf = 25
ef = 425
v10 = Animate(sf, ef, "subtitle", "camera ....... Jim", 40, 576, sf, ef, "Arial", 40, $FFFFFF, \
"camera ....... Jim", 40, -40, sf, ef, "Arial", 40, $FFFFFF)
last = v10
ConvertToYUY2()

Gavino
14th April 2010, 14:00
It's a consequence of the way Subtitle interprets the x and y parameters - see
http://avisynth.org/mediawiki/Subtitle:
The parameters x and y can be set to -1 to automatically calculate and use the horizontal or vertical center coordinate. Other negative values of x and y can be used to give subtitles partially off the screen. Caution: If your script uses Subtitle with Animate and negative x or y values, x or y might momentarily become -1, causing a glitch in the video.