I may have been imagining it but I vaguely recall mention of a filter that would fill in an area of video based on the areas around it.
I'm processing Doctor Who again right now and sometimes the borders are a tad tacky and I was wondering if in some cases I could handle it by inventing new contents.
I'm looking at a scene at the moment where the corners have gone black. What's supposed to be there is just fog, so it shouldn't be hard to mimic that by imitating the fog around it... IF such a filter exists...
+ Reply to Thread
Results 1 to 10 of 10
-
-
There are various inpainting plugins (several free ones in avisynth e.g exinpaint) , it's similar to "context aware fill" in photoshop if you're familar with photoshop or gimp (gimp's resynthesizer). The topic is discussed semi frequently, search for "inpainting" techniques if you want more info
But usually doesn't work well with video by itself only, because of interframe fluctuations. You usually have to do other manipulations/ massaging as well for video -
-
Well, thankfully it's only a four second clip.
It's really not hard to imitate billowing fog obscuring random grey rubble recorded on old degraded film. The corners do look a tad busy but it's definitely an improvement on the encroaching blackness. There no problems with the corners of the scenes immediately before and after so hopefully I won't have to use this method much. -
Then you might be able to use frame interpolation techniques, rather than inpainting, by interpolating only the area in question, either by using a mask to leave the rest alone, or by cropping down to only the part needing interpolation, something like this:
A=Last
B=A.ReplaceFramesMC(first bad frame number, number of frames needing interpolation)
Mask=ImageSource("Fog.bmp")
Overlay(A,B,0,0,Mask)
I uploaded a JPG rather than a BMP, for the smaller size: -
For something near the edge I've occasionally overlaid a (blurred?) mirror image.
Code:# mirror eight pixels at the right edge of the frame mirror = Crop(704, 0, 8, -0).FlipHorizontal() Overlay(mirror, x=712, y=0)
-
sample
Top right and bottom right. I can't tell if the random dark areas in the top left are damage or detail, but I got rid of it just in case.
The image pans and yet top right stays where it is, so that has to be damage. He walks into bottom right so I had to shrink the infill area as much as possible until the problems the filter creates weren't as noticeable.
At the moment it's just filling the areas with what amounts to random noise, considering the video pans and the billowing fog (dust?) I don't want anything too predictable or it will be noticeable. -
That looks like just some mild vignetting, not damage. It's quite common to see this particularly with older film footage. It's so close to the periphery that it would not be visible on TV because it's in the overscan area.
I'd say it's not worth doing anything about, but if you really want to, you could brighten up the corners with a technique similar to this: http://rationalqm.us/hotspot/hotspot.html -
That would be why it seems to be on all the corners, I've found several more scenes with the problem in the meantime. Unfortunately I don't think that particular filter will be of much use at this point. The problem is remarkably inconsistent between frames as the darkness ebbs and flows, the top left is definitely affected and I've found traces of it in the bottom left now too.
Similar Threads
-
Frame interpolation
By themaster1 in forum RestorationReplies: 58Last Post: 26th Oct 2019, 17:29 -
Delete
By killerteengohan in forum Newbie / General discussionsReplies: 0Last Post: 30th Aug 2014, 23:15 -
Motion flow interpolation software?
By lordsmurf in forum Newbie / General discussionsReplies: 18Last Post: 27th Jun 2014, 10:30 -
What kind of filter/plugin works to for frame interpolation in this video?
By Milardo in forum Newbie / General discussionsReplies: 0Last Post: 29th Dec 2013, 23:36 -
Videos Play In FF when trying to do motion interpolation
By ndawg101 in forum Software PlayingReplies: 5Last Post: 10th Apr 2011, 04:28