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:
encode:
script:
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?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)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
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).
Similar Threads
-
Returning User from 2019.. Preview Video now inoperative, plus glitches
By pak.Hanafi in forum Newbie / General discussionsReplies: 0Last Post: 8th Oct 2023, 19:43 -
Bitrate fluctuates more than I like in encoded video
By killerteengohan in forum RestorationReplies: 14Last Post: 16th Aug 2023, 11:07 -
Can I get preset info of encoded video?
By Anonymous543 in forum Newbie / General discussionsReplies: 1Last Post: 17th Jan 2022, 09:50 -
Median() plugin for Avisynth
By ajk in forum RestorationReplies: 74Last Post: 17th Mar 2020, 13:53 -
Virtualdub2 median filter?
By DiggyDre in forum RestorationReplies: 4Last Post: 2nd Jan 2020, 20:05