VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 42 of 42
  1. You have bleeding of the chroma channels between fields. Change ConvertToYV12() to ConvertToYV12(interlaced=true). I'm pretty sure that will fix it.
    Quote Quote  
  2. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    Great, thanks. That did the trick!
    Quote Quote  
  3. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    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()
    Quote Quote  
  4. Yes, those horizontal lines are imperfections in the deinterlacing. And you are way over sharpening.
    Quote Quote  
  5. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    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)?
    Quote Quote  
  6. TempGauss is currently the best deinterlacer. One thing you can do after TempGauss is

    Code:
    Blur(0, 1.0)
    Sharpen(0, 0.7)
    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.

    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
    Quote Quote  
  7. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    Thanks. I used

    Code:
    Blur(0,1.0)
    Sharpen(0,1.0)
    Works beautifully! See below:

    Quote Quote  
  8. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    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.
    Quote Quote  
  9. Originally Posted by loekverhees
    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#1778860
    https://forum.videohelp.com/topic303037.html#1533994

    You need to install MVTools for AviSynth then use the SmoothFPS() function.
    Quote Quote  
  10. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    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.
    Quote Quote  
  11. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by loekverhees
    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)?
    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.
    Quote Quote  
  12. Member
    Join Date
    Jun 2005
    Location
    The Netherlands
    Search Comp PM
    @ Jagabo & Gavino: Thanks, now it works. Although I had to insert this piece of code as well:

    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) 
    }
    @ 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!