VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
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:	21
Size:	715.2 KB
ID:	82679
    Click image for larger version

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

    encode:
    Click image for larger version

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

Name:	xImB5lg.png
Views:	12
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  
  3. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    sorry for the late reply.

    Originally Posted by lollo View Post
    First of all, are you sure that the 3 (segments) captures are perfeclty aligned frame by frame?
    yep.

    Originally Posted by lollo View Post
    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?
    yeah, there's a difference. less tape glitches. i get them from time to time on my betacam transfers for some reason, hence why i'm using it.

    Originally Posted by lollo View Post
    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).
    i'm not using median to denoise, i don't really notice a difference with and without it in terms of noise. my final file sizes are smaller, but visually it looks the same. i'm just using it to get rid of tape glitches. my betacam deck has noise on the component outputs for some reason. when I do denoise, there's banding, hence the f3kdb.

    Originally Posted by lollo View Post
    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).
    i did an encoding pass with just median and it seems like my issue isn't there. did some more encoding passes and i found out that f3kdb is causing it :/ i don't know why, and i don't know how to fix it. it sucks because its a pretty good debander.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Have you tried reducing the prefetch number?
    It may have something to do with the parallel thread processing,
    or set mtmode=3 for f3kdb
    Last edited by davexnet; 10th Oct 2024 at 23:46.
    Quote Quote  



Similar Threads

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