PDA

View Full Version : Censoring needed...


OBcecado
30th March 2003, 15:15
Hi, i got a cam mpeg and I'd like to make people's faces unknown, is there any filter capable of doing such thing?
Thanks.

Kurosu
30th March 2003, 15:51
Brute force: DCTFilter(1,0,...,0) + overlay
You could also use cascaded blurs on the crop for a different effect.

The problem with overlay (AFAIK) is that it's only for rectangular overlays). If those leads are not sufficient, I would recommend you to check www.avisynth.org for more details (as explaining more clearly would need too much time), or wait for someone's else advice.

lamer_de
31st March 2003, 12:08
I think you'll need motion tracking, if the people move their heads, so I didn't know how to accomplish that with avisynth. You'll most probably need a non linear video editing App to do this.

CU,
lamer_de

Wilbert
31st March 2003, 13:28
You'll most probably need a non linear video editing App to do this.
and AviSynth is not a non linear video editing App?

Several months ago I thought about how to do this, but never came around making it. If the motion is approximate linear, you can use my "translation" function to translate the blur with whatever speed/direction you want. (Look up the screensaver threads.) The only problem I had is how to make a nice blur of someone's face.

lamer_de
31st March 2003, 19:15
I think you know what i meant :p Sorry for the inaccuracy.

CU,
lamer_de

WarpEnterprises
1st April 2003, 16:42
you could try my Spray function - it does something quite similar to the effect seen in TV, but as lamer_de wrote you have to adjust the mask according to your video motion.
(the mask has to be black except for the face which you must paint with ~ 30%black)

here is an example:

original:
http://www.avisynth.org/~warpenterprises/original.JPG

mask:
http://www.avisynth.org/~warpenterprises/mask.JPG

blurred:
http://www.avisynth.org/~warpenterprises/blurred.JPG

script:
http://www.avisynth.org/~warpenterprises/files/spray_20_dll_20030325.zip

LoadPlugin("...Spray.dll")
AviSource("test.avi").converttorgb32()
M=imagesequence("mask.jpg",0,100000,25).converttorgb32()
Mask(M)
Spray(25,25)
MaskedBlur()

^^-+I4004+-^^
2nd April 2003, 00:41
Originally posted by Wilbert
and AviSynth is not a non linear video editing App?



avs is not editing app,let alone non-linear.....

for example;u have ONLY avs and mplayer of some sort....
try to make 10 cuts in the video without using pen
and paper........

but it's decent processing app,and can do cutting too if
.vcf script is converted to .avs script (yeap there's a tool to do
that....but this still doesn't make avs editing tool...)

doing this (you talk about) with avs would be SUCH a pain....
better try some specialized program.......

editing NEEDS gui
so does this.....
(or did avs got some nasty visual front-end recently?)

WarpEnterprises
2nd April 2003, 09:32
the best GUI for AviSynth is VirtualDubMod :D

sh0dan
2nd April 2003, 10:28
FAQ 1.19 (http://www.avisynth.org/index.php?page=Section+1%3A+About+AviSynth#q1.19).

^^-+I4004+-^^
2nd April 2003, 17:45
Originally posted by sh0dan
FAQ 1.19 (http://www.avisynth.org/index.php?page=Section+1%3A+About+AviSynth#q1.19).

ok,so it didn't.......
stuff that only converts actions to scripts
is not a real gui,but then ,avs is MADE to be scripting lang.
and a frameserver.......so any real-time job is impossible
(my idea of elegant blur of faces would be that the video
is rolling (for example at 1/2 speed or so) and i'm following
the face of man witht the mouse or something....that would be
elegant way....probably this is how it's done in tv
studios)

don't get me wrong,avs is nice,but it's no digital video editor...
VDub is,but it lacks the speed of avs (and some filters too..hehe)

regards
/ivo

Wilbert
2nd April 2003, 18:23
so any real-time job is impossible (my idea of elegant blur of faces would be that the video is rolling (for example at 1/2 speed or so) and i'm following the face of man witht the mouse or something
Agreed.

Maybe you like this link (http://www.wrigleyvideo.com/videotutorial/tutdes_blurface.htm).

^^-+I4004+-^^
2nd April 2003, 22:39
Originally posted by Wilbert
Agreed.

Maybe you like this link (http://www.wrigleyvideo.com/videotutorial/tutdes_blurface.htm).

yeap,something along the lines of premiere (or "vegas" perhaps(?)),that's
what i was thinking....

[although i don't use premiere anymore....
i just used it for zooming,but since i learned
that zoomplayer has that feature no need for
premiere anymore...(and that's a big load off my chest)
premiere is advanced tool for sophisticated
effects,NLE editing etc.,and as such it's overkill
for my purposes....
who needs it?..heheh]