View Single Post
Old 20th January 2021, 12:10   #1  |  Link
knack_liek
Registered User
 
Join Date: Jan 2021
Posts: 1
Avisynth script to remove grain, spots, lines, scratches and dirt.

I am new to the world of Avisynth coding, but I have managed to create (by reading guides to find and download the various necessary plugins), through AvsPmod, a script for removing grain, dirt, lines, scratches and spots.
I did a lot of research to make sure that I have included in the source code sheet everything necessary for the script to work in the correct order, also thanks to the powerful AvsPmod debugging tool.
However, I see no difference in the output of the scripted video file.
Did I write something wrong or is the script missing some basic commands (I attach the script I write below)?
Let me know!



Code:
import("C:\Program Files (x86)\AviSynth\plugins\RemoveDirtMC.avs")
DirectShowSource("videosource", fps= 29.97, convertfps=true)
ConvertToYV12(matrix="rec709")
RemoveDirt(20,false)


DirectShowSource("videosource", fps= 29.97, convertfps=true)
ConvertToYV12(matrix="rec709")
RemoveGrain() 
TurnRight() 
RemoveGrain() 
TurnLeft()


DirectShowSource("videosource", fps= 29.97, convertfps=true)
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\despot.dll")
ConvertToYV12(matrix="rec709")
DeSpot(p1=35, p2=14, mthres=25)


DirectShowSource("videosource", fps= 29.97, convertfps=true)
ConvertToYV12(matrix="rec709")
even = SelectEven().RemoveDirt(80, false)
odd = SelectOdd().RemoveDirt(80, false)
Interleave(even, odd).RemoveDirt(80, false)
knack_liek is offline   Reply With Quote