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. |
14th March 2021, 13:02 | #63 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
I use it in x64 only
__________________
See My Avisynth Stuff |
14th March 2021, 13:11 | #64 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
A few things about that script...
With that in mind, the following script: Code:
ColorBars(pixel_type = "yv12") Variance = 4.0 # GBlur(3, sqrt(Variance), u = true, v = true) # BinomialBlur(Variance, u = 3, v = 3) FastBlur(sqrt(Variance), gamma = false) FastBlur: 837fps BinomialBlur: 775fps GBlur (x86): 321fps Curiously though, BinomialBlur starts off at around 630fps, speeds up a bit fairly quickly then continues to creep up until it hits 775fps, whereas FastBlur starts off at over 1000fps before descending to 837fps. It doesn't seem to have a memory leak though - CPU usage drops from 100% to 82% for some reason. I'll look into that. I think it may be a multithreading issue. I've got 12 logical cores, but if I reduce multithreading to 4, I can get FastBlur to a constant 1200fps. I may add a parameter to control the number of threads, because I suspect it's going to be one of those things which doesn't have a "best for everyone" solution. Also BinomialBlur suffers greatly if Variance is increased, e.g. to 40: FastBlur: 789fps GBlur (x86): 292fps BinomialBlur: 115fps Last edited by wonkey_monkey; 14th March 2021 at 14:31. |
14th March 2021, 15:35 | #65 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
edit: I use all them like this to replace BinomialBlur in YAHRmask since BinomialBlur didn't get update since many years! I did another test Code:
ColorBars(pixel_type = "yv12") Variance = 4.0 rad=round(Variance*2) converttoy8.FastBlur(sqrt(Variance),iterations=rad,gamma=false) edit: forget to mention that both BinomialBlur and gblur use about 10% from cpu, While FastBlur use about 75%-85%
__________________
See My Avisynth Stuff Last edited by real.finder; 14th March 2021 at 15:49. |
|
14th March 2021, 16:07 | #66 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Settings iterations=rad makes no sense for FastBlur. Leave it at the default (3).
I'm also uncertain of the logic of setting grid=rad for gblur. grid=3 is much faster with only very little difference to the pixels (similar to what happens when increasing iterations for FastBlur). There also seems to be a border issue with gblur: |
15th March 2021, 17:47 | #67 | Link | ||
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
FastBlur(sqrt(Variance),iterations=2,gamma=false) now it's real fast blur , but I think it need more parameters for setting MT and control which planer to processes Quote:
yes that why I use padding for it, vcmohan say this too
__________________
See My Avisynth Stuff |
||
16th March 2021, 01:43 | #68 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Now has a threads parameter to set the number of threads. Defaults to half the number of logical processors minus 1, or 2, whichever is greater (unless you only have one logical processor, in which case: 1). Set threads to 0 to use all available logical processors, or use a floating pointer between 0 and 1 as a multiplier on the number of local processors, e.g. to use 3/4 of them, set threads to 0.75.
http://horman.net/avisynth/download/FastBlur.zip |
16th March 2021, 15:49 | #69 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
16th March 2021, 16:19 | #70 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
|
|
16th March 2021, 17:31 | #71 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Code:
int Y = 3 int U = 2 int V = 2 Controls which planes the filter is applied to: 3 : corresponding plane will be filtered 2 : corresponding plane will be copied from the source 1 : corresponding plane will be ignored from 0 to -255 : corresponding plane will be assigned the absolute value.
__________________
See My Avisynth Stuff |
|
16th March 2021, 18:36 | #72 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
If you're making a mask and UV aren't needed anyway, just use ExtractY/ConvertToY8 first to delete them with no overhead.
It's just not in FastBlur's remit to monkey around with planes when the language already provides the tools. |
16th March 2021, 18:48 | #73 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Monkey See, Monkey do
__________________
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 ??? |
16th March 2021, 18:57 | #74 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
simple test, mt_convolution use u=v=1 by default Code:
ColorBars(pixel_type = "yv12").trim(0, 5000) CombinePlanes(ExtractY().mt_convolution("2 1 2"),last,planes="YUV",sample_clip=last) Frames processed: 5001 (0 - 5000) FPS (min | max | average): 160.1 | 293.2 | 280.3 Process memory usage (max): 73 MiB Thread count: 16 CPU usage (average): 8.0% Time (elapsed): 00:00:17.841 Code:
ColorBars(pixel_type = "yv12").trim(0, 5000) mt_convolution("2 1 2") Frames processed: 5001 (0 - 5000) FPS (min | max | average): 154.7 | 298.2 | 280.4 Process memory usage (max): 71 MiB Thread count: 16 CPU usage (average): 7.9% Time (elapsed): 00:00:17.838
__________________
See My Avisynth Stuff |
|
16th March 2021, 19:16 | #75 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
In any case, your two scripts produce potentially different outputs anyway. Separating, then recombining, U and V with Y is not the same as ignoring U and V completely. Not sure why your memory usage is so high. I'd try removing a few plugins and see if it changes. Last edited by wonkey_monkey; 16th March 2021 at 19:30. |
|
17th March 2021, 20:04 | #76 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
ok, so I did update things in some of the scripts I maintain to use fastblur
they now get more fps than old BinomialBlur, hopefully the source code is complete so in any case in the avs+ future update anyone can update things for fastblur too
__________________
See My Avisynth Stuff |
30th September 2021, 06:43 | #77 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,829
|
wonkey_monkey,
I've been using FastBlur to blur an overlay mask and I've experienced some wonkiness with large amounts of blurring. Here's an example. Change the value for Blur to 46 and there's no longer any unhappiness. I'm using the current x86 version but the same applies to FastBlur 0.2.1 BlankClip(pixel_type="YV12", width=480, height=540) KillAudio() AddBorders(240, 0, 240, 0, color=$FFFFFF) ColorYUV(Levels="TV->PC") FastBlur(44, y_blur=0, iterations=3, dither=true) Click for the full size version. Last edited by hello_hello; 30th September 2021 at 07:00. |
30th September 2021, 15:59 | #78 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Yip, even my eyes can see horizontal lines, and note Top Left Hand side corner [EDIT: of black bar], is sorta rounded.
[dont now what them there dots are at left and right edges, result of dither?] EDIT: Horizontal bars, some kind of 'beat/moire' pattern due to y_blur and dither ?
__________________
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 ??? Last edited by StainlessS; 30th September 2021 at 16:13. |
30th September 2021, 18:24 | #79 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
The black dots are an overflow from dithering, which shouldn't happen but obviously does, and which I'll look into. |
|
30th September 2021, 19:17 | #80 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
in pub on 8 inch tablet, not seeing horizontal bar, nor rounded t.l.h.s corner.
__________________
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 ??? |
|
|