View Full Version : Dogway's Filters Packs
madey83
21st February 2024, 11:05
hello,
i have silly question: Which prefilter from these below is weaker:
2 = strong median/gauss blur
3 = very strong median/gauss blur (IQMV -Variable Inter Quartile Median- filter)
4 = spatio-temporal median/gauss filter (IQMST)
and in what sources type would be better to use one from these?
simple_simon
23rd February 2024, 23:49
@Dogway, would you consider incorporating a grain function in Gradfun3plus that is similiar to the one in Gradfun2dbmod that only adds grain to areas of that frame that have been debanded?
I'm trying to deband some digital animation footage but the debanding doesn't survive encoding with x264 even at crf=18. I've tried using your Filmgrainplus after Gradfun3plus but that gives the whole image a grainy look that I don't want with digital animation. I just need enough grain in the debanded areas to prevent the encoder from reintroducing the banding.
rgr
24th February 2024, 18:06
Yes, I was going to suggest to update. I guess it works now.
But I had just downloaded QTGMC+ for the first time an hour earlier. I don't know why I downloaded the version "QTGMC 3.89 + mod by Dogway 2022, based on 3.382s". It will remain a secret.
At 10 bit depth it looks 20% faster. Great job :)
rgr
24th February 2024, 18:17
I uploaded also some of the updates for the last few months. Mainly ResizersPack, adding the 'sc' (SceneChange) argument so I can disable it in FillMissing stand alone function, to force RIFE to interpolate even if it's a big change.
I just downloaded FillMissing (version with " Add 'sc=false' to RIFEwrap to force MI by Dogway on Feb 18, 2024")
and I get:
Avisynth open failure: Script error: RIFEwrap does not have a named argument "sc" (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50)
Edit: ResizersPack I also downloaded the old version. But after updating I get:
Avisynth open failure: Script error RIFEwrap does not have a named argument "gpu_id" (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50)
Edit 2:After correcting the typo on line 50 (gpu_id -> gpuid)
"Avisynth open failure: RIFE: gpu_thread must be between 1 and 2 (inclusive) (C:/Program Files (x86)/AviSynth+/plugins64+/ResizersPack.aysi, line 667) (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50) "
On line 667, gpu_thread can take the values 2 or 4. Do I have a different version of RIFE?
kedautinh12
24th February 2024, 18:22
Did you update ResizerPack?
https://github.com/Dogway/Avisynth-Scripts/blob/master/ResizersPack.avsi
You need update all dependencies of fill missing to latest version
https://github.com/Dogway/Avisynth-Scripts/blob/7b5e37d4344e9221e5c8c7a793bfbd14fe32db61/EX%20mods/FillMissing.avsi#L17
kedautinh12
25th February 2024, 08:59
I just downloaded FillMissing (version with " Add 'sc=false' to RIFEwrap to force MI by Dogway on Feb 18, 2024")
and I get:
Avisynth open failure: Script error: RIFEwrap does not have a named argument "sc" (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50)
Edit: ResizersPack I also downloaded the old version. But after updating I get:
Avisynth open failure: Script error RIFEwrap does not have a named argument "gpu_id" (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50)
Edit 2:After correcting the typo on line 50 (gpu_id -> gpuid)
"Avisynth open failure: RIFE: gpu_thread must be between 1 and 2 (inclusive) (C:/Program Files (x86)/AviSynth+/plugins64+/ResizersPack.aysi, line 667) (C:/Program Files (x86)/AviSynth+/plugins64+/FillMissing.aysi, line 50) "
On line 667, gpu_thread can take the values 2 or 4. Do I have a different version of RIFE?
I think you need waiting for Dogway to fix it:D
kedautinh12
26th February 2024, 06:30
I got this error when tried SMDerain's latest ver:
My script:
LWLibavVideoSource("C:\Users\ADMIN\Downloads\LR_11.avi")
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false, gpuid=1)
https://i.imgur.com/BTRB6aF.png
Sample (https://u.pcloud.link/publink/show?code=XZyY2J0ZboiSEPCdj0B9cry9SdfE04fr2Ovy)
StainlessS
26th February 2024, 11:30
@K,
AVI Codec is "LAGS", Lagarith.
LWLibavVideoSource loads as RGBP (Planar RGB 8bit), try convert to YV12. (KNLMeansCL seems to require YUV).
I cant test, my setup KNLMeansCL requires BM3D_CUDA which I dont have. I seem to also have old version SMDegrain.
EDIT: My ver$ Smdegrain call to KnlMeansCL uses,
nlckl = Eval(" nlc.KNLMeansCL(D=d, A=a, h=h, s=s, device_type=device_type, device_id=deviceid, rclip=nlrc, wmode=wmode, wref=wref, channels=UV" + knlm_params + ")")
which I presume produces the KnlMeansCL "Must Use 'RGB' with RGB colorspace", error.
tormento
7th March 2024, 11:55
@Dogway
Just remembering you to look at the new DGDenoise :)
The syntax changed so the script is now broken.
tormento
9th March 2024, 18:22
I can sort out what do OPP and UV (and its values) in:
ex_BM3D(clip a, float "sigma", int "radius", string "preset", bool "OPP", int "UV", bool "tv_range", int "gpuid")
Any idea? I have tried to look at the avsi but can't understand the conditions.
And why do
ex_BM3D(preset="Light") or ex_BM3D(preset="light")
or
ex_BM3D(preset="Normal") or ex_BM3D(preset="normal")
sometimes spit out "Wrong preset" error?
kedautinh12
9th March 2024, 19:44
You need take a look at Dogway's script
https://github.com/Dogway/Avisynth-Scripts/blob/7b5e37d4344e9221e5c8c7a793bfbd14fe32db61/SMDegrain/SMDegrain.avsi#L1151
tormento
9th March 2024, 20:23
You need take a look at Dogway's script
https://github.com/Dogway/Avisynth-Scripts/blob/7b5e37d4344e9221e5c8c7a793bfbd14fe32db61/SMDegrain/SMDegrain.avsi#L1151
As I wrote:
I have tried to look at the avsi but can't understand the conditions.
I can't understand that the "obscure" parameters do or the values that can be applied.
kedautinh12
10th March 2024, 03:33
I just answer this question from you
And why do
ex_BM3D(preset="Light") or ex_BM3D(preset="light")
or
ex_BM3D(preset="Normal") or ex_BM3D(preset="normal")
Guest
10th March 2024, 04:15
I am puzzled about some sort of haloing or ringing that is random during certain scenes.
It's hard to detect on a PC monitor, but rather obvious on a large screen TV.
If someone would be good enough to download my 2 minute sample to "see" what I am on about, and get some suggestions.
https://www.mediafire.com/file/1rbcjtmcgv489c8/2+minute+sample.mkv/file (260Mb)
I'm thinking it might just be the phenomenon of "green screens" in the back ground.
If you pay particular attention to the horse riders as they ride passed the city wall, there's a "blurring" on some sort, surrounding them, but as they pass the gateway columns, into the gateway, the "blurring" disappears.
I've tried DeHalo_alpha, FineDehalo & HQDeringmod, to little affect :(
tormento
10th March 2024, 11:32
I just answer this question from you
I hoped it was case insensitive.
DVB-Freak
10th March 2024, 22:12
Hello,
I have a problem with this function.
When I load my script in VD2, it show me this error on the picture.
kedautinh12
11th March 2024, 01:22
You need use other image websites
Guest
11th March 2024, 01:44
You need use other image websites
This is FYI @DVB-Freak, for posting screenshots, etc.
Anything posted / attached here, takes a LONG time to be approved.
DVB-Freak
11th March 2024, 22:37
Here is the link to the image:
https://www.directupload.net/file/d/8490/ktjqm4bp_jpg.htm
My script:
FFVideoSource("C:\edit\Film.mkv")
FrameRateConverterMIX(Preset="RIFE", FrameDouble=true)
plugins:
ExTools v10.4 (09-01-2024)
Frame Rate Converter MIX v2.3.3 (10-10-2022)
rgr
16th March 2024, 12:17
Recently I have been testing QTGMCp. At 10 bits it is actually much faster than QTGMC, but the image quality is also lower - even worse than QTGMC at 8 bits.
The same settings: preset slower, TR=3.
Edit: I added it to Issues.
Left: QTGMCp (10bit)
Right: QTGMC (10bit)
https://i.imgur.com/KLx6bY0.png
kedautinh12
16th March 2024, 12:27
Lol, please upload your image to other image websites. The mod rarely approval your image from here
takla
19th March 2024, 02:58
@Dogway
I get the following error with FrameRateConverterMIX (https://raw.githubusercontent.com/Dogway/Avisynth-Scripts/master/MIX%20mods/FrameRateConverterMIX.avsi)
Evaluate: operands of "%" must be integers
ExTools.avsi, line 7509 (https://github.com/Dogway/Avisynth-Scripts/blob/master/ExTools.avsi#L7509)
DTL
19th March 2024, 15:46
Recently I have been testing QTGMCp. At 10 bits it is actually much faster than QTGMC, but the image quality is also lower - even worse than QTGMC at 8 bits.
The same settings: preset slower, TR=3.
Maybe you need to manually adjust thSAD values for each version of QTGMC script. For denoising part of this script.
From documentation http://avisynth.nl/index.php/QTGMC
ThSAD2 (0...) SAD threshold for block match on final denoising temporal smooth (TR2). Increase to strengthen final smooth (may smear/blur) Default: 256
If while increasing thSAD you got no-increase in denoise - it may mean sc-detector is active because of too high noise level. So you also need to set higher thSCD.
Guest
25th March 2024, 01:58
I just thought I'd bump this, as I was hoping for some sort of a reply :(
I'm sure this has been asked about many times, but...
Can you call SMDegrain (with different parameters) twice in the same script ??
If so, an example would be helpful.
Regards
takla
25th March 2024, 06:27
Can you call SMDegrain (with different parameters) twice in the same script ??
Regards
Yes you can. But why would you do that? It takes more CPU resources since the filter has to run twice.
To run it twice, use two lines with it...
Example
SourceFilter("input.mkv")
SMDegrain(blkSize=8)
SMDegrain(blkSize=32)
Guest
25th March 2024, 10:00
Yes you can. But why would you do that? It takes more CPU resources since the filter has to run twice.
To run it twice, use two lines with it...
Example
SourceFilter("input.mkv")
SMDegrain(blkSize=8)
SMDegrain(blkSize=32)
I will try this...there might be certain situations where the footage needs a 2nd "hit" with different parameters, that's all.
eg:- instead of a real heavy filter setting, use 2 lighter ones....
takla
25th March 2024, 13:08
I will try this...there might be certain situations where the footage needs a 2nd "hit" with different parameters, that's all.
eg:- instead of a real heavy filter setting, use 2 lighter ones....
Uhm no, thats not something you should do. Adjust TR for denoising strength and thSAD for how much noise is picked up.
Guest
27th March 2024, 09:47
Uhm no, thats not something you should do. Adjust TR for denoising strength and thSAD for how much noise is picked up.
This is only a curiosity script, I have some very specific & complex SMDegrain scripts I use :)
:thanks:
Dogway
29th March 2024, 20:50
Sorry for the delay, very busy these days. I'm updating a few things mentioned. Typos or minor QoL changes.
I just thought I'd bump this, as I was hoping for some sort of a reply :(
I'm sure this has been asked about many times, but...
Can you call SMDegrain (with different parameters) twice in the same script ??
If so, an example would be helpful.
Regards
You can run SMDegrain(mode="rMDegrain") and it will run MDegrain twice but with the same vectors. If you want to refine vectors simply run SMDegrain(RefineMotion=true). Or a suggestion from the docs, run SMDegrain as a prefilter for SMDegrain. Depends on what you want to do and source quality.
@Dogway
I get the following error with FrameRateConverterMIX (https://raw.githubusercontent.com/Dogway/Avisynth-Scripts/master/MIX%20mods/FrameRateConverterMIX.avsi)
The filter is working for me. That's in ex_bs() function, specifically in ibi = ibi-ibi%2 I think. 'ibi' is an int argument same as 'obi'. I'd need more info.
I got this error when tried SMDerain's latest ver:
My script:
LWLibavVideoSource("C:\Users\ADMIN\Downloads\LR_11.avi")
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false, gpuid=1)
SMDegrain doesn't officially support RGB, as stated in the script:
### Supports all Y, YUV and YUY2 clips progressive or interlaced between 8-16 bits.
tormento
30th March 2024, 16:07
Sorry for the delay, very busy these days.
Glad to have you back. :)
Please fix prefilter=7 in SMDegrain :devil:
Dogway
31st March 2024, 00:56
Updated SMDegrain to v4.6.0. Fixed ex_DGDenoise arguments, I don't quite like the search windows can't go now lower than 9, but at least I had implemented the LFR argument.
I also updated the manual with current versions of filters, etc.
tormento
31st March 2024, 11:15
I don't quite like the search windows can't go now lower than 9
AFAIK is because of speed optimizations. It seems that 9 is now a lot faster.
DVB-Freak
1st April 2024, 12:57
@Dogway
Can you look at post #2866? It's a simple script.
I updatet all to the newest versions. I add "ConvertBits(16)".
Nothing helps.
That may prove useful for some material I have with lots of troublesome dark areas. :)
New noise-resistant processing mode added to MAnalyse to make motion estimation in low contrast and high noised areas more stable - https://forum.doom9.org/showthread.php?p=1999795#post1999795 .
It is not complex in programming so expected to be added to 'stable' -e.XX builds to use in scripts like SMDegrain faster.
Currently this additional layer of MVs searching and averaging works at all levels (down to finest pel-level) so performance impact is great (though still about 2x faster in compare with number of new search runs added). In next releases I going to add option to limit 'area' mode additional search to only high levels down to pel=1 and it is expected to be several times faster while keeping most of accumulated quality at full-pel level.
Dogway
1st April 2024, 23:30
I updated FilmGrain+, I think the bugs in HBD are fixed now.
@Dogway
Can you look at post #2866? It's a simple script.
I updatet all to the newest versions. I add "ConvertBits(16)".
Nothing helps.
Post your script and error message.
DVB-Freak
2nd April 2024, 11:02
https://www.directupload.net/file/d/...jqm4bp_jpg.htm
My script:
FFVideoSource("C:\edit\Film.mkv")
FrameRateConverterMIX(Preset="RIFE", FrameDouble=true)
plugins:
ExTools v10.4 (19-02-2024)
Frame Rate Converter MIX v2.3.3 (10-10-2022)
Avisynth+ v3.7.3
DVB-Freak
2nd April 2024, 11:11
Sorry, here is the link to the error-message:
https://www.directupload.net/file/d/8490/ktjqm4bp_jpg.htm
Dogway
4th April 2024, 03:09
It's working for me, ensure you are in latest RIFE, GradePack and TransformsPack.
What is your source like, 422 or something out of the norm?
https://www.directupload.net/file/d/...jqm4bp_jpg.htm
My script:
FFVideoSource("C:\edit\Film.mkv")
FrameRateConverterMIX(Preset="RIFE", FrameDouble=true)
plugins:
ExTools v10.4 (19-02-2024)
Frame Rate Converter MIX v2.3.3 (10-10-2022)
Avisynth+ v3.7.3
Why don't you use RIFE directly?
FFVideoSource("C:\edit\Film.mkv")
convertbits(32).converttoplanarrgb(matrix="Rec709") # or other matrix
RIFE(model=5) # or 6
converttoyuv420(matrix="Rec709").convertbits(8,dither=0)
DVB-Freak
4th April 2024, 11:43
@Dogway
My source is BT.709 or YUV, it does no matter.
I've cleaned my pluginsfolder and put in the newest plugins.
The error remains.
@rgr
It was only a test. Actually is this my script:
ex_InterpolateDoubles(Preset="RIFE")
I hoped, that is the best quality. But it is the same error.
I give up now.
Thank you all
tormento
4th April 2024, 12:04
@Dogway
Do you plan to give the possibility to use SVPTools in your scripts?
@rgr
It was only a test. Actually is this my script:
ex_InterpolateDoubles(Preset="RIFE")
I hoped, that is the best quality. But it is the same error.
I give up now.
Thank you all
I don't know how this is supposed to give you better quality since it's the same as RIFE.
Guest
4th April 2024, 12:42
@Dogway
My source is BT.709 or YUV, it does no matter.
I've cleaned my pluginsfolder and put in the newest plugins.
The error remains.
@rgr
It was only a test. Actually is this my script:
ex_InterpolateDoubles(Preset="RIFE")
I hoped, that is the best quality. But it is the same error.
I give up now.
Thank you all
You need to provide the complete script !!
Are you using all the necessary dependancies ??
Some note about thSAD for MRecalculate: As I see it is currently hardcoded as halfthSADR. But it really complex adjustment for performance and performance/quality balance. It may be good to enable at least several control modes of thSAD for MRecalculate in scripting functions without direct control of thSAD for MRecalculate as script function param:
1. Force all new recalculated blocks refining search: set thSAD=0. Slowest mode but depending on source may make best quality (at least it can not make new MVs with more than searchparam offset from input MVs).
2. Sort of 'balanced/auto' - as today in SMDegrain. Average speed (also depends on noise level and thSAD settings).
3. Interpolate MVs only: set thSAD to 'very high' value like 1000 or more. May be average quality but fastest.
Today if user want to increase thSAD as input param to increase denoising in MDegrain - it also cause halfthSAD for MRecalculate to become larger and it passes more blocks with only interpolated MVs from input without real refining search. This may cause decreasing of MVs quality after MRecalculate and cause even more detail loss.
tormento
9th April 2024, 14:39
Is there any function in your scripts to convert chroma sampling position to other types, i.e. center to left etc?
Dogway
9th April 2024, 15:57
Is there any function in your scripts to convert chroma sampling position to other types, i.e. center to left etc?
Yes, ConvertFormat(). I'm on mobile so I can't post examples but on the explanation of the function I think you can see examples.
tormento
9th April 2024, 19:02
Yes, ConvertFormat(). I'm on mobile so I can't post examples but on the explanation of the function I think you can see examples.
It has so many switches that some examples would be helpful.
Can it be used when downsizing to half the original size, preserving chroma 4:2:0 to have 4:4:4 video?
I mean something like (thanks FranceBB)
Y = ConvertToY8(matrix="Rec709").DeBilinearResizeMT(960, 540, src_left=-0.50, src_top=0)
U = UToY8()
V = VToY8()
YToUV(U, V, Y)
Dogway
11th April 2024, 01:23
Deriving the offset values is a pain given the sheer number of variables (chroma subsampling, scale factor, etc).
I made the algorithm in line 1965 (https://github.com/Dogway/Avisynth-Scripts/blob/a02ab72341b3597b4aeaacb8d7f3bcb33a68849e/TransformsPack%20-%20Main.avsi#L1965)
ConvertFormat(cplace_in="left",cplace_out="center")
And you can specify the shifting kernel with 'kernel_c'
tormento
11th April 2024, 10:28
Do you have something similar or better than hysteria (http://avisynth.nl/index.php/Hysteria)in your scripts? I need to sharpen/line darken The dangers in my heart (https://forum.doom9.org/showthread.php?t=185425) anime, that is so blurry even from BD.
Dogway
11th April 2024, 12:22
Wow, the master is back!
If the blurring was too extreme I would recommend the model HurrDeblur, but in this case it's just "soft". Didée's trick with aWarpSharp2 with lowpass might work. As for line darkening/thinning I made a mod called FastLineDarkenPlus. Maybe give it a try, not sure how it compares to Hysteria.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.