Log in

View Full Version : Need help adding slow-motion to a clip using "JDL_Applyrange" function.


Tio
15th September 2005, 23:40
I am attempting to apply slow-motion to a short portion of a clip but can't seem to figure the correct filter implementation. Having used other JDL functions I figured I'd give the "JDL_Applyrange" function merged with the "AssumeFPS" & "AssumeSampleRate" filters a try. I have verified the function to work by testing hue, sat, etc. filters with it but can not seem to get "AssumeFPS" integrated.

Clip properties are 23.976 fps with a 48000 sample rate audio. AVISynth->V'Dub->XviD/AVI

My basic attemps looked like:
JDL_ApplyRange(16544, 16656, "AssumeFPS(12)") &
JDL_ApplyRange(16544, 16656, "AssumeFPS(12).AssumeSampleRate(22000)"). I've used differing framerates along with matching % of audio sample reduction but continue to get the following AVISynth error: Splice: Video framerate doesn't match. I'll admit I'm not real swift when it comes to scripting so I am probably making a very basic (and/or stupid) assumption or mistake. Additional options also welcomed.

Any insight would be appreciated.
Tio

foxyshadis
16th September 2005, 02:34
You can't actually have this kind of multiple frame rate in avisynth. However, what you could do is make a script to duplicate every frame in the range (the easiest porbably with AssumeFPS().ConvertFPS() if you need the frame timing to change). If you need a gradual slowdown or speedup you can probably combine that with animate() but I'm too tired to think of exactly how right now.

Tio
16th September 2005, 06:19
Thanks foxyshadis for the reply. I was getting a bit frustrated having been successful using AssumeFPS before while not being able to now but you opened my eyes to the fact that with previous usage it was always the entire clip being filtered.

Anyhow, I just found the following thread upon additional searching - interlaced slow motion (http://forum.doom9.org/showthread.php?s=&postid=516773)
I am going to switch my additional inquiries there since it seems I can kill two birds with one stone.

Appreciative,
Tio