View Full Version : start & end time doesn't work
ale_x
4th April 2012, 15:04
Hi
I have a simple question
when I used start & end time it doesn't work, why ?
clipb =ImageSource("C:\Admin\Untitled-1.png", start=100, end = 200, pixel_type = "RGB32")
clipa= BlankClip(length = 1400, width=720,height=400, fps=23.976, color=$dddddd)
Overlay(clipa, clipb, mode="blend", x=170, y=320, opacity=1.0)
:helpful:
IanB
5th April 2012, 00:04
In what way does it not work?
What is the error message or what is the intended behaviour versus the actual behaviour?
As written clipb will be 101 frames, [0..100], all containing the image from "C:\Admin\Untitled-1.png".
As clipa is 1400 frames, Overlay() will extend clipb to 1400 frames by reusing the last frame (100).
If you wanted to load files Untitled-100.png, Untitled-101.png, Untitled-102.png, ..., Untitled-200.png. Then you need a printf %d code in your filename string. The %d is replaced by the value of start+N as each frame is rendered (N being the current frame number). i.e.clipb =ImageSource("C:\Admin\Untitled-%d.png", start=100, end = 200, pixel_type = "RGB32")
See ImageSource (http://avisynth.org/mediawiki/ImageSource) for further detail on its use.
See "sprintf syntax" (http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/) for further details on number formatting.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.