View Single Post
Old 6th January 2011, 23:47   #15  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Here is the message i have got recently from Jean (i have no clear answer to it):
Quote:
... i'd like to ask you a bit about
exinpaint which i found in your plugins list. I really like that tool
and it produces good output; However, i wanted to ask you, how an
implementation into MVTools could look like (i'm new to avisynth, so
i'm not very skilled yet)

I used exinpaint to do the same in your example with some borders,
sadly every frame the the inpainting is changed, even if the edges are
very similar. Thats why i think an implementation into mvtools could be
very useful, i just have no idea how.

Let's imagine we have a video with 800x600px. Now we add 20px border at
the top, and 20px border at the bottom. Now i use exinpaint with 24px
top and 24px bottom to get the border's inpainted (produces a good
result so far) though on the next frame this inpainting changed while
the rest of the frame did not change. (there's maybe only 10% in the
whole frame changing, the only thing i can see is some dust in the
middle and a girl moving the mouth cuz of talking, - the dust doesn't
reach any of the borders, it's really in the middle) so, what i would
need, would be something to "stabilize" the inpainting. An idea i'd
have would be:


- Create a Mask in the same size around the mask (yeah, i'm
complicated explainer) so if we have a border of 24 px at the top, we
make a mask of it with 28 px which gets inpainted. Now we create a
second mask BELOW of it with 28px in which we check for motion - if
there's no motion use the inpainting of the previous frame. That's just
an example if we do something at the top. Same functionality should be
right, left and at the bottom, though individually (because, while at
the top nothing might change, at the bottom something could change, etc)

You think that could work? And you got any idea how to implement
something like that?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote