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 19th December 2022, 19:49   #261  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
After a few days of experiments, I thought I will post my findings.

Sometimes I used
Code:
Despot(mthres=16,p1=24,p2=12,pwidth=4,pheight=4,ranked=true,sign=-1,maxpts=0,p1percent=10,show=0)
to remove small white star(ish) shaped defects. It worked to a point and fast too. However when you have outdoors scenes with trees, bushes, grass, etc, then the small white areas in the trees, for example, get removed and the trees will now flicker insanely when played back. Spotless doesn't have this problem because it use previous and next frames in its calculation.

The experiment is to get Spotless to do what DeSpot does.

The answer is
Code:
SpotLess(BlkSz=8, OLap=8/2, pel=1, Tm=False, Bblur=0.0, ThSAD=200, RadT=1)
Yes ThSAD is 200 and it is not a typing error ok. You can go as low as 150 for
Code:
Despot(mthres=16,p1=24,p2=12,pwidth=3,pheight=3,ranked=true,sign=-1,maxpts=0,p1percent=10,show=0)
StainLesss, is it possible to add a 'sign' syntax like Despot has. Currently DeSpot 'sign' syntax is

Quote:
sign = 0 - any spots and outliers (default)
sign = 1 - only black (dark) spots and outliers
sign = -1 - only white (light) spots and outliers
sign = 2 - only black (dark) spots, any outliers
sign = -2 - only white (light) spots, any outliers
Just curious if white or black only options, and white and black option, totalling 3 options. The rest of the colours are ignored since I have never come across coloured star(ish) shaped defects that flickers.
coolgit is offline   Reply With Quote
Old 21st December 2022, 02:22   #262  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
I would not really like to include that in SpotLess() function,
best I can suggest is make some kind of mask by combining source chroma close to 128, and luma hi/low, and use only results
of Spotless where masks comply with required.

There are others here way better than I at masking stuff, perhaps someone else can assist on that,
I also got my hands quite full with non AVS related stuff.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 21st December 2022, 23:04   #263  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
What about doing luma or chroma only.
The thing is when i used Spotless to mimic DeSpot, it takes 30 mins extra to compress for an hour video clip.
I just thought if it does luma only then it would be faster.
coolgit is offline   Reply With Quote
Old 21st December 2022, 23:46   #264  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Try Chroma = false
Have you tried spotless with Prefetch() ?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 21st December 2022 at 23:50.
ChaosKing is online now   Reply With Quote
Old 22nd December 2022, 01:38   #265  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
Prefetch yes as always.

Not sure what to do with chroma=false?

I am looking for a filter that separates luma and chroma, then i could use Spotless on luma, then merge new luma with chroma.
coolgit is offline   Reply With Quote
Old 22nd December 2022, 05:04   #266  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
Quote:
Source whatever...

Luma=SpotLess(src, BlkSz=8, OLap=8/2, pel=1, Tm=False, Bblur=0.0, ThSAD=900, RadT=1)
MergeLuma(src, Luma)
StackHorizontal(src,last)
Tried the above and seems to work. ThSAD needs to be 800 to 1000 to do the same as SpotLess(BlkSz=8, OLap=8/2, pel=1, Tm=False, Bblur=0.0, ThSAD=200, RadT=1).

Testing to see if it will work faster.

EDIT: Much later... The above took 2 minutes longer than SpotLess(BlkSz=8, OLap=8/2, pel=1, Tm=False, Bblur=0.0, ThSAD=200, RadT=1). Crap idea.

Last edited by coolgit; 22nd December 2022 at 14:06.
coolgit is offline   Reply With Quote
Old 22nd December 2022, 12:57   #267  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
converttoyv12(matrix="rec601",interlaced=true) #
separatefields()
input=last
U = UToY().SpotLess() #
V=VToY().SpotLess() #
YToUV(U,V,last)
weave()
Mounir is offline   Reply With Quote
Old 22nd December 2022, 16:24   #268  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
Quote:
Originally Posted by Mounir View Post
converttoyv12(matrix="rec601",interlaced=true) #
separatefields()
input=last
U = UToY().SpotLess() #
V=VToY().SpotLess() #
YToUV(U,V,last)
weave()
Tried it and didn't work.
coolgit is offline   Reply With Quote
Old 22nd December 2022, 18:49   #269  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
Converting image to greyscale doesn't reduce Spotless processing time. DeSpot works differently and i am not sure why.
Despot took 1 minute extra to compressed whereas SpotLess took 30 to 32 minutes extra.
coolgit is offline   Reply With Quote
Old 21st May 2023, 03:12   #270  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by StainlessS View Post
I would not really like to include that in SpotLess() function,
best I can suggest is make some kind of mask by combining source chroma close to 128, and luma hi/low, and use only results
of Spotless where masks comply with required.

There are others here way better than I at masking stuff, perhaps someone else can assist on that,
I also got my hands quite full with non AVS related stuff.
Hi there! I'm kind of a newbie and I'm trying to employ your SpotLess script with 32bit Avisynth 2.6. I have your dll and the two support dll's that I believe were mentioned awhile back (mvtools2 and MedianBlur2) I tried running this script and I got a really weird error both when trying to preview with AVSMod and actually run the x264 CMD line. This is the script I was trying to run:

DirectShowSource("GC.mkv")
Import("C:\Program Files (x86)\AviSynth\plugins\Spotless.avsi")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\MSharpen.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\MedianBlur2.dll")
assumeTFF()
TFM().TDecimate()
crop(24,12,-16,-20) #crop the crud off
Spotless()
MSharpen()
#greyscale() #convert to B&W
addborders(20,16,20,16) #pad to 720x480


This was the error the preview showed:

Traceback (most recent call last):
File "avsp.pyo", line 9119, in OnMenuVideoPlay
File "avsp.pyo", line 14672, in PlayPauseVideo
File "avsp.pyo", line 13855, in ShowVideoFrame
File "avisynth.pyo", line 462, in GetFrame
WindowsError: exception: access violation reading 0xFFFFFFFF


I really appreciate any help because I would LOVE to try your script if I can get it to run, thanks!
Lathe is offline   Reply With Quote
Old 21st May 2023, 06:20   #271  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Lathe, please don't hijack and litter this thread as well. The problem is not with Spotless(), it's a problem between your chair and your keyboard. See all your other posts here and over at the VideoHelp forum. You call yourself a newbie with 1077 posts at doom9 in almost 20 years? Start with learning the basics of video and AviSynth. Sorry to be a bit harsh

Last edited by Sharc; 21st May 2023 at 06:45.
Sharc is offline   Reply With Quote
Old 21st May 2023, 07:21   #272  |  Link
Arx1meD
Registered User
 
Arx1meD's Avatar
 
Join Date: Feb 2021
Posts: 121
Lathe, try opening your video with L-SMASH-Works. DirectShowSource is often buggy.
Arx1meD is offline   Reply With Quote
Old 21st May 2023, 14:24   #273  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 217
Quote:
Originally Posted by Lathe View Post
crop(24,12,-16,-20) #crop the crud off
Spotless()
Spotless()
crop(24,12,-16,-20) #crop the crud off
coolgit is offline   Reply With Quote
Reply

Tags
denoise, despot, prefilter

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:16.


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