Log in

View Full Version : Custom function - will it be slower then natural?


DarkT
6th April 2007, 01:55
Hi,

I was doing the Berserk anime dvd, and to make the story short, I have ~500 freeze frame lines(I don't use Yatta for reasons I don't know).

Most of the FreezeFrames are either using the next or the previous frame, and only need to replace one frame, here's an example:

FreezeFrame(30639,30639,30640)
FreezeFrame(30853,30853,30852)
FreezeFrame(30854,30854,30855)
FreezeFrame(30984,30984,30983)
FreezeFrame(30985,30985,30986)

So I wrote this little script to make this easier:

Function FFF(Clip Clp,Int"X")
{

Clp.FreezeFrame(X,X,X+1)
Return(Last)

}

I'll also write one with X-1, for the "change by previous frame).

My question is, will it be slower then with the "natural" freezeFrame line?

The scripts would allow me to convert the 5 lines above into:

FFF(30639)
FFP(30853)
FFF(30854)
FFP(30984)
FFF(30985)

Which may not seem much - but it really is to me.

IanB
6th April 2007, 04:47
It will take slightly longer to compile (initial open delay) but will run at the same speed.

Have a look at Stickboys remap plugins, you may find one with more compatible input data requirements.

DarkT
6th April 2007, 13:07
I was using his script for applying filters per certain range... But from time to time I start getting access code violations, vdub shuts down and stops talking to me for days, and MeGui tells me it has a headache whenever I try to touch it...

So I use those in extreme situations only...

Thanks for the input though ;).

stickboy
7th April 2007, 06:51
Hmm? This is the first I've heard of such issues. Care to shed more details? Exactly what were you doing?

DarkT
7th April 2007, 11:40
Sure thing, as it just might be ME who's messing something up(I'd bet my money on that).

I was using your "ReplaceFramesSimple" (something which really saves me a lot) in the pre-ivtc stage to apply bi-frost...

My best guess is that something got messy since I was using it pre-Tdecimate...

Anyway, I will try to replicate the situation when I can, and I'll report back.