Log in

View Full Version : motion blur filter ?


Dark-Cracker
7th October 2003, 15:06
Hi,

sorry for this silly question , but there is an equivalent filter with avisynth of the great filter "motion blur" (internal filter of vdub) ?

this filter simulate a speed effect in the motion. (u see a decomposition of the motion).

thank u :)
++

sh0dan
7th October 2003, 16:20
TemporalSoften(2,255,255,0,2) could be a good start.

Turn up "2" to get more frames blurred.

bilu
7th October 2003, 17:02
@sh0dan

Would it be possible to use motion blur over stuttering, i.e. detect stuttering and do conditional filtering?

It could be nice over hybrid decimated pannings like the Star Trek hybrid clip from Neuron2. What do you think, as a MotionPerfect free alternative?


Bilu

Didée
8th October 2003, 21:19
@ bilu

Wouldn't that be the same as 'Decimate(XXX, mode=1)' ? With right thresholds, only - or mostly - the stutters should be detected and blended with the next frame. Or did I get your intention wrong?

- Didée

Dark-Cracker
8th October 2003, 21:28
hi,

@sh0dan
thank u this tips work very nice :) i am working on basic effects so i have an another question :)

how to simulate "box blur" filter (it blur completely the frame) , i have tested by adding a lot of .blur(1) params but the effect it's not really correct. in fact i want to use it with the animate function to create a little effect (transition from really blurry frame to normal frame in 20 or 30 frames).

i hope u understand what i try to say even if it's not very clear :)

thank u
Bye.

bilu
8th October 2003, 23:07
Originally posted by Didée
@ bilu

Wouldn't that be the same as 'Decimate(XXX, mode=1)' ? With right thresholds, only - or mostly - the stutters should be detected and blended with the next frame. Or did I get your intention wrong?

- Didée

Motion blur and blending are not quite the same effect ;)

I think motion blur could look better on pannings... :sly:


Bilu

Guest
9th October 2003, 00:12
Originally posted by Dark-Cracker
How to simulate "box blur" filter (it blurs completely the frame)? I have tested by adding a lot of .blur(1) params but the effect is not really correct. We need to port Avery's code. There's no way to do it currently. Repeated applications of the 3x3 kernel just result in approaching a Gaussian blur of fixed width. Maybe I'll find time for it.

Didée
9th October 2003, 02:21
Originally posted by bilu
Motion blur and blending are not quite the same effect ;)

I think motion blur could look better on pannings...

:rolleyes: Of course that isn't the same.

In fact, the topic is different from what's DarkCracker asking.
And, Vdub's "motion blur" filter is not a motion blur filter. :)

"Real" motion blur comes from the analog side and means the effect of an object moving in the timespan a picture takes to 'record', therefore the object is blurred in the movement direction over the according area.
You now all that.
Vdub's filter does not much more than blending adjacent frames together. I see no little bit of "motion blur" in that. For a simulation of motion blur you need an vectorized, and sort of image-recognition based approach.
If that's what Vdub's filter is doing, then I really did miss something :)

- Didée

Dark-Cracker
9th October 2003, 09:37
@neuron2

thank u for your answer :) i hope u could find time to convert this filter for avisynth :)

i have already tested with a 3x3 matrix ( 28 29 28 , 28 29 28 , 28 29 28) but even with repetead it, i obtain approximatively the same effect than with alot of bur.



Ps: does someone know an virtualdub filter to simulate old movie effect ? (like AgedFilm filter in adobe premiere ?) this filter add vertical black lines, and some dust effects.

i am trying to simulate it using layer and picture function under avisynth but the result it's more funny than real :)

thank u again for your quick answers :)

Bye.

bilu
9th October 2003, 10:15
Originally posted by sh0dan
TemporalSoften(2,255,255,0,2) could be a good start.

Turn up "2" to get more frames blurred.

@Didée

I was thinking on a Decimate(mode=1) where

A A B

would be replaced by

A AB B

where AB would be some sort of temporal soften instead of field blending. If that's possible. :rolleyes:


Bilu

Didée
9th October 2003, 11:15
bilu:

So you mean something like that?ConditionalFilter(last, last, last.temporalsoften(1,[1~255],[1~255]), "YDifferenceFromPrevious()", "<", "[1~10]", true)

I'm still not sure I really get you. TemporalSoften too, does nothing other than blending, however with thresholds. And if you were planning to use a higher temporal radius, you'd get blending from the pre-previous and after-next frames into the dup frame you're going to repair ...

- Didée

Didée
9th October 2003, 11:57
Dark-Cracker:

The following is a rough (and kludge ;), it's quickly hacked together ) script to do the increasing blurring effect you described:function BigBlur(clip clp, float amount)
{
amount=default(amount,1)
amount=int(amount)
w=clp.width
h=clp.height
xx=int(w/amount)
yy=int(h/amount)
clp.ConvertToRGB
BicubicResize(xx,yy)
blur(1-(1/amount))
BicubicResize(w,h)
convertToYV12()
return(last)
}
#-------------------------------------
XYZSource(whatever)

from=25
to=50

orig=last
effect=animate(orig, from,to, "BigBlur", 1,25)
trim(orig,0,from-1) + trim(effect,from,to) + trim(orig,to+1,0)

return(last)- Didée

Dark-Cracker
9th October 2003, 14:58
thank u very much didée :)

an idear on a filter for avisynth/virtualdub who simulate aged film ?