(15.02.2023, 22:08)Al74 Wrote: [ -> ]Dear Selur and the forum Members,
Once upon a time Selur was very kind to clean my AVI clip, which contained typical problems present in many similar clips I had. I would be grateful for some help on how to clean it (which filters to use and so on). I tried different options but I am not satisfied.
Below I attach two files, original one and cleaned one.
Thank you in advance.
https://we.tl/t-gIk2Q28K3b
(16.02.2023, 06:21)Selur Wrote: [ -> ]You might want to share:
What you tried.
What it is you are aiming for. Just cleaning? Are you aiming to upscale this to xy?
Are you aiming to use Avisynth or Vapoursynth or none of those?
Is using ai based filters an option (requires additional addon + modern NVIDIA card)?
(ai based upscaling often includes denoising&co)
Is waiting xy minutes per frame an option?
Something like FeMaSR can do some nice stuff, but is even slow on high-end NVIDIA graphics cards, especially when aiming to resize for a resize factor above 2.
Not using ai, for dehalo and deringing, something like:
Code:
# applying dehalo using YAHR
clip = havsfunc.YAHR(clip, blur=1, depth=16)
clip = havsfunc.FineDehalo(clip)
# adjusting color space from YUV422P8 to YUV444P16 for vsGLSLAntiRing
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16, range_s="full")
# applying anti-aliasing using glsl filter
with open("i:/Hybrid/64bit/vsfilters/GLSL/parameterized/antiring.glsl") as glslf:
glsl = glslf.read()
glsl = glsl.replace('const float strength = 1.0;', 'const float strength = 1;')
glsl = glsl.replace('const float radius = 0.5;', 'const float radius = 0.5;')
clip = core.placebo.Shader(clip=clip, shader_s=glsl, width=clip.width, height=clip.height)
seems okay.
Cu Selur
Selur,
Thank you for the reply. Let me give you some background.
My goal is to clean my AVI files and then upscale them 2x or even 4x if one can see clear diiference/advantage. As you have written, one can use either AI-based upscalers or more traditional ones. Due to constant progress in the field, it may be done later on...
I have old GTX 1060 6GB GPU so it can be chalange for some AI models to get job done. BUT if the results are very good, I could upscale some clips from different places to finish some presentations (mix of photos and short clips).
So for the time being, the most important thing for me is to clean these files for further future editing.
Coming back to my attempts:
I have also tried YAHR , Blur 1, but used Depth 32, not 16 as you proposed.
YAHR is effective to remove halo BUT also seems to affect other parts of clip, it removes some fine detail a little bit.
After applying YAHR 1, I added TemporalDegran and it helped me to remove "dancing artifacts" but also influenced the detail.
I have also used denoise FFT3D filter but as I can see one should experiment with different Sigma value, I must explore it more.
So you apart from YAHR 1 you also added FineDehalo, could you write why you used it apart from YAHR 1, to strengthen the dehalo effect even more?
What about any additional denoisng etc?
The file you created sometime ago shows much less noise then procedure you showed above, I just reproduced it.
Is the picture comparison done using original and filtered according to above script only ?
PS As far as upscaling is concerned, of course I could also be interested in using Avisynth or Vapoursynth methods. Sometimes I use NNEDI3 method.