2018-01-30, 09:45 AM
Code:
# NOTE: you can try to invert these, it depends if you want BD touches the borders
OM=AVISource("BD.avi")
WS=AVISource("DVD.avi")
# I'm using these settings, dunno if they are the best, but they seems to work pretty well
config=OverlayConfig(subpixel=2, requiredSampleArea=5000, minSampleArea=3000, acceptableDiff=20)
OverlayEngine(OM.ConvertToY8, WS.ConvertToY8, configs=config,\
editor=false, backwardFrames=8, forwardFrames=8)
# play with noise and gradient; upsize for upscale algorhythm; pay attention to opacity!
aap=OverlayRender(OM.ConvertToRGB24, WS.ConvertToRGB24, debug=false, noise=50,\
upsize="Spline64Resize", mode=3, gradient=50, coloradjust=0, opacity=1, width=1920, height=1080)\
.converttoyv12
return aapWhat I can add is to upscale the non-HD source (DVD in this case) to HD (BD here), making a manual test to let it PERFECTLY align to HD... for example, I usually upscale SDTV 1.33:1 to 1440x1080, but you can take in account eventual black borders, so, at the end, it could be also 1400x1080, or 1440x1060, you got the point.. the fundamental (pun intended!) thing is the aspect ratio - that, due to black borders or eventual squeezing, could be NOT 1.33:1, but vary.
Also, VERY IMPORTANT, you should color match the sources before - or to be very lucky to find out two sources with identical color grading!
Have fun, and don't forget this:
CSchmidlapp Wrote:I love this place



