Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > Testing / Bug Reports > Dosn't Work Subset.addrange() ?


Posted by: Michal Mar 12 2004, 05:27 PM
I have written a script:

VirtualDub.Open("c:\\home\\mda\\volley\\mecz\\nic.avi",0,0);
VirtualDub.subset.AddRange(100,-762+200);
VirtualDub.SaveAVI("mecz.avi");

and I have two problems with it.

Documentation writes:

AddRange(int start, int length)
start is the index of the frame in the original clip, and length is the number of frames contained in this subset.

But:
function AddRange ingores first argument! No matter, what I write there, the strarting point is allways 0.
Second argument isn't number of frames, but rather offset from the end (and it must be negative number)!

VirtualDub works correct with
VirtualDub.subset.AddRange(100,200);
but VirtualDubMod does not.

Could anybody check this?

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)