Log in

View Full Version : Oyster Deblocking Avisynth?


VideoMilk78
16th May 2025, 19:36
I've downloaded all the required functions however using this script that I found in the original thread and slightly modified

clip=LWLibavVideoSource("C:\users\downloads\video.mp4").robocrop().propSet("_FieldBased",0)
clp=clip.ConvertBits(32).ConvertToYUV444()
sup = oyster_Super(clp)
ref_f = oyster_Basic(clp, sup, short_time=False)
ref_s = oyster_Basic(clp, sup, short_time=True)
oyster_Deblocking(clp, ref_f, block_step=2)

I get this error

NNEDI3CL: Image Format Not Supported
(C:/Program Files/AviSynth+/plugins64+/ResizersPack.avsi, line 855)
(C:/Program Files/AviSynth+/plugins64+/ResizersPack.avsi, line 856)
(C:/Program Files/AviSynth+/plugins64+/ResizersPack.avsi, line 857)
(C:/Program Files/AviSynth+/plugins64+/DeblockPack.avsi, line 378)
(New File (7), line 10)

and if I change the bit depth or format to something else I then get this error

oyster
Super: the sample type of sic has to be single precision!
(C:/Program Files/AviSynth+/plugins64+/DeblockPack.avsi, line 364)
(New File (7), line 8)

I haven't been able to find anyone else with this issue so any help is appreciated..

Emulgator
20th May 2025, 01:06
Something like this works here:
#[*# +++++ Start of Block "feisty2's Huge Restorations" +++++
z_ConvertFormat(pixel_type="YUV444PS", colorspace_op="709:709:709:l=>709:709:709:l", cpu_type="avx512_snc")
#z_ConvertFormat(pixel_type="RGBPS", colorspace_op="709:709:709:l=>rgb:709:709:f", cpu_type="avx512_snc")
# Deringing introduces a black raise: 10-bit 64->192 towards the vertical edges within the outer 35px, and 64->155 towards the horizontal edges within the outer 30px, the first and last line lifted to 192.
# There is an additional black undershoot to 59..60 within 40..30 pixels, so it may well be ok to pad 64 pix before actually calling Deringing and crop 64 pix after.
pad=64
AddBorders(pad,pad,pad,pad)
propSet("_FieldBased",0) # Setting progressive, because feisty2's algos only make sense in progressive
clp=last
sup=oyster_Super(clp)
ref_f=oyster_Basic(clp, sup, short_time=False)
ref_s=oyster_Basic(clp, sup, short_time=True)
#oyster_Destaircase(clp, ref_f, radius=2, sigma=24, block_step=2) # lower sigma (1.0) leaves more detail, higher sigma smears, default is 16.0
#oyster_Deblocking(clp, ref_f, block_step=4,radius=2,sigma=4.0) # lower sigma (1.0) leaves more detail, higher sigma smears, default is 16.0
oyster_Deringing (clp, ref_s, sigma=2.0, h=10.8, block_step=4) # 2025: NTSC +64px: 0,65fps @ 11900K + RTX 3080, Prefetch(7,8) eats 72% of 16GB VRAM
z_ConvertFormat(pixel_type="YUV422P10", colorspace_op="709:709:709:l=>709:709:709:l", cpu_type="avx512_snc")
Crop(pad,pad,-pad,-pad)
#return(last)
#*]# -------- End of Block "feisty2's Huge Restorations" --------
You want to match the cpu_type argument or discard it.
And, BTW, no resizing before Deblocking. I guess Robocrop will destroy the block alignment.