Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th April 2021, 10:52   #1  |  Link
algia
Registered User
 
Join Date: Oct 2018
Location: Italy
Posts: 4
Restore old vhs

Hi all,
I'm trying restore old vhs and this is the code I used

Code:
clip="C:\Users\alojal\Desktop\sample disk\ZIA ROSA\ZIAROSA-IN\zia rosa.mov"
video=FFMpegSource2(clip, atrack=-1).Crop(240,18,-240,-18).ConvertToYV12(interlaced=true)
FFMpegSource2(clip, atrack=-1)
Crop(24,18,-24,-18)
AssumeBFF()
QTGMC(preset="slow",FpsDivisor=2,ChromaMotion=false,border=true,ChromaNoise=true,DenoiseMC=true,NoiseDeint="Generate",StabilizeNoise=true,GrainRestore=0.0,Sharpness=2)
RemoveDirt(limit=10,_grey=false)
ConvertToRGB(matrix="Rec601", interlaced=false)
GamMac(LockChan=1,LockVal=130,RedMul=1,GrnMul=1,BluMul=0.9,Show=false,Verbosity=2,hith=0.5,loth=0.5,th=1,scale=2)
ConvertToYV12(interlaced=false)
FFT3DFilter(sigma=8, beta=1.0, plane=4, bw=16, bh=16, ow=8, oh=8, bt=3, kratio=3.0, sharpen=1.0, scutoff=0.3, svr=1.0, smin=4.0, smax=30.0, measure=true, interlaced=false, wintype=0, degrid=1.0, dehalo=1.0, hr=2.0, ht=50.0)
ChromaShiftSP(2,4)
DeHalo_Alpha(rx=2.0, ry=2.0, darkstr=1.0, brightstr=1.0, lowsens=50, highsens=50, ss=1.5)
LSFmod(defaults="slow", strength=39, kernel=12, preblur="OFF", secure=false, Szrp=2, Spwr=4, SdmpLo=4, SdmpHi=48, overshoot=1, undershoot=1, overshoot2=2, undershoot2=2, soothe=true, keep=20, edgemode=0, show=False, screenW=720, screenH=576)

StackHorizontal(video,last)
return last
after GamMac I see light blu haloing around the hair and in the wall
I would like, more shapness and some suggestion
thank you in advance
[IMG]
https://www.mediafire.com/view/tnrzk...ZIROS.png/file
[/IMG]
algia is offline   Reply With Quote
Old 24th April 2021, 16:06   #2  |  Link
Arx1meD
Registered User
 
Arx1meD's Avatar
 
Join Date: Feb 2021
Posts: 121
You need a color denoiser. Try using one of these: Veed, Cnr2 or CCD (Camcorder color denoise for VirtualDub).
As for me CCD gives the best result.
For example:
Code:
LoadVirtualDubPlugin("...\ccd_32bit.vdf", "ccd", 0)
ConvertToRGB()
AddBorders(10,0,0,0) #The source frame size (height and width) must be a multiple of 16.
ccd(30,1)
Crop(10,0,0,0)
ConvertToYV12()
Or try:
Code:
MiniDeen(radiusY=1, radiusUV=2, thrY=1, thrUV=20, y=2, u=3, v=3)
f3kdb(preset="medium/nograin", sample_mode=2)

Last edited by Arx1meD; 24th April 2021 at 16:09.
Arx1meD is offline   Reply With Quote
Old 25th April 2021, 08:11   #3  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Also, you may want to try MCDegrainSharp. It denoises and fixes other typical VHS issues without requiring tons of settings and tweaks. The defaults are good for most cases in my experience.
Sharc is offline   Reply With Quote
Old 26th April 2021, 10:05   #4  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
you're doing it wrong to begin with

You should crop only at the end of the script especially if you deinterlace right after

avisource()
assumetff (or bff) # TFF for vhs unless you have captured in DV !!
qtgmc("fast")
selecteven()
~Other filters~
crop()

Last edited by Mounir; 26th April 2021 at 15:51.
Mounir is offline   Reply With Quote
Old 26th April 2021, 11:36   #5  |  Link
lollo2
Registered User
 
lollo2's Avatar
 
Join Date: Aug 2017
Location: Italy
Posts: 113
Quote:
You should crop only at the end of the script espcially if you're deinterlace right after
Am I wrong or I read something different here?

https://forum.doom9.org/showthread.p...659#post690659

What is right?
lollo2 is offline   Reply With Quote
Old 26th April 2021, 11:56   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
You should use eg AssumeTFF() if necessary, as AssumeBFF() is the default.
Almost always TFF in PAL land, when interlaced, if PAL BFF interlaced, then problably done in error.

If cropped off part contains valid image, then may be useful to crop later and so
have a bit more image to use during deinterlace, however I would mostly crop first.
I'm not saying that Mounir is wrong, but perhaps he/she can give a reason for crop last.

EDIT: As your crop is left only (not top nor bottom) I dont see it making much difference,
although if crop first, then must comply with vertictal interlaced cropping restrictions due to
colorspace (chroma granularity) and interlacing. [ie multiples of 4 where interlaced YV12]
If cropping first makes you lose some image due to crop restrictions on interlaced,
might then be better to crop last. (So I would say not a concrete rule either way).
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 26th April 2021 at 12:15.
StainlessS is offline   Reply With Quote
Reply

Tags
restore, vhs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:25.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.