You have bleeding of the chroma channels between fields. Change ConvertToYV12() to ConvertToYV12(interlaced=true). I'm pretty sure that will fix it.
+ Reply to Thread
Results 31 to 42 of 42
-
-
I'm trying to sharpen the video with aSharp. But then, I see some kind of horizontal edges appearing. You can see it especially near the edges of the water and on the rock in the lower right corner. See picture:

You can see, if looking carefully, the horizontal lines also appear in the before picture. So, is this coming from the TGMC filter?
This is the code I used:
Code:SetMTMode(2,0) LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3d.dll") AviSource("C:\Users\L.J.P. Verhees\Desktop\losse stukjes\Interlaced_Deshaked.avi") SeparateFields() odd=SelectOdd.Convolution3D (0, 6, 10, 6, 8, 2.8, 0) evn=SelectEven.Convolution3D (0, 6, 10, 6, 8, 2.8, 0) Interleave(evn,odd) Weave() DoubleWeave.SelectOdd() Tweak(sat=1.1,cont=0.94) ConvertToYV12(interlaced=true) AssumeBFF() TempGaussMC_beta1() SelectEven() aSharp() -
Yes, those horizontal lines are imperfections in the deinterlacing. And you are way over sharpening.
-
Is there a way to remove these horizontal lines (e.g. by changing settings in TGMC or changing something else?), or must I live with them (and turn the sharpening a bit down)?
-
TempGauss is currently the best deinterlacer. One thing you can do after TempGauss is
The Blur() will blur away the comb artifacts and the Sharpen() will restore most of the crispness to other horizontal edges (without restoring the comb artifacts). You can sharpen more but you'll get start getting halos. If you're going to use ASharpen() afterwards you might get away with less sharpening.Code:Blur(0, 1.0) Sharpen(0, 0.7)
There is one way to make sure no interlaced artifacts get like that get through, but you'll lose half the vertical detail and end up with jagged, buzzing, near horizontal edges. Just use:
Code:SeparateFields() SelectEven() #or odd WhateverResize() # to desired size
-
-
Jagabo used SmoothFPS somewhere, but where can I find this filter? Till now, I could find all the filters on the internet, but not this one.
-
https://forum.videohelp.com/topic341008.html#1778860Originally Posted by loekverhees
https://forum.videohelp.com/topic303037.html#1533994
You need to install MVTools for AviSynth then use the SmoothFPS() function. -
Note that the function is written to use an older version of MVTools and will not work with the latest version 2.x.
You will need to use version 1.x from http://avisynth.org.ru/mvtools/mvtools.html
As an exercise, you could rewrite the function to work with MVTools 2.x.
-
Those artifacts (repeating horizontal edges) look typical of processing separated fields with a spacial filter and probably appear at 'Convolution' step (you can check this by disabling the rest of the script). Since filtering changes spacial position of horizontal edges, they may look almost as bad as in case of resizing separate fields. The reason is that processing inside a field can only move object edges vertically by 2-pixel step (within that field) and they can't get to the adjacent field. So after combining fields back the empty spaces appear between objects and their horizontal edges. You could use that filter on progressive instead, e.g. just after TempGaussMC.Originally Posted by loekverhees
-
@ Jagabo & Gavino: Thanks, now it works. Although I had to insert this piece of code as well:
@ Alex_ander (and others of course): I tried to remove the convolution step, so I only had the TGMC. But also then the horizontal lines appeared. So the lines come definitely from the deinterlaceing process. The best way to remove these lines, as far as I can judge, is to use the Blur(0, 1.0) and Sharpen(0, 0.8 ) filters after TGMC. This really does an outstanding job of removing the horizontal lines.Code:function SmoothFPS(clip source, float fps) { fp=fps*100 backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1) # we use explicit idx for more fast processing forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1) cropped = source.crop(4,4,-4,-4) # by half of block size 8 backward_vec2 = cropped.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2) forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2) return source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=int(fp),den=100, idx=1,idx2=2) }
Similar Threads
-
Removing jagged interlacing artifacts from a progressive file?
By tfolder in forum RestorationReplies: 13Last Post: 17th Mar 2011, 05:19 -
interlacing in progressive DVD image
By ecc in forum Video ConversionReplies: 1Last Post: 28th Oct 2009, 09:50 -
Good Video Explaining Interlacing and De-Interlacing
By Soopafresh in forum Newbie / General discussionsReplies: 3Last Post: 14th Aug 2008, 20:50 -
interlacing progressive videos
By theelf in forum ffmpegX general discussionReplies: 0Last Post: 29th Jan 2008, 20:31 -
Can progressive video be saved as DV without losing progressive advantages?
By boblin2 in forum Video ConversionReplies: 7Last Post: 22nd Jul 2007, 15:35



Quote