Log in

View Full Version : Any chance to restore THIS?


Efenstor
9th February 2011, 21:27
I'm trying to restore an extremely rare Georgian movie. :)

Sample: http://www.MegaShare.com/2992746

I can think of a couple of ways to restore the color, at least to some degree, but those scrolling dark bands... They're repetitive, so ideally I could make a special animation and use it as an overlay to brighten them up, but the cycle length is somewhere in between 9 and 10 frames, thus the beginning is always shifting, producing a larger cycle. Obviously it is a screener made with a poor projector and a poor PAL camera, knowing that may be someone can do the math of the lengths of those cycles?

jmac698
10th February 2011, 15:02
Yes of course there should be a way. Here's some ideas, but unfortunately I couldn't get them to work:
[code]
turnleft
#fan(0,193,"pass",51,4,plus=9,minus=0)
F1Quiver(last,"gb",4,30,test=false,degree=2,row=360,gamma=0.1)
turnright
[code]
Look at http://avisynth.org/vcmohan/FFTQuiver/F1Quiver.htm http://avisynth.org/vcmohan/FanFilter/FanFilter.html for more information and plugins.
Another idea, if you can find a fairly static scene at least 4 frames, you can mix the frames 4 frames apart, and they will cancel out. overlay(last,last.trim(4,0),opacity=.5) This is then your clean frame. Then subtract the first frame to find the pattern subtract(src,last). This should give you some kind of mask to use. If they don't cancel perfectly because the dark band is not in the same place, just shift one of the screens up to match it with crop/addborders.
Also for using the mask, you could try hotspot http://avisynth.org.ru/hotspot/hotspotavs.html

Another idea is http://avisynth.org.ru/defreq/defreq.html which is the same as above but seems easier to use to me.

jmac698
10th February 2011, 15:24
Here, but this isn't working either. The frequency seems just too low.
turnleft
DeFreq(fx=1,fy=0,show=2,info=true)
turnright

Didée
10th February 2011, 15:42
You could try some gentle brute-force:
a = last
b = a.spline36resize(60,120)
d = mt_makediff(b,b.temporalsoften(3,8,8,16,2),U=3,V=3)
a.mt_makediff(d.spline36resize(a.width,a.height),U=3,V=3)
Might need some tweaking ... I didn't actually try it on the sample (can't DL it at work), but you get the idea.

Efenstor
10th February 2011, 16:33
The frequency method should be better anyway, but Didée's brute force with MVDegrain instead of temporalsoften actually may be not much worse. Currenty trying it. Thanks for the ideas, both of you! :)

EuropeanMan
10th February 2011, 17:03
I, perhaps, am way off base here...but I also have a very very old movie...in which the colours are always shifting from one shade to the next...when they shouldn't be. I haven't really analysed it closely...but IF there is a cycle to the colour shifts, could I possibly post a sample here and see what COULD be done to stabilise the colours to what they should be in a consistent manner? Thanks & I sincerey apologise if my ? here is unwarranted.

jmac698
10th February 2011, 17:59
Just post a new thread about shifting colors problem, this often comes up with VHS tapes.
I've worked on such before and it kept going from purple to green. I think it could be fixed if there's anything consistent about it.
For big samples try www.megaupload.com or pastebin etc.

Efenstor
10th February 2011, 18:58
I didn't get the Didée's idea at first, actually it's ingenious - it's the same low frequency cut filter. Got pretty good results with this mod:
a = last
b = a.BicubicResize(14,8)
c = mt_makediff(b, b.TemporalSoften(6,16,0), U=3, V=3)
a.mt_makediff(c.BicubicResize(width(a),height(a)), U=3, V=3)