View Full Version : Restoring old film
odyssey
20th November 2007, 20:22
I trying to restore some old cartoons as much as I can with Avisynth, but I'm facing a little trouble plus I would like to try out any suggestion on image restoring.
My primary concern is that the picture is very unstable. I tried DePan, and it stabilized it pretty well, but still the picture was moving from side to side. Someone suggested in another thread to shuffle the frames, I tried it, and although it was not very effective, it sounds like the right direction.
Another concern in regards to DePan is that I find it hard to effictively avoid DePanning when the camera pans and likewise when objects in the middle of the picture is moving.
Also, which tools would people recomment to fixup the old film material? Since most of it is simple cartoon, I assume it's somewhat easy to get a decent result.
I need to adjust some of the coloring too. I've tried ColourLike but didn't like the results. I'm familar with Photoshop Levels etc. but that's RGB and I have no real clue how I should adjust images in the YV12 environment. Any recommendations?
Thanks in regard
Ebobtron
20th November 2007, 21:11
Where is your sample clip that the experts can look at. They are going to ask.
odyssey
26th November 2007, 22:42
Here is a clip (http://www.megaupload.com/?d=8F5HKZYF).
This has two stable scenes with objects moving I'd like stabilized, as well as panning (causing a problem with Depan) and unstable backlight.
How can I fix some of this?
rfmmars
30th November 2007, 00:22
I had post this on the wrong thread.
This was the best I could do.
http://img144.imageshack.us/my.php?image=chromapt4.jpg
Richard
TheRyuu
30th November 2007, 02:31
This one was a hard one.
That's one dirty, dirty source. :D
After some fiddling around in avsp for a bit I came up with the following. I'm sure there might be a better solution, but mine sort of works. I didn't tweak Despot at all, but it eliminates most of the spots.
Mine smooths it, maybe oversmooths it, but it kills the noise (at least most of it).
I really didn't wanna spend that much time on it, so it's not fully "tweaked" yet (sigma=8 in fft3dfilter is an example :D)
MPEG2Source("C:\Documents and Settings\Dragon\My Documents\Encoding\doom9help\clip2.d2v",info=3,cpu=6)
tfm(d2v="C:\Documents and Settings\Dragon\My Documents\Encoding\doom9help\clip2.d2v").tdecimate()
colormatrix(hints=true)
Crop(8, 2, -8, -2)
Spline36Resize(640,480)
DFMDeRainbow()
BiFrost(scenelumathresh=5,variation=5)
HQDering()
removegrain(mode=1)
deen("a2d",1,8,11)
Deblock_QED_MT2()
DeSpot(median=false)
fft3dfilter(sigma=4,bt=4,plane=0)
fft3dfilter(sigma=8,bt=4,plane=3)
Deblock()
o = last
Assumeframebased().AssumeTFF().SeparateFields()
dbl = mt_Average( SelectEven().EEDI2(field=1,maxd=4),
\ SelectOdd() .EEDI2(field=0,maxd=4), U=3,V=3 )
dblD = mt_MakeDiff(o,dbl,U=3,V=3)
shrpD = mt_MakeDiff(dbl,dbl.RemoveGrain(11),U=3,V=3)
DD = shrpD.Repair(dblD,13)
dbl.mt_AddDiff(DD,U=3,V=3)
TemporalCleaner()
dull=last
sharp=dull.LimitedSharpenfaster(ss_x=1.5, ss_y=1.5, smode=4, strength=150)
Soothe(sharp,dull,25)
fastlinedarkenmod(strength=35)
awarpsharp(depth=8,cm=1)
antialiasing()
Pookie
30th November 2007, 07:31
So many things wrong with this footage.
http://img503.imageshack.us/img503/3006/79585554at4.th.jpg (http://img503.imageshack.us/my.php?image=79585554at4.jpg)
1) Blends (which I think can actually be fixed/almost fixed by good IVTC and decimation, or Momonster's script)
2) Flicker (lots of flicker from frame to frame. Good luck stabilizing that)
3) Rainbowing and the "green gunk" (very difficult to eliminate)
Don't waste your time. Find a better source, unless there isn't one.
odyssey
30th November 2007, 21:23
#4/#6: No, it definately doesn't blend. Use Telecide, and deinterlacing is fine. I have two sources a PAL and NTSC, but they are obviously the exact same source. It's hard to find proper sources for the old Disney material.
It has a lot of flicker yes. Reducing of it would be great, but I'm more interrested in stabilizing the picture.
It has just very little of the green junk. I saw a plugin somewhere that might help eliminate that.
#5: Thanks. I'll try that out :)
odyssey
30th November 2007, 23:00
#5: I'm stuck. Just spent a few hours harvesting filters and scripts, but I did not find much reference to the mt_makediff mt_average and mt_adddiff functions. Where do I find them??
Edit: Nevermind. I had an outdated masktools. But still I run into trouble. With MaskTools 2 loaded, DFMDeRainbow script complains that no function is named "MaskedMerge".
Dark Shikari
30th November 2007, 23:07
#5: I'm stuck. Just spent a few hours harvesting filters and scripts, but I did not find much reference to the mt_makediff mt_average and mt_adddiff functions. Where do I find them??That's masktools.
odyssey
30th November 2007, 23:11
That's masktools.
I just figured, but as edited above, I now has another problem.
TheRyuu
30th November 2007, 23:12
That's masktools.
Yea, script needs masktools v2, and maybe masktools v1 too (I forget :P)
Also needs deen, despot, fft3dfilter, removegrain, bifrost, eedi2, temporalcleaner, and maybe more :D.
You'll also need the functions of LSF, DFMDerainbow, deblock_qed_mt2, fastlinedarkenmod, HQDering, and antialiasing.
:D
Like I said, I have no idea if that script is the best solution to the problem (probably isn't) but it's a starting point.
Pookie
30th November 2007, 23:32
At least try to deflicker before running the noise reduction filters - they'll work better that way. Fizick's deflicker filter is pretty good and I think DG has one as well. Kassandro's reduceflicker dll is prone to smearing. To my eyes, it seems like the flicker is more pronounced in the center of the image, like old 8mm films.
odyssey
30th November 2007, 23:38
Also I need the Deblock_QED_MT2 script. I were able to find a Deblock_QED function (branded as Deblock_QED_MT2 on a page, but the function name is just Deblock_QED). I guess it's not the right one. Can you provide the nessesary script?
Also I need "MaskedMerge"
odyssey
30th November 2007, 23:40
At least try to deflicker before running the noise reduction filters - they'll work better that way. Fizick's deflicker filter is pretty good and I think DG has one as well. Kassandro's reduceflicker dll is prone to smearing. To my eyes, it seems like the flicker is more pronounced in the center of the image, like old 8mm films.
Deleted. I misread it. The Deflicker is quite good!
Anyone with experience on Depan with film material? Depan works great, but after using it the film is still moving slowly to each side. I'd like it to use a larger framescale as reference, and although this is supported, it doesn't seem to improve the result remarkably - Just reducing the speed.
foxyshadis
1st December 2007, 10:25
Also I need the Deblock_QED_MT2 script. I were able to find a Deblock_QED function (branded as Deblock_QED_MT2 on a page, but the function name is just Deblock_QED). I guess it's not the right one. Can you provide the nessesary script?
Also I need "MaskedMerge"
Same script, different name; some people just like to have all the variations and thus need different names for them all. Both variations are functionally the same, anyway.
MaskedMerge is part of masktools (not mt_masktools aka masktools 2), but you can also replace it with mt_merge and it'll work the same.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.