DSP8000
1st April 2007, 11:46
Hi guys,
After some researching & testing I found filters that can deal with VHS scratches, horizontal lines, noise...
I don't remember when was the last time that I've seen this kind of extreme VHS degradation. Originally recorded with Hi8 cam in 1975.
It is a home video from my godfather in his early days when he served the Australian Police. It is very valuable tape & I'm trying my best to help him out to put it on a DVD.
I've done some research & reading & the best that I can do is this script:
SetMemoryMax(512)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deflicker.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\descratch.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\RemoveDirt.avsi")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveDirt.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
AVISource("E:\VHS\vhscapture.avi")
ConvertToYV12()
AssumeBFF()
TDeint(mode=1)
DeSpot()
DeFlicker(scene=40)
DeScratch(mindif=2)
RemoveDirt()
fft3dfilter(sigma=2, bt=5, plane=4)
LimitedSharpenFaster(Smode=3)
AssumeBFF()
SeparateFields()
SelectEvery(4,0,3)
Weave()
Because the scratches are not fully removed I'm thinking of running 2 pass restoration
eg.
1 pass just DeScratch, Deflicker, DeSpot
2 pass the same but with crop, resize, denoising and sharpening
If anyone can help on this it will be very much appreciated, any suggestions are welcome.
My initial workflow was based on DeFlicker Read Me:
From DeFlicker Read Me:
The best results for films restoration within Avithynth probably may be achieved, for example, with a sequence:
1. Color, brightness correction (mostly insensitive to luma variation)
2. Global motion compensation (DePan - insensitive to luma variation)
3. Mean intensity stabilizer (Deflicker - sensitive to global motion (however and to local too) )
4. Local motion compensator (MVTools - sensitive to luma variation)
5. Temporal spots removing (DeSpot - sensitive to luma variation)
6. Temporal noise reduction (RemoveDirt, Dust, etc - sensitive to luma variation)
7. Spatial smoothing (Vaguedenoiser, etc - insensitive to luma variation)
8. Global motion stabilizing (DepanCompensate - insensitive to luma variation)
9. Coding
Here is a 3 seconds unprocessed HuffYUV sample (http://www.wikiupload.com/download_page.php?id=115500)
Any help is appreciated, :thanks:
After some researching & testing I found filters that can deal with VHS scratches, horizontal lines, noise...
I don't remember when was the last time that I've seen this kind of extreme VHS degradation. Originally recorded with Hi8 cam in 1975.
It is a home video from my godfather in his early days when he served the Australian Police. It is very valuable tape & I'm trying my best to help him out to put it on a DVD.
I've done some research & reading & the best that I can do is this script:
SetMemoryMax(512)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deflicker.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\descratch.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\RemoveDirt.avsi")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveDirt.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
AVISource("E:\VHS\vhscapture.avi")
ConvertToYV12()
AssumeBFF()
TDeint(mode=1)
DeSpot()
DeFlicker(scene=40)
DeScratch(mindif=2)
RemoveDirt()
fft3dfilter(sigma=2, bt=5, plane=4)
LimitedSharpenFaster(Smode=3)
AssumeBFF()
SeparateFields()
SelectEvery(4,0,3)
Weave()
Because the scratches are not fully removed I'm thinking of running 2 pass restoration
eg.
1 pass just DeScratch, Deflicker, DeSpot
2 pass the same but with crop, resize, denoising and sharpening
If anyone can help on this it will be very much appreciated, any suggestions are welcome.
My initial workflow was based on DeFlicker Read Me:
From DeFlicker Read Me:
The best results for films restoration within Avithynth probably may be achieved, for example, with a sequence:
1. Color, brightness correction (mostly insensitive to luma variation)
2. Global motion compensation (DePan - insensitive to luma variation)
3. Mean intensity stabilizer (Deflicker - sensitive to global motion (however and to local too) )
4. Local motion compensator (MVTools - sensitive to luma variation)
5. Temporal spots removing (DeSpot - sensitive to luma variation)
6. Temporal noise reduction (RemoveDirt, Dust, etc - sensitive to luma variation)
7. Spatial smoothing (Vaguedenoiser, etc - insensitive to luma variation)
8. Global motion stabilizing (DepanCompensate - insensitive to luma variation)
9. Coding
Here is a 3 seconds unprocessed HuffYUV sample (http://www.wikiupload.com/download_page.php?id=115500)
Any help is appreciated, :thanks: