VideoHelp Forum

+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Hello,

    This is not VHS to PC but actually live TV to DVD recording via DVD recorder (therefore, no way to re-record). Regardless, i do see this in both my DVD and VHS-to-PC recordings and is it this border around objects... I do not know what would be the correct term? Halo? Ghosting? Ringing? Aura? Holy Spirit? [edge is on both left and right side so i presume its not ghosting?] I also see some rainbow? Is it a rainbow?
    Anyhoo, it does not bother me that much as-it... BUT.. when i try to upscale videos using Topaz, Topaz thinks this is an actual object, not a video defect and upscales it too making the edge super obvious and the video looks ever worse than before upscaling. Is there a a way to remove this, please? I do not even know where to start as I dont even know what im dealing with?
    Please, help and save my sanity while there is still some time!
    Image Attached Thumbnails Click image for larger version

Name:	Balenciaga 2006 Winter integral ParisPremiere.jpg
Views:	61
Size:	61.7 KB
ID:	71592  

    Image Attached Files
    Quote Quote  
  2. Over-sharpening halos and rainbow artifacts (leakage of high frequency luma content into the chroma). They can be reduced to some extent with post processing but it's best not to produce them in the first place. See if there's a sharpness setting in your DVD recorder and turn it down.
    Quote Quote  
  3. you have two things: Haloing ("double edges" effect more or less big, here they're rather small imo ) and what looks like Moiré (bad demodulation of chroma -> cross-color), can be fixed on the hardware level by using a 3D Comb filter when you use composite or simply a s-video cable is enough

    https://www.avartifactatlas.com/artifacts/moire_effect.html

    Moiré can be fixed with avisynth and the SSIQ filter

    MPEG2Source("defect sample.d2v", cpu=0)
    SSIQ(diameter=11, strength=200, interlaced=true)
    Quote Quote  
  4. YAHR works fine for the dehalo part.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Originally Posted by jagabo View Post
    Over-sharpening halos and rainbow artifacts (leakage of high frequency luma content into the chroma). They can be reduced to some extent with post processing but it's best not to produce them in the first place. See if there's a sharpness setting in your DVD recorder and turn it down.
    yeah, this was recorded back in 2006 and not even by me. I understand the over sharpening and garbage-in/garbage-out. Unfortunately, there's no way to re-record this thus i have to fix this via post-processing (if possible)

    Originally Posted by themaster1 View Post
    you have two things: Haloing ("double edges" effect more or less big, here they're rather small imo ) and what looks like Moiré (bad demodulation of chroma -> cross-color), can be fixed on the hardware level by using a 3D Comb filter when you use composite or simply a s-video cable is enough

    https://www.avartifactatlas.com/artifacts/moire_effect.html

    Moiré can be fixed with avisynth and the SSIQ filter

    MPEG2Source("defect sample.d2v", cpu=0)
    SSIQ(diameter=11, strength=200, interlaced=true)
    thanks for the tips. i agree that the 'double edges' effect is not visible. the problem is when i try to upscale the videos - with digital vids, i get stunning results, but with these analog vids with 'double edge', the second edge becomes very obvious (as software thinks its part of the video) and the video becomes a hot mess.
    Thanks for the SSIQ tip, i cannot find x64 plugin so will try it later with x32 plugin.

    Originally Posted by Selur View Post
    YAHR works fine for the dehalo part.
    thanks Selur. Im trying below YAHR function but i cannot see a difference. (i am zero-skill scripter and i use chatGPT). Did I enter something incorrectly, please?
    SetFilterMTMode ("QTGMC", 2)
    audiofile1 = BestAudioSource("clip.mpg", track=-1)
    videofile1 = FFVideoSource("clip.mpg", track=-1,threads=1)
    file1 = audiodub(videofile1,audiofile1)

    file1

    ConvertToYV12(interlaced = true)
    AssumeTFF()
    QTGMC(preset="Slow", sharpness=1, EdiThreads=3)
    Prefetch(10)

    function YAHR(clip file1)
    {
    b1 = clp.minblur(2).removegrain(11,-1)
    b1D = mt_makediff(clp,b1)
    w1 = clp.aWarpSharp(depth=64,blurlevel=4,thresh=1.0)
    w1b1 = w1.minblur(2,1).removegrain(24,-1)
    w1b1D = mt_makediff(w1,w1b1)
    DD = b1D.repair(w1b1D,24)
    DD2 = mt_makediff(b1D,DD)
    clp.mt_makediff(DD2,U=10,V=10)
    }
    Image Attached Thumbnails Click image for larger version

Name:	1 before.jpg
Views:	19
Size:	77.8 KB
ID:	71619  

    Click image for larger version

Name:	2. after.jpg
Views:	18
Size:	78.5 KB
ID:	71620  

    Quote Quote  
  6. This might reduce the halos and rainbows enough for your upscaler. It does damage to small details in the picture though.

    Code:
    Mpeg2Source("defect sample.d2v", CPU2="ooooxx", Info=3) 
    QTGMC(preset="fast")
    edges = mt_edge("0 0 0  -1 2 -1  0 0 0").mt_expand().mt_expand().mt_expand().mt_expand().BinomialBlur(3.0)  # build a map of vertical edges for later
    
    dehalo_alpha(rx=3.5, ry=1.0, BrightStr=1.1, DarkStr=1.1) # reduce halos
    
    u = UtoY().BinomialBlur(3.0) # blur the chroma U
    v = VtoY().BinomialBlur(3.0) # blur the chroma Y
    bc = YtoUV(u, v, last).aWarpSharp2(depth=10) # merge blurred/sharpened chroma back with the dehaloed luma
    Overlay(last, bc, mask=edges) # merge the chroma of the derainbowed clip with the dehaloed clip only where there are vertical edges
    Image Attached Files
    Quote Quote  
  7. You added the YAHR function, but you are not calling/using it.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  8. Try either or both.

    mfRainbow(220, false)
    EZdenoise(Chroma=true, thSAD=0, thSADC=2000)

    Where there is lots of rainbow and not all is removed is the first pass then repeat.

    mfRainbow(220, false).mfRainbow(220, false)
    Quote Quote  
  9. Originally Posted by jagabo View Post
    This might reduce the halos and rainbows enough for your upscaler. It does damage to small details in the picture though.

    Code:
    Mpeg2Source("defect sample.d2v", CPU2="ooooxx", Info=3) 
    QTGMC(preset="fast")
    edges = mt_edge("0 0 0  -1 2 -1  0 0 0").mt_expand().mt_expand().mt_expand().mt_expand().BinomialBlur(3.0)  # build a map of vertical edges for later
    
    dehalo_alpha(rx=3.5, ry=1.0, BrightStr=1.1, DarkStr=1.1) # reduce halos
    
    u = UtoY().BinomialBlur(3.0) # blur the chroma U
    v = VtoY().BinomialBlur(3.0) # blur the chroma Y
    bc = YtoUV(u, v, last).aWarpSharp2(depth=10) # merge blurred/sharpened chroma back with the dehaloed luma
    Overlay(last, bc, mask=edges) # merge the chroma of the derainbowed clip with the dehaloed clip only where there are vertical edges
    oh thanks! this worked like a charm... I see now what you mean about loosing some of the details.. I might combine the videos and only de-double-edge zoomed out scenes and combine them with non-de-double-edge close ups of clothes where double edges are not so visible.
    Overall, very nice results although i do agree with you, it comes with a sacrifice...
    I did some testing with topaz this week using your results and topaz is no longer picking up second edge after the script, so im very pleased. they did a new release this wednesday and both patches before and after work very nicely. Thanks a lot for your help and this script

    Originally Posted by Selur View Post
    You added the YAHR function, but you are not calling/using it.
    oh wow, that could explain why none of the scripts I wrote were working could i ask how could i make it work, please? do i call it second time like this?

    Originally Posted by coolgit View Post
    Try either or both.

    mfRainbow(220, false)
    EZdenoise(Chroma=true, thSAD=0, thSADC=2000)

    Where there is lots of rainbow and not all is removed is the first pass then repeat.

    mfRainbow(220, false).mfRainbow(220, false)
    I tried your script but AviSynth did not recognize EZdenoise function and I cannot find it on external filters page http://avisynth.nl/index.php/External_filters. Is it sub-part of another filter, please?
    Quote Quote  
  10. could i ask how could i make it work, please? do i call it second time like this?
    save http://avisynth.nl/images/YAHR.avsi into your Avisynth plugins folder. (since it's a .avsi file, it will be auto loaded)
    To use it you simply add: 'YAHR()' below QTGMC in your script
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  11. EZDenoise is available here:

    https://forum.doom9.org/showthread.php?t=183192
    https://www.mediafire.com/file/3ojdzwiat4ossw0/EZdenoise_v4.zip/file

    Be careful, very high settings like thSADC=2000 will result in chroma blending between frames.
    Quote Quote  
  12. Originally Posted by Selur View Post
    could i ask how could i make it work, please? do i call it second time like this?
    save http://avisynth.nl/images/YAHR.avsi into your Avisynth plugins folder. (since it's a .avsi file, it will be auto loaded)
    To use it you simply add: 'YAHR()' below QTGMC in your script
    oh wow! that did the trick! and let me tell you, when i saw the result, i fell of my chair. Alpha dehalo was good, but it was indeed overblurring details, but when I tried YAHR, the double-edges magically disappeared while protecting the details. I was shooketh! So thanks twice (once for teaching me scripts, secondly for the YAHR filter). I am truly lost for words now and i will need half-an-hour to process. I honestly was not very hopeful this could be done to such extend in post-processing :O

    https://imgsli.com/MTg3NTIz/0/1

    Originally Posted by jagabo View Post
    EZDenoise is available here:

    https://forum.doom9.org/showthread.php?t=183192
    https://www.mediafire.com/file/3ojdzwiat4ossw0/EZdenoise_v4.zip/file

    Be careful, very high settings like thSADC=2000 will result in chroma blending between frames.
    oh wow, thanks a lot! it works now too. As you say, i need to combine it with rainbow filter too.. I could not run rainbow as it was x32 and the rest of the filters are x64. but i could run two separate scripts and see... thanks a lot
    Quote Quote  



Similar Threads