Posts: 7,153
Threads: 601
Joined: 2015 Jan
Thanks: 1081
Given 1466 thank(s) in 963 post(s)
Country:
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 aap
What 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
Posts: 1,111
Threads: 26
Joined: 2015 Jan
Thanks: 687
Given 305 thank(s) in 206 post(s)
2018-01-30, 10:50 AM
(This post was last modified: 2018-01-30, 10:51 AM by CSchmidlapp.)
(2018-01-30, 09:45 AM)spoRv Wrote: 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 aap
What 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
Thank you good sir
I'm afraid I'm still getting a error before Ive started.
"Script error: there is no function named "OverlayConfig""
It suggests to me Ive not installed properly! so I will have another look
I also normally render through TMPGenc Video Works 6, so i guess I don't understand how Im going to do a analysis pass first?
Ive pre cropped the BD (2:35:1) and upscaled the DVD
They don't match exacly color wise.
Any advice how to do this? Dr Dre's plugin?
Posts: 191
Threads: 2
Joined: 2017 Dec
Thanks: 12
Given 234 thank(s) in 86 post(s)
Country:
2018-01-30, 11:14 AM
(This post was last modified: 2018-01-30, 11:14 AM by random.next.)
@ CSchmidlapp
First of all test a simple script: OverlayConfig(). If output is a blank clip then plugin was loaded successful.
If you don't use the latest avisynth+ you must load plugins explicitly:
Code: LoadPlugin("...\AvsFilterNet.dll")
LoadNetPlugin("...\AutoOverlay.dll")
OverlayConfig()
Posts: 1,111
Threads: 26
Joined: 2015 Jan
Thanks: 687
Given 305 thank(s) in 206 post(s)
Hi random.next.
Thank you for taking the time out to help me
I'm getting -
"Unable to load plugin, make sure it is a valid .net assembly"
From line 2 of the script.
I tried to install .net 4 but Windows 10 told me it was already there.
Posts: 191
Threads: 2
Joined: 2017 Dec
Thanks: 12
Given 234 thank(s) in 86 post(s)
Country:
Do you specify correct full path to the plugins?
Posts: 1,111
Threads: 26
Joined: 2015 Jan
Thanks: 687
Given 305 thank(s) in 206 post(s)
Yes bud
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\AvsFilterNet.dll")
LoadNetPlugin("C:\Program Files (x86)\AviSynth\plugins\AutoOverlay.dll")
OverlayConfig()
Posts: 191
Threads: 2
Joined: 2017 Dec
Thanks: 12
Given 234 thank(s) in 86 post(s)
Country:
You renamed AutoOverlay_netautoload to AutoOverlay, right?
Posts: 7,153
Threads: 601
Joined: 2015 Jan
Thanks: 1081
Given 1466 thank(s) in 963 post(s)
Country:
(2018-01-30, 12:10 PM)random.next Wrote: You renamed AutoOverlay_netautoload to AutoOverlay, right?
I haven't renamed it, yet it works...
Posts: 1,111
Threads: 26
Joined: 2015 Jan
Thanks: 687
Given 305 thank(s) in 206 post(s)
2018-01-30, 12:20 PM
(This post was last modified: 2018-01-30, 12:23 PM by CSchmidlapp.)
(2018-01-30, 12:10 PM)random.next Wrote: You renamed AutoOverlay_netautoload to AutoOverlay, right? I did, only after you told me to load the plugins. Normally all the plugins auto load
I still get the .net error.
Posts: 1,111
Threads: 26
Joined: 2015 Jan
Thanks: 687
Given 305 thank(s) in 206 post(s)
2018-01-30, 12:31 PM
(This post was last modified: 2018-01-30, 12:37 PM by CSchmidlapp.)
Just to clarify my install.
Im using AviSynth 2.6
Ive downloaded AutoOverlay_0.17
Copied AutoOverlay_netautoload.dll and x86 AvsFilterNet.dll into my plugins folder.
Changed AutoOverlay_netautoload.dll to AutoOverlay.dll
(I tried to install .net environment 4 but it already tells me I have it.)
Ive just reinstalled like above and It works now!
I am getting a black screen
|