Log in

View Full Version : slow motion


lpn1160
26th August 2004, 17:44
I want to slow down portions of a video so I used this script:

AVISource("C:\Documents and Settings\Administrator\Desktop\O'reilly_vs_Moore.avi")
applyrange(1800, 2000, "assumefps", 5)

However this plays the entire video in slow motion
I'm using the latest version of avisynth.
How can I slow down just a portion, or portions [where I like] of the video?? What am I doing wrong?

Thanxs a million in advance for any and all assistance

scharfis_brain
26th August 2004, 17:51
replace assumefps with changefps

lpn1160
26th August 2004, 18:25
Thank you very much for responding "scharfis_brain". I have nothing but the utmost respect for your Avisynth knowledge, as I have read tons of your posts. However I tried your suggestion and nothing changed it played exactly the same.
Thanks for any more thoughts on the matter

scharfis_brain
26th August 2004, 18:28
then do this:



i=avisource("yourvideo.avi")
f=framerate(last)

a=i.trim(0,1800)
b=i.trim(1800,2000).assumefps(5).changefps(f)
c=i.trim(2000,0)

a+b+c

lpn1160
26th August 2004, 18:48
Interesting, I received the error message: invalid argument to function "framerate"

Hmm, Why should something so simple be such a pain (LOL)

Leak
26th August 2004, 18:52
Originally posted by lpn1160
Interesting, I received the error message: invalid argument to function "framerate"

Hmm, Why should something so simple be such a pain (LOL)

Replace

f=framerate(last)

with

f=framerate(i)

and it should work...

np: Lali Puna - Faking The Books (Faking The Books)

scharfis_brain
26th August 2004, 19:01
hehe, those non-tested scripts are know produceing errors

hehe, immer dieses stegreif-scripting :)

lpn1160
26th August 2004, 19:36
"scharfis_brain" YOU DA MAN!!!!!

Thank you a million X over