Log in

View Full Version : how to apply a filter to a part of video ?


MacDonkey
25th August 2010, 21:30
Hello !

I would like to apply a filter to a part only of a video.

Ex : frfun3d(2,2) but only on a part

I thought to make a transparent square with a filter Overlay, where there I will use the filter Frfun3D, but I do not manage to apply the filter Frfun3D on the transparent square. :confused:

Ex :

clip1 = last
clip2 = Imagesource("H:\cache.bmp")
Overlay(clip1, clip2, x=1673, Y=67, opacity=0.005)


Anybody would have an idea ?

Sorry for my catastrophic English. :p


THX !

Guest
25th August 2010, 21:38
http://forum.doom9.org/showthread.php?t=156383

MacDonkey
30th August 2010, 17:47
I do not understand because I am still a novice, but thank you anyway.

Bye-bye ! Thanks !

MacDonkey
22nd September 2010, 15:54
Hi !

I still can not find how to apply a filter on a part of video. :confused:

Please, could anybody give me an example to add a denoising on clip2 ?

Thank you and have a good day ! ;)

Tuik
22nd September 2010, 20:42
clip2.denoiser()

Gengero
23rd September 2010, 19:13
ApplyRange(clip clip, int start_frame, int end_frame, string filtername, args)
more detail here http://avisynth.org/mediawiki/ApplyRange

Motenai Yoda
23rd September 2010, 20:12
x1=100
x2=200
y1=150
y2=200
c3=crop(x1,y1,x2,y2,align=true)
c1=crop(0,0,x1,0,align=true) #no needs if use overlay
c2=crop(x1,0,x2,y1,align=true) #no needs if use overlay
c4=crop(x1,y2,x2,0,align=true) #no needs if use overlay
c5=crop(x2,0,0,0,align=true) #no needs if use overlay
c3=c3.filter()
stackhorizontal(c1,stackvertical(c2,c3,c4),c5)#or Overlay(c3,x=x1,y=y1)

http://img691.imageshack.us/img691/3343/immagineph.gif