VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Nov 2025
    Location
    Unites States of America
    Search Comp PM
    Hello!
    As you've read from the title, I've been trying to remove heavy dot crawl and rainbowing, but I haven't gotten much luck with.
    Image
    [Attachment 94272 - Click to enlarge]

    As you can see, the dot crawl and rainbowing is very aggressive so I can see why it's difficult to remove.
    The best results I've gotten is
    Code:
    clip = core.dotkill.DotKillT(clip, offset=3, dupthresh=45, tratio=1)
    which doesn't remove too much, but it's a start.
    I don't really have much too say, I just need help with the source.
    Image Attached Files
    Quote Quote  
  2. Because they are inherent part of color encoding and eventual color decoding - part of spectrum for luminance signal is shared with chrominance - proper separation may be not possible.
    You can try filtering in frequency domain - use some plugin or software allowing to perform signal processing in frequency domain - in avisynth you can use for example http://avisynth.nl/index.php/FFTQuiver - alternatively you can try to separate luminance and chrominance and process independently.
    Quote Quote  
  3. Problem is that the image was reencoded and resized multiple times and thus normal decrawler detection methods do not catch the crawlers.

    applying other denoisers / grain removers on the separated fields before applying IVTC or similar might help.
    i.e. TemporalDegrain2 with temporal radius 3

    helps quite a bit
    using TemporalDegrain and TemporalDegrain2 in succession seems to work even better.
    Last edited by Selur; 8th Nov 2026 at 10:47.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  4. Member
    Join Date
    Nov 2025
    Location
    Unites States of America
    Search Comp PM
    Originally Posted by Selur View Post
    Problem is that the image was reencoded and resized multiple times and thus normal decrawler detection methods do not catch the crawlers.
    I know the source was re-encoded a couple of times, I can tell because of the bad deinterlacing and the original SD scaled to HD (to fit TV resolution). That makes sense why any of these plugins wouldn't work.
    Also I was able to remove the more of the analog artifacts a little more with this script.
    Code:
    clip = core.bifrost.Bifrost(clip, luma_thresh=6.2, variation=8, interlaced=True, blockx=14, blocky=12)
    clip = havsfunc.LUTDeRainbow(clip, cthresh=13, ythresh=13, y=True, linkUV=True, mask=False)
    clip = core.dotkill.DotKillT(clip, offset=3, dupthresh=45, tratio=7)
    clip = core.vivtc.VFM(clip, 1)
    clip = core.dotkill.DotKillS(clip, iterations=4)
    clip = core.vivtc.VDecimate(clip)
    Quote Quote  
  5. hmm,...
    Code:
    clip = core.dotkill.DotKillT(clip, offset=3, dupthresh=45, tratio=7)
    that does cause ghosting here.

    Did you try:
    Code:
    clip = core.std.SeparateFields(clip, tff=False) # resolution 1440x540
    clipEven = clip[::2]
    clipOdd = clip[1::2]
    clipOdd = core.std.SetFrameProps(clip=clipOdd, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive
    # removing grain using TemporalDegrain2
    clipEven = degrain.TemporalDegrain2(clipEven, degrainTR=3, degrainPlane=4, postFFT=0, fftThreads=1)
    # removing grain using TemporalDegrain2
    clipOdd = degrain.TemporalDegrain2(clipOdd, degrainTR=3, degrainPlane=4, postFFT=0, fftThreads=1)
    # converting half-height progressive to interlaced
    clip = core.std.Interleave([clipEven, clipOdd])
    clip = core.std.DoubleWeave(clip=clip, tff=False)  # resolution: 1440x1080
    clip = core.std.SelectEvery(clip, 2, 0) # scan type: bottom field first
    befofe the IVTC, like I suggested? That work better here than what you suggested.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  6. I've no idea if there's a Vapoursynth equivalent, but there's a function by realfinder for Avisynth called SRFComb() that seems to clean up most of it if you downscale first. I also had to use blend de-interlacing for TFM because the default method produced really bad aliasing on some frames. It ended up needing sharpening, but I don't know if it's worth resizing back up to 1080p as the source doesn't have anywhere near 1080p worth of resolution. I'd probably just resize to 720p.

    Code:
    TFM(pp=5, MI=70)
    TDecimate(mode=1)
    CropResize(720,480, 192,12,-192,-12, InSAR=4.0/3.0, OutDAR=4.0/3.0, Resizer="Bilinear")
    SRFComb()
    LSFMod()
    FastLineDarkenMod4(thinning=0)
    Spline36Resize(960,720)
    MergeChroma(last.AwarpSharp(depth=5), last.AwarpSharp(depth=20))
    FastLineDarkenMod4(thinning=0)
    MCAA()
    FineDehalo()
    Prefetch(12)
    Image
    [Attachment 94356 - Click to enlarge]
    Image Attached Files
    Quote Quote  
  7. nice, cropping and descaling looks fine
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  8. Are you applying DotKillT directly to the source .ts file or have you already done deinterlacing or frame cropping before?
    Quote Quote  
  9. bastianfenn,
    If that question was directed at me, the script I posted was everything. Aside from the source filter, DGMPGDec (DGIndex/DGDecode).
    Mpeg2Source("D:\sample.d2v")

    TFM's field matching and/or deinterlacing had to be done before the downscaling, and there didn't seem to be any benefit to applying SRFComb before TDecimate removed duplicate frames, but I didn't spend a huge amount of time experimenting.

    I used CropResize (see my signature) to apply the cropping I thought was needed while specifying the original sample aspect ratio so it'd resize correctly, and OutDAR=4.0/3.0 ensured the function would apply any additional cropping needed to crop the source to exactly 4:3 (regardless of the output dimensions). It was just so I could easily crop and experiment with different downscaling resolutions while the dimensions for upscaling would always remain 4:3.

    The SRFComb() function seemed to work the best out of the ones I tried, although none of them worked very well at the original resolution and I didn't play with any of SRFComb's options to see if it could do better. The rest of the script was just an attempt to make it look acceptable while upscaling.

    Many of realfinder's functions also require his shared functions script to work. I'm not sure if SRFComb is one of them, but just in case...
    Last edited by hello_hello; 16th Nov 2026 at 03:00.
    Quote Quote  
  10. side note: I ported SRFComb a while ago to Vapoursynth, it's linked in the SRFComb thread over at doom9s, so you can use it in Vapoursynth.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  11. Member
    Join Date
    Nov 2025
    Location
    Unites States of America
    Search Comp PM
    Originally Posted by Selur View Post
    Code:
    clip = core.std.SeparateFields(clip, tff=False) # resolution 1440x540
    clipEven = clip[::2]
    clipOdd = clip[1::2]
    clipOdd = core.std.SetFrameProps(clip=clipOdd, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive
    # removing grain using TemporalDegrain2
    clipEven = degrain.TemporalDegrain2(clipEven, degrainTR=3, degrainPlane=4, postFFT=0, fftThreads=1)
    # removing grain using TemporalDegrain2
    clipOdd = degrain.TemporalDegrain2(clipOdd, degrainTR=3, degrainPlane=4, postFFT=0, fftThreads=1)
    # converting half-height progressive to interlaced
    clip = core.std.Interleave([clipEven, clipOdd])
    clip = core.std.DoubleWeave(clip=clip, tff=False)  # resolution: 1440x1080
    clip = core.std.SelectEvery(clip, 2, 0) # scan type: bottom field first
    Eh, it's not any better than my script, but since DotKillT causes ghosting in some frames, is it possible to remove it? Such as the similar script you recommended me?
    Quote Quote  
  12. Member
    Join Date
    Nov 2025
    Location
    Unites States of America
    Search Comp PM
    Originally Posted by hello_hello;2806689[CODE
    TFM(pp=5, MI=70)
    TDecimate(mode=1)
    CropResize(720,480, 192,12,-192,-12, InSAR=4.0/3.0, OutDAR=4.0/3.0, Resizer="Bilinear")
    SRFComb()
    LSFMod()
    FastLineDarkenMod4(thinning=0)
    Spline36Resize(960,720)
    MergeChroma(last.AwarpSharp(depth=5), last.AwarpSharp(depth=20))
    FastLineDarkenMod4(thinning=0)
    MCAA()
    FineDehalo()Prefetch(12)[/CODE]
    That's really good, I do see some leftover dot crawl and rainbowing from close edges.
    You can scratch this part from the code
    Code:
    LSFMod()
    FastLineDarkenMod4(thinning=0)
    Spline36Resize(960,720)
    MergeChroma(last.AwarpSharp(depth=5), last.AwarpSharp(depth=20))
    FastLineDarkenMod4(thinning=0)
    MCAA()
    FineDehalo()
    I'm only focusing on removing the heavy dot crawl and rainbowing.
    I can do everything else myself.
    Quote Quote  



Similar Threads