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. |
4th December 2019, 17:29 | #4981 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
(@jpsdr, this fix probably affects your _MT resizer versions because they are using this source) |
|
5th December 2019, 06:24 | #4982 | Link |
Registered User
Join Date: Jan 2019
Location: Antarctica
Posts: 74
|
Hi, I briefly wanted to ask about SetFilterMTMode("",) + Prefetch(1) if this is still relevant or not reading the previous earlier threads about this but wasn't sure if this has changed or not and if it is still relevant if this is linked with the amount of RAM one has on their PC which I only got 8 gigs or and the amount of (weak and heavy) filters in the chain.
It crashes when I go Prefetch(2) and I'm also on a Ryzen 5 2nd generation 2600 CPU if that helps. |
5th December 2019, 07:27 | #4983 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I cant answer this, but you might want to provide a little more info for those that can.
Your script, & is it x86 or x64 Avs+.
__________________
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 ??? |
5th December 2019, 08:21 | #4984 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
Especially if you try to multi-thread QTGMC, be aware that it first will use as many EDI threads as cores, so using a higher prefetch value will multiply their threads even further; you may want to restrict that parameter in QTGMC when you have a CPU with many logical cores.
|
5th December 2019, 18:09 | #4986 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
__________________
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; 5th December 2019 at 18:17. |
|
5th December 2019, 19:15 | #4987 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Suppose I have two scripts, one of which imports the other. The first script gets a source:
Code:
source = AviSource("myfile.avi") Code:
source = VarExist(source) ? source : avisource("myfile.avi") |
5th December 2019, 20:05 | #4988 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Maybe try [quotes around source in VarExist]
Code:
source = VarExist("source") ? source : avisource("myfile.avi")
__________________
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; 5th December 2019 at 20:09. |
6th December 2019, 10:05 | #4990 | Link | ||
Registered User
Join Date: Jan 2019
Location: Antarctica
Posts: 74
|
Quote:
It's AviSynth+ 0.1.0 r2772 using the 32 bit version with the 10 bit hack pipeline for HEVC in MeGUI 2525. Script Code:
plugins and import address #rgtools SetFilterMTMode("removegrain", MT_NICE_FILTER) SetFilterMTMode("repair", MT_NICE_FILTER) SetFilterMTMode("verticalcleaner", MT_NICE_FILTER) SetFilterMTMode("clense", MT_NICE_FILTER) #medianblur SetFilterMTMode("medianblur", MT_MULTI_INSTANCE) SetFilterMTMode("medianblurtemporal", MT_MULTI_INSTANCE) SetFilterMTMode("average", MT_NICE_FILTER) SetFilterMTMode("TMaskCleaner", MT_MULTI_INSTANCE) SetFilterMTMode("checkmate", MT_NICE_FILTER) SetFilterMTMode("Deblock", MT_NICE_FILTER) SetFilterMTMode("msharpen", MT_MULTI_INSTANCE) SetFilterMTMode("TColorMask", MT_NICE_FILTER) SetFilterMTMode("Vinverse", MT_MULTI_INSTANCE) SetFilterMTMode("Vinverse2", MT_MULTI_INSTANCE) #masktools SetFilterMTMode("mt_invert", MT_MULTI_INSTANCE) SetFilterMTMode("mt_binarize", MT_MULTI_INSTANCE) SetFilterMTMode("mt_inflate", MT_MULTI_INSTANCE) SetFilterMTMode("mt_deflate", MT_MULTI_INSTANCE) SetFilterMTMode("mt_inpand", MT_MULTI_INSTANCE) SetFilterMTMode("mt_expand", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lut", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lutxy", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lutxyz", MT_MULTI_INSTANCE) SetFilterMTMode("mt_luts", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lutf", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lutsx", MT_MULTI_INSTANCE) SetFilterMTMode("mt_lutspa", MT_MULTI_INSTANCE) SetFilterMTMode("mt_merge", MT_MULTI_INSTANCE) SetFilterMTMode("mt_logic", MT_MULTI_INSTANCE) SetFilterMTMode("mt_convolution", MT_MULTI_INSTANCE) SetFilterMTMode("mt_mappedblur", MT_MULTI_INSTANCE) SetFilterMTMode("mt_makediff", MT_MULTI_INSTANCE) SetFilterMTMode("mt_average", MT_MULTI_INSTANCE) SetFilterMTMode("mt_adddiff", MT_MULTI_INSTANCE) SetFilterMTMode("mt_clamp", MT_MULTI_INSTANCE) SetFilterMTMode("mt_motion", MT_MULTI_INSTANCE) SetFilterMTMode("mt_edge", MT_MULTI_INSTANCE) SetFilterMTMode("mt_hysteresis", MT_MULTI_INSTANCE) SetFilterMTMode("AddGrainC", MT_MULTI_INSTANCE) # Source plugins SetFilterMTMode("DGDecode_mpeg2source",MT_NICE_FILTER) #seems to work fine as 1 SetFilterMTMode("TFM", MT_MULTI_INSTANCE) #2 is faster. 1 crashes randomly. SetFilterMTMode("TDecimate", MT_SERIALIZED) #1 gave error, 2 was slower than 3 SetFilterMTMode("TDeint", MT_MULTI_INSTANCE) # Mode 1 creates artifacts SetFilterMTMode("SmoothLevels", MT_MULTI_INSTANCE) # Mode 1 freezes # Filters from Dither 1.25.0. Tested by Firesledge (not extensively though) SetFilterMTMode ("DitherPost", MT_NICE_FILTER) SetFilterMTMode ("SmoothGrad", MT_NICE_FILTER) SetFilterMTMode ("Dither_box_filter16", MT_NICE_FILTER) SetFilterMTMode ("Dither_bilateral16", MT_NICE_FILTER) SetFilterMTMode ("Dither_limit_dif16", MT_NICE_FILTER) SetFilterMTMode ("Dither_resize16", MT_NICE_FILTER) SetFilterMTMode ("Dither_out", MT_NICE_FILTER) SetFilterMTMode ("Dither_removegrain16", MT_NICE_FILTER) SetFilterMTMode ("Dither_repair16", MT_NICE_FILTER) SetFilterMTMode ("Dither_median16", MT_NICE_FILTER) SetFilterMTMode ("Dither_add16", MT_NICE_FILTER) SetFilterMTMode ("Dither_sub16", MT_NICE_FILTER) SetFilterMTMode ("Dither_max_dif16", MT_NICE_FILTER) SetFilterMTMode ("Dither_merge16", MT_NICE_FILTER) SetFilterMTMode("NNEDI3", MT_MULTI_INSTANCE) SetFilterMTMode("FTurnLeft", MT_NICE_FILTER) SetFilterMTMode("FTurnRight", MT_NICE_FILTER) SetFilterMTMode("yadifmod", MT_NICE_FILTER) SetFilterMTMode("ContinuityFixer", MT_NICE_FILTER) ConvertBits(bits=8) #filter varies here, crop, continuityfix dither_convert_8_to_16() #deband filter with mask=0 banding, only when no choice f3kdbmod16() s16 = last DitherPost() ConvertBits(bits=8) FTurnRight() ##line darkening (Hysteria) filter sometimes here - 8 bit? #Anti-Aliasing filter, maa2 usually - 8 bit? FTurnLeft() dither_convert_8_to_16() s16.Dither_limit_dif16 (last, thr=0.25, elast=4.0) SmoothGrad() ly = GradFun3mod(thr=0.35,yuv444=true, resizer="DebilinearM", lsb_in=true, lsb=true) lc = nnedi3_resize16(1280*2, 720*2,lsb_in=true,lsb=true,kernel_d="Spline36",kernel_u="Spline36",src_top=0.0,src_left=0.50,nlsb=false) lu = lc.UtoY() lv = lc.VtoY() YtoUV(lu,lv,ly) DitherPost(mode=6) ConvertBits(bits=16) ConvertToStacked() #grain filter ConvertFromStacked().ConvertToDoubleWidth() Prefetch(1) I've also tried it using the 64 bit version with filters and did not see much difference tho I only did a few tests. Not sure why but when I use real.finder's maa2 anti-aliasing script https://forum.doom9.org/showthread.php?t=174121 when indexing the source it doesn't like each other and tend to get Access Violation. I have to use the script as Prefetch(0) to go thru then I have to edit the script back to Prefetch(1) to encode in MeGUI. Using older versions doesn't do this. If somebody can inform me on why this maybe occurring. Quote:
Last edited by dREV; 9th December 2019 at 20:49. |
||
6th December 2019, 12:51 | #4992 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
__________________
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 ??? |
|
6th December 2019, 15:41 | #4993 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Wonkey,
Quote:
above script would not work in Avs [you is mixin' avs script and C].
__________________
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 ??? |
|
6th December 2019, 17:34 | #4995 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I was suggesting that the trailing semi-colon would prevent it from working at full capacity, or at all
[even with auto appended lines] EDIT: perhaps the semi-colon was deliberate ?, to show where appended lines thing is force ended, is that it ?
__________________
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; 6th December 2019 at 17:44. |
6th December 2019, 20:48 | #4997 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
So, guess that if implemented as suggested, then to avoid massive parsing, we will have to have statement terminators like everywhere, all of the time,
is that the suggestion ? (henceforth all avs script needs statement terminators, tis a change that might prevent adoption, do you have any other ideas ?).
__________________
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 ??? |
6th December 2019, 21:30 | #4998 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
|
Quote:
You are bringing everything to 16bit stacked, filtering with f3kdb with 16bit precision, then you are using DitherPost as default to bring everything to 8bit to filter with maa2, lastly you're using DitherPost(mode=6) which is dithering with the Floyd Steinberg error diffusion, then you're converting it again from 8bit dithered to 16bit planar, then you're bringing it to stacked MSB and LSB again, you apply your denoise and then you convert from 16bit stacked to 16bit interleaved and you output it as interleaved. Why? Doesn't this make more sense? Code:
#Here we're telling f3kdb to take your 8bit source, filter it with 16bit precision and output 16bit stacked #Debanding 16bit stacked f3kdb(input_depth=8, output_mode=1, output_depth=16) #Now we're gonna truncate everything to 8bit, #apply anti-aliasing with maa2 and then use the original 16bit stacked we received from f3kdb #and apply only the changes made by maa2 thus retaining 16bit precision #antialiasing 8bit, 16bit stacked output s16 = last DitherPost (mode=-1) maa2() Dither_convert_8_to_16 () s16.Dither_limit_dif16 (last, thr=1.0, elast=2.0) #16bit stacked resize and debanding ly = GradFun3mod(thr=0.35,yuv444=true, resizer="DebilinearM", lsb_in=true, lsb=true) lc = nnedi3_resize16(1280*2, 720*2,lsb_in=true,lsb=true,kernel_d="Spline36",kernel_u="Spline36",src_top=0.0,src_left=0.50,nlsb=false) lu = lc.UtoY() lv = lc.VtoY() YtoUV(lu,lv,ly) #your 16bit stacked degrain filter Something() #16bit planar output (your target is x265 which will handle 16bit planar just fine; just remember to add --dither to the command line) ConvertFromStacked() Last edited by FranceBB; 6th December 2019 at 21:33. |
|
|
|