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. |
7th May 2020, 11:21 | #21 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Quote:
I'd like, anyway, to try and use it with standard pel.
__________________
@turment on Telegram |
|
7th May 2020, 11:27 | #22 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
NNEDI3 is probably used for upscaling the pelclip. If pel=1 --> no upscale. I see no reason to not use pel=2 for HD.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
7th May 2020, 12:04 | #24 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Quote:
Really hard to say which is better, if mine or yours. The discriminating factor could be fps: mine is 6.10, yours is 4.09. P.S: I have always questioned myself about real meaning of truemotion. I read explanation multiple times and it's really a dice roll to find when it's good and when it's bad for a movie. Your idea? P.P.S: Why to you chain the spatiotemporal version of Spresso with the spatial one? Isn't STpresso already including the spatial part? And why have two version of the same script exist? Isn't STpresso a superset of Spresso?
__________________
@turment on Telegram Last edited by tormento; 7th May 2020 at 13:15. |
|
7th May 2020, 12:21 | #25 | Link | |
Registered User
Join Date: May 2006
Posts: 3,997
|
Quote:
Which version of SMDegrain are you using? Thanks. |
|
7th May 2020, 12:36 | #27 | Link |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
I did some tries using either clang plugins or msvc plugins (where available) on latest Spresso script from real.finder.
They funny thing is they ended with the same 4.24 fps result. And not on the short clip I sent here, a much longer one I use to better test (if you need I can upload). Seems the bottleneck is MVTools or something else but not the compiler version. P.S: Final bitrate of clang is 4450.15 kB/s, of msvc is 4450.16 kB/s. LOL
__________________
@turment on Telegram |
7th May 2020, 16:12 | #28 | Link | ||
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
and like other settings, it depend on the source you deal with Quote:
__________________
See My Avisynth Stuff |
||
8th May 2020, 10:42 | #29 | Link | |
Registered User
Join Date: Nov 2009
Posts: 2,352
|
Quote:
Attempt: mediafire Never thought thsad=1000 was a thing, it gave me some ideas to improve smdegrain. |
|
8th May 2020, 10:45 | #30 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Welcome back!
Quote:
As you probably noticed, real.finder is now maintaining your script. A collaboration would be terrific!
__________________
@turment on Telegram |
|
8th May 2020, 11:07 | #31 | Link |
Registered User
Join Date: Nov 2009
Posts: 2,352
|
Thanks, from time to time I come over to update things, I'm grateful he is maintaining it I lost track of all updates so still need to catch up!
The script is a proof of concept, I did it in some passes, the last one a smear recovery which I found was interesting, I searched around and cretindesalpes had an implementation, so I tweaked it. It's some hard coded values but I would like to integrate it in a safe manner. Code:
ffvideosource("BD 21 grammi.mkv").crop(0,20,0,-20).Dither_convert_8_to_16() src=last Dfttest(sstring="0.0:4.0 0.2:9.0 1.0:15.0",tbsize=1,u=true,v=true,lsb=true,quiet=true) ditherpost(mode=6) smdegrain(src.fluxsmoothT(3), tr=9, thSAD=1000, mfilter=last, n16=true, mode=0, contrasharp=false, prefilter=4, truemotion=true, plane=4, chroma=true) smdegrain(tr=3, thSAD=250, refinemotion=true, n16=true, mode=0, contrasharp=true, prefilter=2, plane=4, chroma=true) fslg_fix_dc(last,src, 1.0) DitherPost(stacked=true,prot=false,mode=6) Function fslg_fix_dc (clip flt16, clip src16, float "thr") { thr = Default (thr, 1.0) lp_f = flt16.fslg_fix_dc_lowpass () lp_s = src16.KNLMeansCL(D=2, A=2, h=7.0,device_type="GPU",stacked=true).fslg_fix_dc_lowpass () hp_f = Dither_sub16 (flt16, lp_f, dif=true) (thr < 0.1) ? lp_s : lp_f.Dither_limit_dif16 (lp_s, thr=thr, elast=2.0) msk=SafeMotionMask(DitherPost(stacked=true,prot=false,mode=6),gam=0.6,mv=3,em=false,lm=1, motion=100,darkb=55) Dither_merge16_8(flt16,Dither_add16 (hp_f, dif=true),msk,luma=true) } Function fslg_fix_dc_lowpass (clip src16) { src16 w = Width () h = Height () / 2 r = 8.5 Dither_resize16 (w, h, kernel="bicubic", a1=1, a2=0, fv=-1.0/r) Dither_resize16 (w, h, kernel="bicubic", a1=1, a2=0, fh=-1.0/r) } |
8th May 2020, 22:41 | #36 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
what is SafeMotionMask?
anyway, since fslg_fix_dc_lowpass use Dither_resize16 with fv paramter this function can't be ported to HBD, just like https://forum.doom9.org/showpost.php...postcount=1125
__________________
See My Avisynth Stuff |
9th May 2020, 00:58 | #37 | Link |
Registered User
Join Date: Nov 2009
Posts: 2,352
|
Guess I forgot to upload at the time. It's a function I used to work with masks, specially to mask out problematic motion artifacts like smearing. It's not pretty but it wasn't for release.
https://github.com/Dogway/Avisynth-S...otionMask.avsi |
9th May 2020, 03:14 | #38 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
so I did some update https://raw.githubusercontent.com/re...SMDegrain.avsi Code:
Spresso(10,30).STpresso(10,30,4,22,8,49,1,mc=true) #last updates o = last ox = o.width oy = o.height ox1 = 1280 oy1 = 704 ox2 = 640 oy2 = 360 sm1 = o.bicubicresize(ox1,oy1) # medium scale sm2 = sm1.bicubicresize(ox2,oy2) # small scale D12 = mt_makediff(sm2.bicubicresize(ox1,oy1),sm1,U=3,V=3) # residual of (small)<>(medium) D1o = mt_makediff(sm1.bicubicresize(ox,oy),o,U=3,V=3) # residual of (medium)<>(original) lev2 = sm2.MCDegrainMod(3,soft=true,TV_range=false) # filter on smalle scale up1 = lev2.bicubicresize(ox1,oy1) up2 = up1.bicubicresize(ox,oy) D12.MCDegrainMod(3,up1,soft=false,thSAD=480,TV_range=false) # filter on medium scale lev1 = up1.mt_makediff(last,U=3,V=3) up3 = lev1.bicubicresize(ox,oy) D1o.MCDegrainMod(6,up2,soft=true,thSAD=480) # filter on original scale up3.mt_makediff(last,U=3,V=3)
__________________
See My Avisynth Stuff |
|
9th May 2020, 05:20 | #39 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
9th May 2020, 09:38 | #40 | Link |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,542
|
Shouldn't be better fitted in the generic zswhatever.avsi?
Anyway what srfilter does, what are the possible values and consequences? Could you explain please once for all the parameters not covered by smdegrain.html from Dogway too? Anyway 3 level of resize degrain is insane
__________________
@turment on Telegram Last edited by tormento; 9th May 2020 at 09:43. |
Thread Tools | Search this Thread |
Display Modes | |
|
|