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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th December 2023, 04:05   #2801  |  Link
Blankmedia
Registered User
 
Join Date: Oct 2011
Location: Dans le nord
Posts: 65
Quote:
Originally Posted by Dogway View Post
Animation is typically telecined unless this is a TV capture or something, this is not ideal.
QTGMC+ is mainly designed after live recorded video with more temporal coherence.

Try to add back the old bobber with:
Code:
UseEdiExt=1 (or 2 for vinverse filtered), EdiExt=ex_bob(src, 0,0.5,props=1)
Thanks it seems to do it
Blankmedia is offline   Reply With Quote
Old 6th December 2023, 07:13   #2802  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Quote:
Originally Posted by madey83 View Post
ok. thx for that.

is there any avisynth related solution to clean this video up that i could use....
You can try with mlrt_ov, and OpenVINO runtimes (you need put all .dll in same folder), Model from here


Script:
Code:
z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ov(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/RealESRGAN/RealESRGAN_x2plus_op18.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2") 
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")
kedautinh12 is offline   Reply With Quote
Old 6th December 2023, 11:24   #2803  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
Quote:
Originally Posted by kedautinh12 View Post
You can try with mlrt_ov, and OpenVINO runtimes (you need put all .dll in same folder), Model from here


Script:
Code:
z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ov(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/RealESRGAN/RealESRGAN_x2plus_op18.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2") 
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")
thank you for that, but is is still very slow. I will try other thinks...
madey83 is offline   Reply With Quote
Old 6th December 2023, 11:31   #2804  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
I think it's faster than yesterday script
kedautinh12 is offline   Reply With Quote
Old 6th December 2023, 11:40   #2805  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Everything will easy if you upgrade your GPU to high end
kedautinh12 is offline   Reply With Quote
Old 6th December 2023, 11:52   #2806  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
Quote:
Originally Posted by kedautinh12 View Post
I think it's faster than yesterday script
yes it is ~1 fps.

many thanks for your all advices..
madey83 is offline   Reply With Quote
Old 7th December 2023, 03:54   #2807  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
If you find other thing good can share to me? More learing more development
kedautinh12 is offline   Reply With Quote
Old 7th December 2023, 07:52   #2808  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
this is how my last call looks like, and it is quite fast on my hardware (arround 10 fps)

ConvertBits(16)
dfttest(sigma=64, tbsize=1, dither=1)
pr=ex_Median(mode="IQMST",thres=255)
pre=ex_blend(pr,"blend",opacity=0.2).ex_sbr(1,UV=3)

SMDegrain(tr=3, thSAD=600, thSCD2 = 100, mode="TemporalSoften", truemotion=false, prefilter=pre, contrasharp=false)

deep_resize(1440,1080,edge="nnedi3",flat="nnedi3",grain=0,qual=2,sspace="sigmoid")

ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(1.0,Fc=width()*2.0,safe=true) # Extra fine sharpness

neo_f3kdb(range=15, y=65, cb=40, cr=40, grainy=0, grainc=0, sample_mode=4, blur_first=True, dynamic_grain=true, mt=False, keep_tv_range=True,output_depth=16)
ConvertBits(10,dither=1)

but i have still problems with removing some dirt/dots....
madey83 is offline   Reply With Quote
Old 7th December 2023, 08:04   #2809  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
You can try spotless for dedots
kedautinh12 is offline   Reply With Quote
Old 7th December 2023, 08:07   #2810  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
i have tried this call, but do not see any different:

SpotLess(ThSAD2=1000,RadT=1,Chroma=true,BlkSz=8,OLap=4,Tm=false)

edit: i do not have any expirance with it... i found it yesterday... maybe i'm using it wrongly

Last edited by madey83; 7th December 2023 at 08:15.
madey83 is offline   Reply With Quote
Old 7th December 2023, 08:25   #2811  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Increase RadT, delete Tm parameter
kedautinh12 is offline   Reply With Quote
Old 7th December 2023, 08:35   #2812  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
Quote:
Originally Posted by kedautinh12 View Post
Increase RadT, delete Tm parameter
thx.. looks better. i think this is my final call:

dfttest(sigma=64, tbsize=1, dither=1)
pr=ex_Median(mode="IQMST",thres=255) pre=ex_blend(pr,"blend",opacity=0.2).ex_sbr(1,UV=3)
SMDegrain(tr=3, thSAD=600, thSCD2 = 100, mode="TemporalSoften", truemotion=false, prefilter=pre, contrasharp=false)

SpotLess(ThSAD2=1000,RadT=2,Chroma=true,BlkSz=8,OLap=4) # i think it is a good place to call it....

deep_resize(1440,1080,edge="nnedi3",flat="nnedi3",grain=0,qual=2,sspace="sigmoid",gpuid=0)
ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(0.15).ex_unsharp(0.15, Fc=width()/1.5)

neo_f3kdb(range=15, y=65, cb=40, cr=40, grainy=0, grainc=0, sample_mode=4, blur_first=True, dynamic_grain=true, mt=False, keep_tv_range=True,output_depth=16)
ConvertBits(10,dither=1)
madey83 is offline   Reply With Quote
Old 7th December 2023, 08:50   #2813  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
try replace neo_f3kdb with
Code:
convertbits(16)
GradFun3plus(thr=0.25, radius=10, mask=2, smode=0,UV=3)
Or
Code:
convertbits(16)
GradFun3plus(thr=0.5, radius=20, mask=2, smode=0,UV=3)

Last edited by kedautinh12; 7th December 2023 at 08:58.
kedautinh12 is offline   Reply With Quote
Old 7th December 2023, 09:16   #2814  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
Quote:
Originally Posted by kedautinh12 View Post
try replace neo_f3kdb with
Code:
convertbits(16)
GradFun3plus(thr=0.25, radius=10, mask=2, smode=0,UV=3)
Or
Code:
convertbits(16)
GradFun3plus(thr=0.5, radius=20, mask=2, smode=0,UV=3)
to my eyes i do not really see any differents between GradFun3plus and neo_f3kdb


Do you see any other improvments for script?
madey83 is offline   Reply With Quote
Old 7th December 2023, 09:24   #2815  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Just short clip, i don't see different very much, maybe good for full clip of your where the part i don't have. For my test with other clip, gradfun3plus is better

Last edited by kedautinh12; 7th December 2023 at 09:46.
kedautinh12 is offline   Reply With Quote
Old 7th December 2023, 12:01   #2816  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 135
Quote:
Originally Posted by kedautinh12 View Post
Just short clip, i don't see different very much, maybe good for full clip of your where the part i don't have. For my test with other clip, gradfun3plus is better
i have sent you PM with the link
madey83 is offline   Reply With Quote
Old 13th December 2023, 18:01   #2817  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 592
Quote:
Originally Posted by madey83 View Post
hello,

can i ask for help with clearing out this clip:
https://mega.nz/file/sZZh2bpI#zK7jGm...pqB6eIUaHFhupk

thank you in advance for any help
Can you please reupload the clip as the link is broken
flossy_cake is offline   Reply With Quote
Old 13th December 2023, 18:39   #2818  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 592
Quote:
Originally Posted by madey83 View Post
yes it is ~1 fps.
If you want like 70fps this is what I'm using for realtime playback of 480p animation on HTPC

Code:
# Assuming 480p input clip #

# temporal antialiasing, denoising & stabilisation (without NNEDI3 interpolation)
QTGMC(InputType=1, TR2=3, preset="slow", EdiThreads=4, Sharpness=0.0, Rep0=13).Prefetch(6)

# line thinning - increase first param by 5.0 at a time for thinner lines
aWarpSharp(15.0, blurlevel=1).Prefetch(1)

# sharpening 
CAS(sharpness=0.75, y=3, u=2, v=2, opt=-1).Prefetch(1)

# upscale 480p -> 1080p
Spline36Resize(1440, 1080).Prefetch(1)

Animated png:



Individual images: 1, 2

Last edited by flossy_cake; 13th December 2023 at 18:48.
flossy_cake is offline   Reply With Quote
Old 14th December 2023, 02:24   #2819  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Quote:
Originally Posted by flossy_cake View Post
Can you please reupload the clip as the link is broken
here:
https://drive.google.com/file/d/1AFD...usp=drive_link
kedautinh12 is offline   Reply With Quote
Old 14th December 2023, 14:15   #2820  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 592
Quote:
Originally Posted by kedautinh12 View Post
Cheers.

Well, I don't know how much smoothing madey83 wants...

Code:
# Temporal smoothing + sharpening (increase EZDenoise to eg. 4.0 if you want more denoising)
QTGMC(InputType=1, TR2=3, EZDenoise=0.0, Sharpness=2.0, preset="slow", EdiThreads=4, Rep0=13).Prefetch(6)

# Line thinning
aWarpSharp(15.0, blurlevel=1).Prefetch(1)

# Upscale to 1080p
Spline36Resize(1920, 1080).Prefetch(1)
Getting 30fps @ 3.2Ghz x 4 cores.

Animated PNG's:





With EZDenoise=4.0:




Last edited by flossy_cake; 14th December 2023 at 14:18.
flossy_cake is offline   Reply With Quote
Reply

Tags
avisynth, dogway, filters, hbd, packs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.