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. |
16th September 2021, 19:35 | #1 | Link |
Registered User
Join Date: Nov 2010
Posts: 13
|
RemoveDirt
I'm new to the world of AviSynth scripting and need some help. I've been trying to get Pinterf's RemoveDirt working for about a week with no luck. I have the latest versions of AviSynth+ and AvsPmod installed as well as the x64 version of RemoveDirt. The script seems right since AvsPmod doesn't through up any errors, however when I export the clip it doesn't seem to have removed any dust or hair or anything. The script I'm using came from the RemoveDirt site:
Code:
function RemoveDirt(clip input, bool "_grey", int "repmode") { _grey=default(_grey, false) repmode=default(repmode, 16) clmode=17 clensed=Clense(input, grey=_grey, cache=4) sbegin = ForwardClense(input, grey=_grey, cache=-1) send = BackwardClense(input, grey=_grey, cache=-1) alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode ) restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode) corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey) return RemoveGrain(corrected, mode=clmode, modeU = _grey ? -1 : clmode ) } |
16th September 2021, 21:49 | #3 | Link |
Registered User
Join Date: Nov 2010
Posts: 13
|
This is the full script I have in AvsPmod.
Code:
FFVideoSource("E:\movie.mkv") function RemoveDirt(clip input, bool "_grey", int "repmode") { _grey=default(_grey, false) repmode=default(repmode, 16) clmode=17 clensed=Clense(input, grey=_grey, cache=4) sbegin = ForwardClense(input, grey=_grey, cache=-1) send = BackwardClense(input, grey=_grey, cache=-1) alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode ) restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode) corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey) return RemoveGrainHD(corrected, mode=clmode, modeU = _grey ? -1 : clmode ) } Last edited by thunderclap; 16th September 2021 at 23:51. |
17th September 2021, 00:23 | #7 | Link | |
Registered User
Join Date: Nov 2010
Posts: 13
|
Quote:
Code:
FFVideoSource("E:\movie.mkv") RemoveDirt() # same as RemoveDirt(last, _grey=false, repmode=16) function RemoveDirt(clip input, bool "_grey", int "repmode") { _grey=default(_grey, false) repmode=default(repmode, 16) clmode=17 clensed=Clense(input, grey=_grey, cache=4) sbegin = ForwardClense(input, grey=_grey, cache=-1) send = BackwardClense(input, grey=_grey, cache=-1) alt=Repair(SCSelect(input, sbegin, send, clensed, debug=true), input, mode=repmode, modeU = _grey ? -1 : repmode ) restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode) corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey) return RemoveGrainHD(corrected, mode=clmode, modeU = _grey ? -1 : clmode ) } |
|
|
|