Log in

View Full Version : Process frames before Trim() range?


shae
10th July 2017, 20:50
As far as I can tell, after a Trim() AVS only processes the actual remaining frames.
Is there a way to do a Trim() that affects final output, but doesn't affect which frames are processed?

I need this for the DGBobIM deinterlacer, where the first two frames aren't deinterlaced properly.

wonkey_monkey
10th July 2017, 20:58
Doing a trim() at the end of a script shouldn't affect the output - so long as all the filters you use are deterministic and handle random access properly.

If that isn't the case, then either you can save the untrimmed output and then trim it, or perhaps:


DGBobIM(...)

preroll(2)

trim(...)

will help.

Edit: your trim() does come after DGBobIM(), right?

shae
10th July 2017, 21:13
Seems to work, thanks.

Any idea why an extra pre-deinterlace frame, which is supposed to turn into two progressive, actually requires trimming 3 frames?


BlankClip(last, length=1) + last

LoadPlugin("DGBobIM.dll")
DGBobIM(mode=1,order=1)

Preroll(2)
Trim(3, 0)