Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AutoOverlay (PKA AutoAlign) discussion
#71
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 Smile
Reply
Thanks given by:
#72
(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 Smile

Thank you good sir Smile
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 Smile

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?
Reply
Thanks given by:
#73
@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()
Reply
Thanks given by:
#74
Hi random.next.

Thank you for taking the time out to help me Smile

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.
Reply
Thanks given by:
#75
Do you specify correct full path to the plugins?
Reply
Thanks given by:
#76
Yes bud

LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\AvsFilterNet.dll")
LoadNetPlugin("C:\Program Files (x86)\AviSynth\plugins\AutoOverlay.dll")

OverlayConfig()
Reply
Thanks given by:
#77
You renamed AutoOverlay_netautoload to AutoOverlay, right?
Reply
Thanks given by:
#78
(2018-01-30, 12:10 PM)random.next Wrote: You renamed AutoOverlay_netautoload to AutoOverlay, right?

I haven't renamed it, yet it works... Big Grin
Reply
Thanks given by:
#79
(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.
Reply
Thanks given by:
#80
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 Smile
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  home 7.1 releases - general discussion spoRv 7 3,153 2021-10-11, 05:51 PM
Last Post: spoRv
  Recordable blu-ray disc general discussion spoRv 6 7,990 2017-05-20, 11:37 AM
Last Post: spoRv

Forum Jump:


Users browsing this thread: 27 Guest(s)