VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. This video has probably been deinterlaced while it actually was progressive, causing aliasing.
    Click image for larger version

Name:	vlcsnap-2015-06-04-14h12m21s584.png
Views:	1673
Size:	948.6 KB
ID:	32044

    I tried several filters (aaa, daa, maa, aamcsharpmod, eedi2, LSharpAAF), but the 'jaggies' are still there after encoding. Does anyone have a solution?
    Image Attached Files
    Quote Quote  
  2. Try something like:

    Code:
    ConvertToRGB()
    PointResize(width,height/2)
    ConvertToYV12()
    nnedi3(dh=true)
    Quote Quote  
  3. Click image for larger version

Name:	vlcsnap-2015-06-04-15h59m21s688.png
Views:	1481
Size:	959.9 KB
ID:	32045
    That looks about right, but when using it on another part of the video, the aliasing is still very noticable during movement.
    See the new sample.mkv
    I've also added a sample of a source that doesn't have the aliasing as comparisment (sample2.mkv)
    Image Attached Files
    Last edited by pub; 4th Jun 2015 at 09:15.
    Quote Quote  
  4. Set the nns argument in nnedi3 higher to get better results with shallower diagonals. You can get rid of the RGB conversion too:

    Code:
    SeparateFields()
    SelectEven()
    nnedi3(dh=true, nns=4)
    If you start getting blurry lines try SelectOdd() instead of SelectEven() for those sections.

    For Sample2 try:

    Code:
    AssumeTFF()
    TFM(mode=1, field=0, pp=1)
    TFM(mode=1, field=1, pp=1) # second TFM might not be necessary, check more video
    TDecimate(cycle=6, cycleR=1)
    The frame rate might need a close look.
    Last edited by jagabo; 4th Jun 2015 at 11:12.
    Quote Quote  
  5. Oh, I just added the second sample as comparisment of what it should look like. It has some 25p to 29.97i conversion but also logos so I'd rather use the logo-free one.

    SelectEven looks better, but again during movement it looks terrible, even with the nns at maximum value. I added my output clip.
    Image Attached Files
    Quote Quote  
  6. I get the same results as you. Following nnedi3 with one of the other antialias filters, like Santiag(), will help a little. Even calling it multiple times:

    Code:
    SelectEven()
    nnedi3(dh=true, nns=4)
    Santiag()
    Santiag()
    Santiag()
    Watch out though -- you may end up screwing up other parts of the picture. I don't think you'll find anything that works much better at restoring the missing field.
    Last edited by jagabo; 4th Jun 2015 at 16:45.
    Quote Quote  
  7. Using Santiag 5 times got rid of it during movement. But as you said, it screwed up other parts of the picture, like causing haloing and some sort of noise in the background (output3a.mkv).

    Before (sample3.mkv):
    Click image for larger version

Name:	before.png
Views:	1474
Size:	1.29 MB
ID:	32059
    After (output3a.mkv):
    Click image for larger version

Name:	after.png
Views:	1538
Size:	1.49 MB
ID:	32060

    I tried a few different variations of this at a whopping 0.45fps, but it didn't fix it. It did bring the bitrate down about 2500kbps (CRF 16)
    Code:
    MosquitoNR(strength=23)
    Dehalo_alpha()
    LSFMod(defaults="slow", strength=160, edgemaskHQ=true, preblur="FFT3Dfilter(sigma=4,plane=0)")
    Or should I use EdgeCleaner instead of LSF?
    Image Attached Files
    Last edited by pub; 5th Jun 2015 at 09:52.
    Quote Quote  
  8. Try something like:

    Code:
    MosquitoNR(strength=23)
    SeparateFields()
    SelectEven()
    nnedi3(dh=true, nns=4)
    Santiag()
    Santiag()
    Santiag()
    Dehalo_alpha(rx=2, ry=3)
    MergeChroma(aWarpSharp(depth=5), aWarpSharp(depth=10))
    ChromaShift(c=2)
    Last edited by jagabo; 5th Jun 2015 at 09:54.
    Quote Quote  
  9. Is there a way to reduce the darkening? It's most noticable in the eyes and around the mouth (it begins to look like a mustache)

    Before (sample3.mkv):
    Click image for larger version

Name:	sample.png
Views:	1457
Size:	1.55 MB
ID:	32067
    After the last script:
    Click image for larger version

Name:	outputhim.png
Views:	1432
Size:	1.48 MB
ID:	32068
    After the last script with 2 extra Santiags to get rid of noise during movement:
    Click image for larger version

Name:	outputsant.png
Views:	1436
Size:	1.55 MB
ID:	32069

    I also found something else (sample3full.mkv). In the red area, there are a few lines of noise.
    Click image for larger version

