This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] How to run a simple script for Avisynth or Vapursynth?
#1
Good afternoon, I have a simple script for removing noise in the frame with my parameters, how can I run it in the program, tell me please?
# Load the video clip
clip = AVISource("path/to/video.avi")

# Remove black and white dots
clip = RemoveDots(clip, thresh=3, chroma=false)

# Remove large white or black scratches
clip = Flicker(clip, 2, 0, thresh=100)

# Remove white or black flakes of damaged film
clip = Repair(clip, mode="spatial", chroma=false)

# Return the processed clip
return clip

There is also a script for Vapursynth.
# Load the video clip
clip = core.imwri.Read("path/to/video.avi")

# Convert the clip to a cartoon
clip = core.stf.Toon(clip)

# Remove black and white dots
clip = core.dfttest.DFTTest(clip, sigma=3, chroma=false)

# Remove large white or black scratches
clip = core.fl.Flicker(clip, 2, 0, thresh=100)

# Remove white or black flakes of damaged film
clip = core.repair.Repair(clip, mode="spatial", chroma=false)

# Return the processed clip
return clip

Thanks!
Reply


Messages In This Thread
How to run a simple script for Avisynth or Vapursynth? - by Dmitry - 13.12.2022, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)