Log in

View Full Version : suggestion to improve vhs quality


FlaShow
8th October 2010, 21:16
Hi there,

I'm trying to improve the quality for my vhs video file and i want some help to do that. The test i do is by using VirtualDub with some filters:
MSN Cartoon Restore, MSN Old Color Restoration, Media filter and brightness/conrtast. This is the result:

Original:
http://img411.imageshack.us/img411/8079/jongar01avisnapshot0049.jpg
http://img820.imageshack.us/img820/9854/jongar01avisnapshot0147.jpg
http://img99.imageshack.us/img99/2133/jongar01avisnapshot0000.jpg
http://img143.imageshack.us/img143/5870/jongar01avisnapshot0008.jpg
http://img514.imageshack.us/img514/627/jongar01avisnapshot0035.jpg
http://img843.imageshack.us/img843/7550/jongar01avisnapshot1251.jpg
http://img830.imageshack.us/img830/8901/jongar01avisnapshot1952.jpg

Filtered:
http://img217.imageshack.us/img217/849/jongar01f1avisnapshot00.jpg
http://img521.imageshack.us/img521/849/jongar01f1avisnapshot00.jpg
http://img713.imageshack.us/img713/849/jongar01f1avisnapshot00.jpg

Sample:
http://www.mediafire.com/?oi2ekhewcuhnzhd


Best Regards,
FlaShow

StainlessS
8th October 2010, 22:30
Much nicer result that the original, however, should you like
any kind of advice, might be a good idea to give a short sample
for the boys and girls to play with. It probably dont matter
here what you used to achieve the result under VD,
we/they dont deal with that here. (personally love VD but as a
secondary tool nowadays). Provide a few frames for the
experts to deal with and perhaps they can help you.

Usedocne
9th October 2010, 05:10
@FlaShow

Your filtered version looks surprisingly good compared to the original. If your giving avisynth a try though. I'd suggest maybe trying Stab() (http://avisynth.org/mediawiki/Stab) and LSFmod() (http://forum.doom9.org/showthread.php?t=142706&highlight=LSFmod) to lessen the jitter and sharpen the image.

Mounir
9th October 2010, 09:29
I suggest you have a look at this topic (http://forum.doom9.org/showthread.php?t=134078) FlaShow and post the results here

Dogway
10th October 2010, 00:29
Colors are still a bit off, you can also use a line thinner, and as suggested some stabilisation filter and despot.

http://img836.imageshack.us/img836/3224/avisynth.png

FlaShow
10th October 2010, 13:11
@StainlessS
Thanks for the advice...

@Usedocne
I will see this filter what can do...?!

@Mounir
The result is green screen...?!

@Dogway
Good work :) can you post your script. please?!


I do my second test and get better than my first try:
http://img89.imageshack.us/img89/4238/jongar01avisnapshot0927.jpg
http://img145.imageshack.us/img145/5656/jongar01avisnapshot0935.jpg
http://img545.imageshack.us/img545/6173/jongar01avisnapshot1004.jpg


Cheers :)

Tommy B.
11th October 2010, 12:23
Try this:

avisource("Jongar01.avi")

super = MSuper(pel=2)
backward_vec2 = MAnalyse(super, isb = true, delta = 2, chroma=true, blksize=16,overlap=8, search=3)
backward_vec1 = MAnalyse(super, isb = true, delta = 1, chroma=true, blksize=16,overlap=8, search=3)
forward_vec1 = MAnalyse(super, isb = false, delta = 1, chroma=true, blksize=16,overlap=8, search=3)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, chroma=true, blksize=16,overlap=8, search=3)
MDegrain2(super, backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=600)

crop(2,4,-2,-2)

#bilinearresize(720,544)
aaa(720,544)

sharpaamcmod()
awarpsharp2(48,2)


FastLineDarken(strength=128)
limitedsharpenfaster(smode=3, strength=150)


frfun7(2)