Name:	vlcsnap-2015-06-05-21h38m58s275.png
Views:	1443
Size:	1.35 MB
ID:	32071

    The same type of blocky noise is visible on the face a few seconds later. MosquitoNR didn't get rid of it. Would Cnr2 or a smoother get rid of it? Or do I need to lower my CRF (currently 16 with animation tune)
    Image Attached Files
    Last edited by pub; 5th Jun 2015 at 14:54.
    Quote Quote  
  10. The slight darkening in areas between two nearby horizontal black lines can be reduced by changing ry=3 to ry=2 in dehalo_alpha(). That should still give adequate halo removal around horizontal lines.

    I haven't looked closely at the other video yet but I think you'll need a debanding filter like GradFun3(). CRF 16 might be high enough quality to keep it from coming back.
    Last edited by jagabo; 5th Jun 2015 at 16:49.
    Quote Quote  
  11. That worked

    I tried a few (flash3kyuu_deband, GradFun3) with different settings, but it won't go away. GradFun3(radius=16,smode=2) gives the best result but the flickering is still very noticable
    Quote Quote  
  12. If it's flickering you need a temporal smoother before GradFun3().
    Quote Quote  
  13. That got rid of it, thanks!
    Quote Quote  
  14. Be careful with temporal smoothers. They will lead to obvious smearing in low contrast moving areas. You can reduce that using a motion compensated temporal smoother like MCTemporalDenoise().
    Quote Quote  
  15. I'm using this script now:
    Code:
    ffVideoSource("sample.mkv")
    MosquitoNR(strength=21)
    SeparateFields()
    SelectEven()
    nnedi3(dh=true, nns=4)
    Santiag()
    Santiag()
    Santiag()
    Santiag()
    Dehalo_alpha()
    MergeChroma(aWarpSharp(depth=5), aWarpSharp(depth=10))
    ChromaShift(c=2)
    MCTemporalDenoise(settings="medium")
    GradFun3(radius=16,smode=2)
    But it just stays on this for 45 minutes and then it goes on at 0.03fps:
    Code:
    avs [info]: 1920x1080p 0:0 @ 25/1 fps (cfr)
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x264 [info]: profile High, level 4.0
    Will using a x64 Avisynth and x264 version speed it up or not? I'm now using 32bit for both.

    And will adding a sharpener/Toon make the image look more 'alive'/less dull? (sample25f.mkv)
    Click image for larger version

Name:	vlcsnap-2015-06-20-23h25m13s744.png
Views:	1402
Size:	1.66 MB
ID:	32266
    Before
    Click image for larger version

Name:	vlcsnap-2015-06-20-23h25m00s538.png
Views:	1469
Size:	1.62 MB
ID:	32267
    After

    I found another problem in another file. The sample I added (sample.mkv) probably got conversed 25p->29.97i->29.97p. Is it possible to restore it to 25p? I couldn't quite figure out FDecimate.
    Image Attached Files
    Last edited by pub; 20th Jun 2015 at 16:33.
    Quote Quote  
  16. Slow processing doesn't surprise me with all those slow filters. Sometimes it help to run some of the filters in different scripts, saving to a lossless intermediate between scripts.

    Sharpen if you want to. Watch out for over sharpening halos and buzzing edges.

    You can use TDecimate() to return sample.mkv to ~23.976 fps. You won't be able to fix the moire artifacts on the purple stairs but QTGMC(InputType=1, Preset="medium", EZDenoise=2.0) helps a bit with some of the buzzing edges.
    Quote Quote  
  17. Other than the slow speed, it looks perfect
    http://screenshotcomparison.com/comparison/132412

    When encoding in parts, I noticed the thing that's slowing everything down is MCTemporalDenoise. I tried Avisynth+ and multithreading (8 thread Intel i7). It actually starts encoding now, but it takes a long time. My script now without splitting:
    Code:
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    SetFilterMTMode("FFVideoSource", 3)
    ffVideoSource("sample.mkv")
    MosquitoNR(strength=21)
    SeparateFields()
    SelectEven()
    nnedi3(dh=true, nns=4)
    Santiag()
    Santiag()
    Santiag()
    Dehalo_alpha()
    MergeChroma(aWarpSharp(depth=5), aWarpSharp(depth=10))
    ChromaShift(c=2)
    MCTemporalDenoise(settings="medium")
    GradFun3(radius=16,smode=2)
    LSFMod(defaults="slow")
    Prefetch(6)
    You can use TDecimate() to return sample.mkv to ~23.976 fps. You won't be able to fix the moire artifacts on the purple stairs but QTGMC(InputType=1, Preset="medium", EZDenoise=2.0) helps a bit with some of the buzzing edges.
    It's produced in PAL-land, so I'm not sure if 24000/1001 is the right framerate
    Quote Quote  
  18. Originally Posted by pub View Post
    You can use TDecimate() to return sample.mkv to ~23.976 fps. You won't be able to fix the moire artifacts on the purple stairs but QTGMC(InputType=1, Preset="medium", EZDenoise=2.0) helps a bit with some of the buzzing edges.
    It's produced in PAL-land, so I'm not sure if 24000/1001 is the right framerate
    It was probably 24. But it's hard to tell the difference between 23.976 and 24 with cartoons -- only one frame out of 1001.
    Quote Quote  



Similar Threads

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