PDA

View Full Version : Script Efficiency – Trims vs ApplyRange ?


grannyGeek
4th September 2007, 03:39
Here is a question about basic scripting, a bit of a change from all these dozens of threads about advanced filter usage (much of which read like ancient Sanskrit to me).

My source vhs movie has drastically different requirements for dozens of different scenes.

Is it preferable to
A -- use Trim and Splice for each scene, set up with all the filters for that scene within that “trim” segment

B -- use ApplyRange (actually, JDL_ApplyRange, I find it much easier to use)

I’m also wondering –
should “apply” calls be listed in sequence of the video regardless of the filter used, or would it be recommended to group calls for each filter together?
( such as, group all calls for FFT3d, all calls for HDRAGC, etc)

This is going to be a very hefty script either way, and I’m hoping to keep my computer from having a nervous breakdown
:D
I know I will have to break the script into chapters or segments to keep things within reason.

I look forward to any advice you may have for me.

stickboy
4th September 2007, 07:13
JDL_ApplyRange internally just calls Trim and Splice, so it will be slightly worse.

If you're going to apply the same filters with the same settings for multiple sections of video, then it'd be better to use the ReplaceFramesSimple function from my RemapFrames plugin (http://www.avisynth.org/stickboy/).

grannyGeek
4th September 2007, 07:36
thank you for that link, I'll be testing the plugin tonight.
While I was in the neighborhood, I snagged some more of your functions that I didn't already have. (love it when the scripting process can be made simpler!)

Thanks.