You'll need:
MVtools (Mdegrain2 kills noise and randomly occuring frame-errors like dust)
sharpaamcmod (for nice anti-aliasing - available in "AnimeIVTC" - this one improves the quality very much)
AnimeAntiAliasing script (AAA resizing)
awarpsharp2
FastLineDarken (though there is not much effect)
limitedsharpenfaster (should be available in MaskTools v2)



Result:
http://img2.imageshack.us/i/jongarquitenice.jpg/

FlaShow
12th October 2010, 17:36
@Tommy B.

thanks very good result. can you post a link for FRFun7.dll file. please ?!

Tommy B.
12th October 2010, 19:47
Here you go!

FlaShow
13th October 2010, 12:31
Thanks Tommy but i can't download the attachment it says "Attachments Pending Approval"

Didée
13th October 2010, 13:38
http://www.64k.it/andres/dettaglio.php?sez=avisynth

specifically

http://www.64k.it/andres/data/avisynth/frfun7_rev6.zip

FlaShow
13th October 2010, 18:05
thanks Didee :)

@Tommy B.
The script run successfully but the result is green screen...?!
http://img692.imageshack.us/img692/6233/46427754.jpg

Hagbard23
13th October 2010, 18:07
Try it without FastLineDarken - i had the same problem some days ago and the error was from FastLineDarken.

Why?

I do not know.. ;)

Didée
13th October 2010, 18:31
Because the "original" fastlinedarken does not set the U=3,V=3 parameters in some masktools-function(s). I have posted corrected versions several times. You search.

FlaShow
13th October 2010, 18:31
thanks Hagbard23 but When i remove FastLineDarken i the result is the same as original video...?!

Tommy B.
13th October 2010, 21:36
You can remove FastLineDarken - the results should stay nearly the same.

FlaShow
14th October 2010, 17:35
thanks Tommy :) and i use some VirtualDub to make the color look better...


Best Regards,
FlaShow

tengo6dedos
16th October 2010, 20:01
Hello how are you,

I think Tommy B sharpening suggestion is insanely high!, I do agree that with a high warpsharp you make the ugly old lines look a lot better but that is a little to much.

I have a color suggestion to add, i made it so you can tweak and play more with it and with whatever source you got, the denoising/sharpening are just simple filter lines.


AGC_max_sat=1.3 AGC_max_gain=2.3 # HDRAGC color saturation and Gain
Red=-0 Blue=-4 # red and blue tint change of coloryuv
TweakSat=1.0 # the sat of Tweak
gamma=.6 # gamma tweak of Levels


AVISOURCE("D:\d/Jongar01.avi")


#simple denoising/sharpening
dfttest()
aWarpSharp2(thresh=160, blur=3, depth=16, chroma=4)
gradfun2dbmod()

#colors, The important part, tweak it in the 4 first lines.
coloryuv(off_U=Blue,off_V=Red).tweak(sat=TweakSat)
HDRAGC(coef_gain=2.0,max_gain=AGC_max_gain,min_gain=0.5,max_sat=AGC_max_sat,shadows=true).levels(0,gamma,255,0,255)



COLORS Original vs Filtered

http://img412.imageshack.us/img412/7317/robot1.png

http://img412.imageshack.us/img412/6358/robot4.png
http://img412.imageshack.us/img412/8007/robot6.png
http://img412.imageshack.us/img412/8236/robot5.png



For the color part of the script, the important part, you just need HDRAGC plugin, get it from here http://strony.aster.pl/paviko/hdragc.htm , the denoise part are very easy to find filters.

For the spots checkout this thread: http://forum.doom9.org/showthread.php?t=154725




Good Luck!
Saluts

Tommy B.
16th October 2010, 20:36
That's not awarpsharp2's settings but sharpaamcmod() which "thins" the lines (in fact way better than awarpsharp does).

Didée
16th October 2010, 21:33
Thinning by sharpaamcmod is due to usage of awarpsharp2. Any serious line thinning is based on the WarpSharp methodology. The only one not based on WarpSharp is the one implemented in FastLineDarken, but really, it's not that awfully good for thinning.