VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    i'm trying to use the median filter to stack three captures of a betacam tape. the preview in avspmod looks fine, but the encoded video has visual glitches and i don't know why. i'm only getting these on the encoded video. the glitches seem to show up at random, and every encode has different glitches.

    raw:
    Click image for larger version

Name:	Cj8xJlU.png
Views:	7
Size:	715.2 KB
ID:	82679
    Click image for larger version

Name:	oB5GLxc.png
Views:	4
Size:	1.56 MB
ID:	82680

    encode:
    Click image for larger version

Name:	FUnr5CT.png
Views:	4
Size:	546.0 KB
ID:	82682
    Click image for larger version

Name:	xImB5lg.png
Views:	3
Size:	1.35 MB
ID:	82681

    script:
    Code:
    setmemorymax(63448)
    v = lwlibavvideosource("I:\virtualdub\tape transfers\betacam\sp\Lot #3\LAIDLAW TRANSIT THE BUS STOPS HERE.mkv", fpsnum=30000, fpsden=1001)
    a = lwlibavaudiosource("d:\recordings\LAIDLAW TRANSIT THE BUS STOPS HERE.flac")
    audiodub(v,a)
    Trim(228, 19744)
    v1=last
    lwlibavvideoource("F:\virtualdub\tape transfers\betacam\sp\Lot #3\LAIDLAW TRANSIT THE BUS STOPS HERE cap 2.avi", fpsnum=30000,fpsden=1001)
    Trim(135, 19651)
    v2=last
    lwlibavvideoource("F:\virtualdub\tape transfers\betacam\sp\Lot #3\LAIDLAW TRANSIT THE BUS STOPS HERE cap 3.avi", fpsnum=30000,fpsden=1001))
    Trim(357, 19873)
    v3=last
    medianblend(v1,v2,v3)
    assumetff()
    converttoyuv444(matrix="rec601", interlaced=true).convertbits(10)
    Levels(70, 1, 990, 0, 1020, coring=false,dither=true).tweak(bright=0, cont=1.00, hue=-0, sat=1.0, coring=false, dither=true).convertbits(8)
    Trim(1500, 19348)
    qtgmc(preset="slow", ezdenoise=0.0, sharpness=0, sourcematch=3,lossless=2,matchenhance=1,tr2=0, subpel=4)
    spotless()
    finedehalo()
    neo_dfttest(sigma=6, tbsize=3)
    f3kdb(range=20, y=80, cb=80, cr=80, dynamic_grain=true)
    cropresize(indar=15.0/11.0, resizewo=true)
    Crop(5, 0, -6, -2)
    SuperRes(matrixin="rec601", 2, .43, 0, """nnedi3_rpow2(4, nns=4, cshift="Spline16Resize")""", matrixout="rec709")
    #SuperRes(2, .43, 0, """edi_rpow2(2, nns=4, cshift="Spline16Resize")""").SuperRes(2, .43, 0, """edi_rpow2(2, nns=4, cshift="Spline16Resize")""")
    x = float(width) / float(height)
    spline36resize(round(x * 2164),2164)
    converttoyv12(matrix="rec709", interlaced=false)
    prefetch(10)
    i have tried both median and medianblend, both with the same result. i have also tried updating avisynth to the latest test version, and the issue persists. i usually encode to hevc_nvenc with ffmpeg, but this also happens in my sd prores encodes. is there a fix for this?
    Quote Quote  
  2. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    First of all, are you sure that the 3 (segments) captures are perfeclty aligned frame by frame?

    For clean captures, I am not a fan of the median operation. Have you tried to compare the first source with the median results and see an effective improvement?
    In addition, with all that processing in term of level adjustement, spot removal, denoise, etc. the median operation is completely useless. (it may have sense if no (deep) processing is planning thereafter).

    In any case, to debug your problem you may want to try to encode after each step of your AviSynth processing to find what is causing it (if any of the plugin is suspected).
    Quote Quote  



Similar Threads

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