PDA

View Full Version : Accessing the first frame only with Trim()


Blankman
6th April 2003, 08:28
There is no direct way of accessing the first frame and only the first frame. The frame number is 0, and Trim(0,0) returns the entire clip. Ouch!

The only generalized round about technique to implment a function to retrive a frame at position n is to temporarily splice a dummy frame to the begining of the clip, then extract the desired frame using Trim(n+1,n+1). Where n is the frame position in the original clip.

Bidoche
6th April 2003, 11:40
use Trim(0, -1)

kururu
7th April 2003, 06:11
Which right now would return the first 2 frames due to a bug in the current avisynths, right? Found that out the hard way haha. I'm using 2.51 now. A Ref. (http://forum.doom9.org/showthread.php?s=&threadid=42709)